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.
5 from telemetry
.core
import platform
6 from telemetry
.internal
.platform
import device
9 class DesktopDevice(device
.Device
):
11 super(DesktopDevice
, self
).__init
__(name
='desktop', guid
='desktop')
14 def GetAllConnectedDevices(cls
, blacklist
):
18 def FindAllAvailableDevices(_
):
19 """Returns a list of available devices.
21 # If the host platform is Chrome OS, the device is also considered as cros.
22 if platform
.GetHostPlatform().GetOSName() == 'chromeos':
24 return [DesktopDevice()]