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"
13TIME = "SHORT"
14TEST_CATEGORY = "Functional"
15TEST_CLASS = "network"
16TEST_TYPE = "client"
17
18DOC = """
19  Tests that a 3G modem is available.
20
21  The test attempts to find a flimflam device corresponding to a
22  cellular modem.
23
24"""
25
26from autotest_lib.client.cros.cellular import test_environment
27
28# 3GPP
29test_env = test_environment.CellularPseudoMMTestEnvironment(
30        pseudomm_args=({'family': '3GPP'},))
31job.run_test('network_3GModemPresent', test_env=test_env,
32             tag='pseudomodem_3GPP')
33
34# CDMA
35test_env = test_environment.CellularPseudoMMTestEnvironment(
36        pseudomm_args=({'family': 'CDMA'},))
37job.run_test('network_3GModemPresent', test_env=test_env,
38             tag='pseudomodem_CDMA')
39