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 = "network_3GModemPresent.pseudomodem"
7PURPOSE = "Verify 3G modem is visible to Flimflam."
8CRITERIA = """
9This test will fail if neither Cromo nor ModemManager is exporting a modem
10device via flimflam.
11"""
12ATTRIBUTES = "suite:network3g_pseudomodem"
13SUITE = "network3g_pseudomodem"
14TIME = "SHORT"
15TEST_CATEGORY = "Functional"
16TEST_CLASS = "network"
17TEST_TYPE = "client"
18
19DOC = """
20  Tests that a 3G modem is available.
21
22  The test attempts to find a flimflam device corresponding to a
23  cellular modem.
24
25"""
26
27from autotest_lib.client.cros.cellular import test_environment
28
29# 3GPP
30test_env = test_environment.CellularPseudoMMTestEnvironment(
31        pseudomm_args=({'family': '3GPP'},))
32job.run_test('network_3GModemPresent', test_env=test_env,
33             tag='pseudomodem_3GPP')
34
35# CDMA
36test_env = test_environment.CellularPseudoMMTestEnvironment(
37        pseudomm_args=({'family': 'CDMA'},))
38job.run_test('network_3GModemPresent', test_env=test_env,
39             tag='pseudomodem_CDMA')
40