• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4from telemetry.core.platform import device
5
6
7class CrOSDevice(device.Device):
8  def __init__(self, host_name, ssh_identity=None):
9    super(CrOSDevice, self).__init__(
10        name='ChromeOs with host %s' % host_name,
11        guid='cros:%s' % host_name)
12    assert host_name
13    self._host_name = host_name
14    self._ssh_identity = ssh_identity
15
16  @classmethod
17  def GetAllConnectedDevices(cls):
18    return []
19
20  @property
21  def host_name(self):
22    return self._host_name
23
24  @property
25  def ssh_identity(self):
26    return self._ssh_identity
27