Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(552)

Side by Side Diff: client/site_tests/network_3GDisableWhileConnecting/control

Issue 6824047: Test for disabling while connecting. (Closed) Base URL: ssh://gitrw.chromium.org:9222/autotest.git@master
Patch Set: Code review comments Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | client/site_tests/network_3GDisableWhileConnecting/network_3GDisableWhileConnecting.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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')
OLDNEW
« no previous file with comments | « no previous file | client/site_tests/network_3GDisableWhileConnecting/network_3GDisableWhileConnecting.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698