1 # Copyright 2014 The Chromium 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.
7 from telemetry.core.platform import android_device
8 from telemetry.unittest import system_stub
11 class AndroidDeviceTest(unittest.TestCase):
13 self._android_device_stub = system_stub.Override(
14 android_device, ['adb_commands'])
16 def testGetAllAttachedAndroidDevices(self):
17 self._android_device_stub.adb_commands.attached_devices = [
21 set(device.device_id for device in
22 android_device.AndroidDevice.GetAllConnectedDevices()
26 self._android_device_stub.Restore()