# Copyright (c) 2014 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_3GModemPresent.hefty"
PURPOSE = "Verify 3G modem is visible to Flimflam."
CRITERIA = """
This test will fail if neither Cromo nor ModemManager is exporting a modem
device via flimflam.
"""
ATTRIBUTES = "suite:network3g_att, suite:network3g_tmobile"
SUITE = "network3g_att, network3g_tmobile"
TIME = "SHORT"
TEST_CATEGORY = "Functional"
TEST_CLASS = "network"
TEST_TYPE = "client"
DEPENDENCIES = "modem:hefty"

DOC = """
  Tests that a 3G modem is available.

  The test attempts to find a flimflam device corresponding to a
  cellular modem.

"""

from autotest_lib.client.cros.cellular import test_environment

test_env = test_environment.CellularOTATestEnvironment()
job.run_test('network_3GModemPresent', test_env=test_env, tag='hefty')