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