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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | client/site_tests/network_3GDisableWhileConnecting/network_3GDisableWhileConnecting.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/site_tests/network_3GDisableWhileConnecting/control
diff --git a/client/site_tests/network_3GDisableWhileConnecting/control b/client/site_tests/network_3GDisableWhileConnecting/control
new file mode 100644
index 0000000000000000000000000000000000000000..21ebd857ae0481a557aaee8f91d0f8183e2efc34
--- /dev/null
+++ b/client/site_tests/network_3GDisableWhileConnecting/control
@@ -0,0 +1,54 @@
+# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+AUTHOR = "ChromeOS Team"
+NAME = "network_3GDisconnectWhileConnecting"
+PURPOSE = "Check that the 3G modem can handle a disconnect while connecting."
+CRITERIA = """
+
+This test will fail if a disconnect request while the modem is
+connecting is not promptly executed.
+"""
+TIME = "SHORT"
+TEST_CATEGORY = "Functional"
+TEST_CLASS = "network"
+TEST_TYPE = "client"
+
+DOC = """
+Check that the 3G modem can handle a disconnect while connecting.
+"""
+
+
+ITERATIONS_PER_TEST=1
+
+job.run_test('network_3GDisableWhileConnecting',
+ timeout_s=20,
+ async_connect_sleep_ms=0,
+ disable_delay_per_iteration_ms=0,
+ iterations=ITERATIONS_PER_TEST,
+ tag='instant_disable')
+
+# Since dbus-python emits our calls asynchronously, it is sometimes
+# (often?) the case that the disable arrives before the connect.
+# There's no good way to track what actually gets sent first, so we
+# sleep.
+
+job.run_test('network_3GDisableWhileConnecting',
+ timeout_s=20,
+ async_connect_sleep_ms=0,
+ disable_delay_per_iteration_ms=int(1000.0 / ITERATIONS_PER_TEST),
+ iterations=ITERATIONS_PER_TEST,
+ tag='disable_delay_ramp')
+
+
+# Similarly, we can't be sure what the relative timings of the
+# completion of the session starter thread and arrival of the disable
+# request are. Try pushing the start thread completion way out.
+
+job.run_test('network_3GDisableWhileConnecting',
+ timeout_s=20,
+ async_connect_sleep_ms=3000,
+ delay_before_disable_ms=200,
+ iterations=ITERATIONS_PER_TEST,
+ tag='short_delay_disable')
« 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