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

Unified Diff: chrome/test/chromedriver/run_py_tests.py

Issue 19844006: Revert "Reland r212020: Move Python setup/tear down logic into Forwarder ..." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 | « build/android/pylib/instrumentation/test_runner.py ('k') | chrome/test/chromedriver/test_environment.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/run_py_tests.py
diff --git a/chrome/test/chromedriver/run_py_tests.py b/chrome/test/chromedriver/run_py_tests.py
index 35d6c9d280a68d9c9a3e264d1dc346deee1fadcc..7cefbc5cb75b2078b25f98e9c5f6ffcf639c2094 100755
--- a/chrome/test/chromedriver/run_py_tests.py
+++ b/chrome/test/chromedriver/run_py_tests.py
@@ -143,14 +143,19 @@ class ChromeDriverTest(ChromeDriverBaseTest):
chrome_paths.GetTestData())
if _ANDROID_PACKAGE:
ChromeDriverTest._adb = android_commands.AndroidCommands()
+ forwarder.Forwarder.KillHost('Debug')
+ ChromeDriverTest._forwarder = forwarder.Forwarder(ChromeDriverTest._adb,
+ 'Debug')
host_port = ChromeDriverTest._http_server._server.server_port
- forwarder.Forwarder.Map(
- [(host_port, host_port)], ChromeDriverTest._adb)
+ ChromeDriverTest._forwarder.Run(
+ [(host_port, host_port)], valgrind_tools.BaseTool())
@staticmethod
def GlobalTearDown():
if _ANDROID_PACKAGE:
- forwarder.Forwarder.UnmapAllDevicePorts(ChromeDriverTest._adb)
+ forwarder.Forwarder.KillDevice(ChromeDriverTest._adb,
+ valgrind_tools.BaseTool())
+ ChromeDriverTest._forwarder.Close()
ChromeDriverTest._http_server.Shutdown()
@staticmethod
« no previous file with comments | « build/android/pylib/instrumentation/test_runner.py ('k') | chrome/test/chromedriver/test_environment.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698