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

Unified Diff: trunk/src/chrome/test/chromedriver/run_py_tests.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
Index: trunk/src/chrome/test/chromedriver/run_py_tests.py
===================================================================
--- trunk/src/chrome/test/chromedriver/run_py_tests.py (revision 212053)
+++ trunk/src/chrome/test/chromedriver/run_py_tests.py (working copy)
@@ -143,14 +143,19 @@
chrome_paths.GetTestData())
if _ANDROID_PACKAGE:
ChromeDriverTest._adb = android_commands.AndroidCommands()
- self._host_port = ChromeDriverTest._http_server._server.server_port
- forwarder.Forwarder.Map(
- [(self._host_port, self._host_port)], ChromeDriverTest._adb)
+ forwarder.Forwarder.KillHost('Debug')
+ ChromeDriverTest._forwarder = forwarder.Forwarder(ChromeDriverTest._adb,
+ 'Debug')
+ host_port = ChromeDriverTest._http_server._server.server_port
+ 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 | « trunk/src/build/android/pylib/instrumentation/test_runner.py ('k') | trunk/src/chrome/test/chromedriver/test_environment.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698