Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: tools/telemetry/telemetry/core/platform/cros_device.py

Issue 541693004: Move remote platform creation logic from cros_browser_finders to platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address achuith's comments Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
new file mode 100644
index 0000000000000000000000000000000000000000..c404f0c00d370bf1f614ba4767b41ae94d8d210f
--- /dev/null
+++ b/tools/telemetry/telemetry/core/platform/cros_device.py
@@ -0,0 +1,27 @@
+# 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.
+import logging as real_logging
+
+from telemetry.core.platform import device
+
+
+class CrOSDevice(device.Device):
+ def __init__(self, host_name, ssh_identity=None):
+ super(CrOSDevice, self).__init__(
+ name='ChromeOs with host %s' % host_name, device_id=host_name)
+ assert host_name
+ self._host_name = host_name
+ self._ssh_identity = ssh_identity
+
+ @classmethod
+ def GetAllConnectedDevices(cls, logging=real_logging):
+ return []
+
+ @property
+ def host_name(self):
+ return self._host_name
+
+ @property
+ def ssh_identity(self):
+ return self._ssh_identity
« no previous file with comments | « tools/telemetry/telemetry/core/platform/__init__.py ('k') | tools/telemetry/telemetry/core/platform/cros_interface.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698