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

Unified Diff: build/android/adb_reverse_forwarder.py

Issue 20824008: Reland r212020: Move Python setup/tear down logic into Forwarder ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Close unused FDs 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 | 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: build/android/adb_reverse_forwarder.py
diff --git a/build/android/adb_reverse_forwarder.py b/build/android/adb_reverse_forwarder.py
index e465ea77156795e39f951af21022c3ea9adfd6b7..ee38332b3c20b85b945c582fdf2d04ce6ff08a4a 100755
--- a/build/android/adb_reverse_forwarder.py
+++ b/build/android/adb_reverse_forwarder.py
@@ -17,7 +17,6 @@ import time
from pylib import android_commands, forwarder
from pylib.utils import run_tests_helper
-from pylib.valgrind_tools import CreateTool
def main(argv):
@@ -51,17 +50,14 @@ def main(argv):
sys.exit(1)
adb = android_commands.AndroidCommands(options.device)
- tool = CreateTool(None, adb)
- forwarder_instance = forwarder.Forwarder(adb, options.build_type)
try:
- forwarder_instance.Run(port_pairs, tool)
+ forwarder.Forwarder.Map(port_pairs, adb, options.build_type)
while True:
time.sleep(60)
except KeyboardInterrupt:
sys.exit(0)
finally:
- forwarder_instance.Close()
-
+ forwarder.Forwarder.UnmapAllDevicePorts(adb)
if __name__ == '__main__':
main(sys.argv)
« no previous file with comments | « no previous file | build/android/bb_run_sharded_steps.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698