OLD | NEW |
(Empty) | |
| 1 # Copyright (c) 2010 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 AUTHOR = "ChromeOS Team" |
| 6 NAME = "network_3GDisconnectWhileConnecting" |
| 7 PURPOSE = "Check that the 3G modem can handle a disconnect while connecting." |
| 8 CRITERIA = """ |
| 9 |
| 10 This test will fail if a disconnect request while the modem is |
| 11 connecting is not promptly executed. |
| 12 """ |
| 13 TIME = "SHORT" |
| 14 TEST_CATEGORY = "Functional" |
| 15 TEST_CLASS = "network" |
| 16 TEST_TYPE = "client" |
| 17 |
| 18 DOC = """ |
| 19 Check that the 3G modem can handle a disconnect while connecting. |
| 20 """ |
| 21 |
| 22 |
| 23 ITERATIONS_PER_TEST=1 |
| 24 |
| 25 job.run_test('network_3GDisableWhileConnecting', |
| 26 timeout_s=20, |
| 27 async_connect_sleep_ms=0, |
| 28 disable_delay_per_iteration_ms=0, |
| 29 iterations=ITERATIONS_PER_TEST, |
| 30 tag='instant_disable') |
| 31 |
| 32 # Since dbus-python emits our calls asynchronously, it is sometimes |
| 33 # (often?) the case that the disable arrives before the connect. |
| 34 # There's no good way to track what actually gets sent first, so we |
| 35 # sleep. |
| 36 |
| 37 job.run_test('network_3GDisableWhileConnecting', |
| 38 timeout_s=20, |
| 39 async_connect_sleep_ms=0, |
| 40 disable_delay_per_iteration_ms=int(1000.0 / ITERATIONS_PER_TEST), |
| 41 iterations=ITERATIONS_PER_TEST, |
| 42 tag='disable_delay_ramp') |
| 43 |
| 44 |
| 45 # Similarly, we can't be sure what the relative timings of the |
| 46 # completion of the session starter thread and arrival of the disable |
| 47 # request are. Try pushing the start thread completion way out. |
| 48 |
| 49 job.run_test('network_3GDisableWhileConnecting', |
| 50 timeout_s=20, |
| 51 async_connect_sleep_ms=3000, |
| 52 delay_before_disable_ms=200, |
| 53 iterations=ITERATIONS_PER_TEST, |
| 54 tag='short_delay_disable') |
OLD | NEW |