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

Unified Diff: build/android/pylib/test_package.py

Issue 10824067: Some fixes to run unit_tests bundle on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | chrome/browser/download/download_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/test_package.py
diff --git a/build/android/pylib/test_package.py b/build/android/pylib/test_package.py
index 6ecbaa9525599447a775f5adae4c827e737fe08d..afba7bd91483be5534f912ad31bbe6e1da091666 100644
--- a/build/android/pylib/test_package.py
+++ b/build/android/pylib/test_package.py
@@ -106,11 +106,30 @@ class TestPackage(object):
return ret
def PushDataAndPakFiles(self):
- if self.test_suite_basename == 'ui_unittests':
- self.adb.PushIfNeeded(self.test_suite_dirname + '/chrome.pak',
- '/data/local/tmp/paks/chrome.pak')
- self.adb.PushIfNeeded(self.test_suite_dirname + '/locales/en-US.pak',
- '/data/local/tmp/paks/en-US.pak')
+ if (self.test_suite_basename == 'ui_unittests' or
+ self.test_suite_basename == 'unit_tests'):
+ self.adb.PushIfNeeded(
+ self.test_suite_dirname + '/chrome.pak',
+ '/data/local/tmp/paks/chrome.pak')
+ self.adb.PushIfNeeded(
+ self.test_suite_dirname + '/locales/en-US.pak',
+ '/data/local/tmp/paks/en-US.pak')
+ if self.test_suite_basename == 'unit_tests':
+ self.adb.PushIfNeeded(
+ self.test_suite_dirname + '/resources.pak',
+ '/data/local/tmp/paks/resources.pak')
+ self.adb.PushIfNeeded(
+ self.test_suite_dirname + '/theme_resources_100_percent.pak',
+ '/data/local/tmp/paks/theme_resources_100_percent.pak')
+ self.adb.PushIfNeeded(
+ self.test_suite_dirname + '/ui_resources_100_percent.pak',
+ '/data/local/tmp/paks/ui_resources_100_percent.pak')
+ self.adb.PushIfNeeded(self.test_suite_dirname + '/test_data',
+ '/data/local/tmp/test_data')
+ if self.test_suite_basename == 'content_unittests':
+ self.adb.PushIfNeeded(
+ self.test_suite_dirname + '/content_resources.pak',
+ '/data/local/tmp/paks/content_resources.pak')
def _WatchTestOutput(self, p):
"""Watches the test output.
« no previous file with comments | « no previous file | chrome/browser/download/download_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698