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

Unified Diff: build/android/adb_reverse_forwarder.py

Issue 221823011: [Android] Change object types from AndroidCommands to DeviceUtils in build/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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
« no previous file with comments | « build/android/adb_profile_chrome.py ('k') | build/android/buildbot/bb_device_status_check.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/adb_reverse_forwarder.py
diff --git a/build/android/adb_reverse_forwarder.py b/build/android/adb_reverse_forwarder.py
index de8e6e5f42986af1c830cfbddf65af7ecbf6ec36..700e4e96b274a1ff1a3e50dcff6cb69e51bdff7a 100755
--- a/build/android/adb_reverse_forwarder.py
+++ b/build/android/adb_reverse_forwarder.py
@@ -15,7 +15,8 @@ import optparse
import sys
import time
-from pylib import android_commands, constants, forwarder
+from pylib import constants, forwarder
+from pylib.device import device_utils
from pylib.utils import run_tests_helper
@@ -49,16 +50,16 @@ def main(argv):
parser.error('Bad port number')
sys.exit(1)
- adb = android_commands.AndroidCommands(options.device)
+ device = device_utils.DeviceUtils(options.device)
constants.SetBuildType(options.build_type)
try:
- forwarder.Forwarder.Map(port_pairs, adb)
+ forwarder.Forwarder.Map(port_pairs, device)
while True:
time.sleep(60)
except KeyboardInterrupt:
sys.exit(0)
finally:
- forwarder.Forwarder.UnmapAllDevicePorts(adb)
+ forwarder.Forwarder.UnmapAllDevicePorts(device)
if __name__ == '__main__':
main(sys.argv)
« no previous file with comments | « build/android/adb_profile_chrome.py ('k') | build/android/buildbot/bb_device_status_check.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698