• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2013 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
5AUTHOR = "ChromeOS Team"
6NAME = "cellular_DisableWhileConnecting.pseudomodem"
7PURPOSE = "Check that the 3G modem can handle a disconnect while connecting."
8CRITERIA = """
9This test will fail if a disconnect request while the modem is
10connecting is not promptly executed.
11"""
12ATTRIBUTES = "suite:cellular_pseudomodem"
13TIME = "SHORT"
14TEST_CATEGORY = "Functional"
15TEST_CLASS = "network"
16TEST_TYPE = "client"
17
18DOC = """
19Check that the 3G modem can handle a disconnect while connecting.
20"""
21
22from autotest_lib.client.cros.cellular import test_environment
23
24ITERATIONS_PER_TEST=1
25
26# 3GPP
27test_env = test_environment.CellularPseudoMMTestEnvironment(
28        pseudomm_args=({'family': '3GPP'},))
29job.run_test('cellular_DisableWhileConnecting',
30             test_env=test_env,
31             timeout_s=20,
32             delay_before_disable_ms=0,
33             disable_delay_per_iteration_ms=0,
34             iterations=ITERATIONS_PER_TEST,
35             tag='instant_disable_3GPP')
36
37test_env = test_environment.CellularPseudoMMTestEnvironment(
38        pseudomm_args=({'family': '3GPP'},))
39job.run_test('cellular_DisableWhileConnecting',
40             test_env=test_env,
41             timeout_s=20,
42             delay_before_disable_ms=0,
43             disable_delay_per_iteration_ms=int(1000.0 / ITERATIONS_PER_TEST),
44             iterations=ITERATIONS_PER_TEST,
45             tag='disable_delay_ramp_3GPP')
46
47# CDMA
48test_env = test_environment.CellularPseudoMMTestEnvironment(
49        pseudomm_args=({'family': 'CDMA'},))
50job.run_test('cellular_DisableWhileConnecting',
51             test_env=test_env,
52             timeout_s=20,
53             delay_before_disable_ms=0,
54             disable_delay_per_iteration_ms=0,
55             iterations=ITERATIONS_PER_TEST,
56             tag='instant_disable_CDMA')
57
58test_env = test_environment.CellularPseudoMMTestEnvironment(
59        pseudomm_args=({'family': 'CDMA'},))
60job.run_test('cellular_DisableWhileConnecting',
61             test_env=test_env,
62             timeout_s=20,
63             delay_before_disable_ms=0,
64             disable_delay_per_iteration_ms=int(1000.0 / ITERATIONS_PER_TEST),
65             iterations=ITERATIONS_PER_TEST,
66             tag='disable_delay_ramp_CDMA')
67