Home | History | Annotate | Download | only in tests
      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 """
      6 CM_10 Validation of Modem's Response to MBIM_CLOSE_MSG.
      7 
      8 Reference:
      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 """
     12 import common
     13 from autotest_lib.client.cros.cellular.mbim_compliance.sequences \
     14         import mbim_close_sequence
     15 from autotest_lib.client.cros.cellular.mbim_compliance.sequences \
     16         import mbim_open_generic_sequence
     17 from autotest_lib.client.cros.cellular.mbim_compliance.tests import test
     18 
     19 
     20 class 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