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

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: Addressed Frank's comments and fixed typo in constants.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
« no previous file with comments | « build/android/pylib/gtest/test_package_apk.py ('k') | build/android/run_browser_tests.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0ecc9c5a787cb39ded4e5a47234bfe524329793b 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.
+ 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=None,
+ test_activity_name=None, command_line_file=None):
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.
« no previous file with comments | « build/android/pylib/gtest/test_package_apk.py ('k') | build/android/run_browser_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698