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

Unified Diff: build/android/pylib/gtest/test_runner.py

Issue 12263024: Android: Add test runner scripts to run content_browsertests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused browsertests/test_sharder.py Created 7 years, 10 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: build/android/pylib/gtest/test_runner.py
diff --git a/build/android/pylib/gtest/test_runner.py b/build/android/pylib/gtest/test_runner.py
index 3ac50e214227837006c3c4c426ae341c617c5dbe..05cf8496c470a52ec2b37fd7cf097f45da6de3e3 100644
--- a/build/android/pylib/gtest/test_runner.py
+++ b/build/android/pylib/gtest/test_runner.py
@@ -121,13 +121,18 @@ def _GetDataFilesForTestSuite(test_suite_basename):
return [
'cc/test/data',
]
+ elif test_suite_basename == 'content_browsertests':
+ return [
+ 'content/test/data',
+ ]
return []
def _TestSuiteRequiresMockTestServer(test_suite_basename):
"""Returns True if the test suite requires mock test server."""
tests_require_net_test_server = ['unit_tests', 'net_unittests',
- 'content_unittests']
+ 'content_unittests',
+ 'content_browsertests']
return (test_suite_basename in
tests_require_net_test_server)
@@ -144,11 +149,15 @@ class TestRunner(base_test_runner.BaseTestRunner):
tool_name: Name of the Valgrind tool.
build_type: 'Release' or 'Debug'.
in_webkit_checkout: Whether the suite is being run from a WebKit checkout.
+ test_apk_package_name: Apk package name for tests running in APKs.
craigdh 2013/02/21 00:26:02 Maybe create a struct-looking class that just hold
nilesh 2013/02/21 18:04:13 As discussed offline, I will keep the arguments se
+ test_activity_name: Test activity to invoke for APK tests.
+ command_line_file: Filename to use to pass arguments to tests.
"""
def __init__(self, device, test_suite, test_arguments, timeout,
cleanup_test_files, tool_name, build_type,
- in_webkit_checkout):
+ in_webkit_checkout, test_apk_package_name, test_activity_name,
+ command_line_file):
super(TestRunner, self).__init__(device, tool_name, build_type)
self._running_on_emulator = self.device.startswith('emulator')
self._test_arguments = test_arguments
@@ -163,7 +172,10 @@ class TestRunner(base_test_runner.BaseTestRunner):
test_suite,
timeout,
self._cleanup_test_files,
- self.tool)
+ self.tool,
+ test_apk_package_name,
+ test_activity_name,
+ command_line_file)
else:
# Put a copy into the android out/target directory, to allow stack trace
# generation.

Powered by Google App Engine
This is Rietveld 408576698