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

Unified Diff: trunk/src/build/android/adb_reverse_forwarder.py

Issue 19576005: Revert 212020 "Move Python setup/tear down logic into Forwarder ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 5 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 | « no previous file | trunk/src/build/android/bb_run_sharded_steps.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/build/android/adb_reverse_forwarder.py
===================================================================
--- trunk/src/build/android/adb_reverse_forwarder.py (revision 212053)
+++ trunk/src/build/android/adb_reverse_forwarder.py (working copy)
@@ -17,6 +17,7 @@
from pylib import android_commands, forwarder
from pylib.utils import run_tests_helper
+from pylib.valgrind_tools import CreateTool
def main(argv):
@@ -50,14 +51,17 @@
sys.exit(1)
adb = android_commands.AndroidCommands(options.device)
+ tool = CreateTool(None, adb)
+ forwarder_instance = forwarder.Forwarder(adb, options.build_type)
try:
- forwarder.Forwarder.Map(port_pairs, adb, options.build_type)
+ forwarder_instance.Run(port_pairs, tool)
while True:
time.sleep(60)
except KeyboardInterrupt:
sys.exit(0)
finally:
- forwarder.Forwarder.UnmapAllDevicePorts(adb)
+ forwarder_instance.Close()
+
if __name__ == '__main__':
main(sys.argv)
Property changes on: trunk/src/build/android/adb_reverse_forwarder.py
___________________________________________________________________
Added: svn:mergeinfo
« no previous file with comments | « no previous file | trunk/src/build/android/bb_run_sharded_steps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698