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

Side by Side Diff: tools/telemetry/telemetry/cros_interface_unittest.py

Issue 12294002: Revert 182991 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/telemetry/telemetry/cros_interface.py ('k') | tools/telemetry/telemetry/crx_id.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # TODO(nduca): Rewrite what some of these tests to use mocks instead of 5 # TODO(nduca): Rewrite what some of these tests to use mocks instead of
6 # actually talking to the device. This would improve our coverage quite 6 # actually talking to the device. This would improve our coverage quite
7 # a bit. 7 # a bit.
8 import unittest 8 import unittest
9 import socket 9 import socket
10 10
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 cri = cros_interface.CrOSInterface( 154 cri = cros_interface.CrOSInterface(
155 remote, 155 remote,
156 options_for_unittests.GetCopy().cros_ssh_identity) 156 options_for_unittests.GetCopy().cros_ssh_identity)
157 157
158 # Should return 2 separate ports even though the first one isn't technically 158 # Should return 2 separate ports even though the first one isn't technically
159 # being used yet. 159 # being used yet.
160 remote_port_1 = cri.GetRemotePort() 160 remote_port_1 = cri.GetRemotePort()
161 remote_port_2 = cri.GetRemotePort() 161 remote_port_2 = cri.GetRemotePort()
162 162
163 self.assertTrue(remote_port_1 != remote_port_2) 163 self.assertTrue(remote_port_1 != remote_port_2)
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/cros_interface.py ('k') | tools/telemetry/telemetry/crx_id.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698