| Index: tools/telemetry/telemetry/core/platform/cros_device.py
|
| diff --git a/tools/telemetry/telemetry/core/platform/cros_device.py b/tools/telemetry/telemetry/core/platform/cros_device.py
|
| index 3632f3c95dda52af76f86d9c9ec1ce4ef38ca81a..0a7a41e1c19137d00a3993e6e5f10f07b3c1d262 100644
|
| --- a/tools/telemetry/telemetry/core/platform/cros_device.py
|
| +++ b/tools/telemetry/telemetry/core/platform/cros_device.py
|
| @@ -1,6 +1,7 @@
|
| # Copyright 2014 The Chromium Authors. All rights reserved.
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
| +from telemetry.core.platform import cros_interface
|
| from telemetry.core.platform import device
|
|
|
|
|
| @@ -17,6 +18,9 @@ class CrOSDevice(device.Device):
|
| def GetAllConnectedDevices(cls):
|
| return []
|
|
|
| + def FindAllAvailableBrowsers(self, options):
|
| + return []
|
| +
|
| @property
|
| def host_name(self):
|
| return self._host_name
|
| @@ -24,3 +28,15 @@ class CrOSDevice(device.Device):
|
| @property
|
| def ssh_identity(self):
|
| return self._ssh_identity
|
| +
|
| +
|
| +def FindAllAvailableDevices(options):
|
| + """Returns a list of available device types.
|
| + """
|
| + if options.cros_remote == None:
|
| + return []
|
| +
|
| + if not cros_interface.HasSSH():
|
| + return []
|
| +
|
| + return [CrOSDevice(options.cros_remote, options.cros_ssh_identity)]
|
|
|