OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
tonyg
2013/08/16 15:38:36
I don't think this file should live in chrome. If
dtu
2013/08/16 23:33:04
Done.
| |
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 """Brings in Chrome Android's android_commands module, which itself is a | 4 """Brings in Chrome Android's android_commands module, which itself is a |
5 thin(ish) wrapper around adb.""" | 5 thin(ish) wrapper around adb.""" |
6 import os | 6 import os |
7 | 7 |
8 from telemetry.core import util | 8 from telemetry.core import util |
9 | 9 |
10 # This is currently a thin wrapper around Chrome Android's | 10 # This is currently a thin wrapper around Chrome Android's |
11 # build scripts, located in chrome/build/android. This file exists mainly to | 11 # build scripts, located in chrome/build/android. This file exists mainly to |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
170 assert HasForwarder() | 170 assert HasForwarder() |
171 return 'Debug' if HasForwarder('Debug') else 'Release' | 171 return 'Debug' if HasForwarder('Debug') else 'Release' |
172 | 172 |
173 @property | 173 @property |
174 def url(self): | 174 def url(self): |
175 return 'http://localhost:%i' % self._host_port | 175 return 'http://localhost:%i' % self._host_port |
176 | 176 |
177 def Close(self): | 177 def Close(self): |
178 for (device_port, _) in self._port_pairs: | 178 for (device_port, _) in self._port_pairs: |
179 forwarder.Forwarder.UnmapDevicePort(device_port, self._adb) | 179 forwarder.Forwarder.UnmapDevicePort(device_port, self._adb) |
OLD | NEW |