• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5"""
6CM_10 Validation of Modem's Response to MBIM_CLOSE_MSG.
7
8Reference:
9    [1] Universal Serial Bus Communication Class MBIM Compliance Testing: 41
10        http://www.usb.org/developers/docs/devclass_docs/MBIM-Compliance-1.0.pdf
11"""
12import common
13from autotest_lib.client.cros.cellular.mbim_compliance.sequences \
14        import mbim_close_sequence
15from autotest_lib.client.cros.cellular.mbim_compliance.sequences \
16        import mbim_open_generic_sequence
17from autotest_lib.client.cros.cellular.mbim_compliance.tests import test
18
19
20class CM10Test(test.Test):
21    """ Implement the test CM_10 test. """
22
23    def run_internal(self):
24        """ Run CM_10 test. """
25        # Precondition
26        mbim_open_generic_sequence.MBIMOpenGenericSequence(
27                self.test_context).run()
28
29        # Step 1
30        close_message, response_message = mbim_close_sequence.MBIMCloseSequence(
31                self.test_context).run()
32