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

Side by Side Diff: build/android/pylib/gtest/test_runner.py

Issue 12481028: base: Move the rest of JSONValueSerializer unit tests from c/common to base/json. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: change the extension to json Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import glob 5 import glob
6 import logging 6 import logging
7 import os 7 import os
8 8
9 from pylib import android_commands 9 from pylib import android_commands
10 from pylib import constants 10 from pylib import constants
(...skipping 17 matching lines...) Expand all
28 A list of test file and directory paths. 28 A list of test file and directory paths.
29 """ 29 """
30 # Ideally, we'd just push all test data. However, it has >100MB, and a lot 30 # Ideally, we'd just push all test data. However, it has >100MB, and a lot
31 # of the files are not relevant (some are used for browser_tests, others for 31 # of the files are not relevant (some are used for browser_tests, others for
32 # features not supported, etc..). 32 # features not supported, etc..).
33 if test_suite_basename in ['base_unittests', 'sql_unittests', 'unit_tests']: 33 if test_suite_basename in ['base_unittests', 'sql_unittests', 'unit_tests']:
34 test_files = [ 34 test_files = [
35 'base/data/file_util_unittest', 35 'base/data/file_util_unittest',
36 'base/data/json/bom_feff.json', 36 'base/data/json/bom_feff.json',
37 'base/prefs/test/data/pref_service', 37 'base/prefs/test/data/pref_service',
38 'base/test/data/serializer_nested_test.json',
39 'base/test/data/serializer_test.json',
40 'base/test/data/serializer_test_nowhitespace.json',
38 'chrome/test/data/download-test1.lib', 41 'chrome/test/data/download-test1.lib',
39 'chrome/test/data/extensions/bad_magic.crx', 42 'chrome/test/data/extensions/bad_magic.crx',
40 'chrome/test/data/extensions/good.crx', 43 'chrome/test/data/extensions/good.crx',
41 'chrome/test/data/extensions/icon1.png', 44 'chrome/test/data/extensions/icon1.png',
42 'chrome/test/data/extensions/icon2.png', 45 'chrome/test/data/extensions/icon2.png',
43 'chrome/test/data/extensions/icon3.png', 46 'chrome/test/data/extensions/icon3.png',
44 'chrome/test/data/extensions/allow_silent_upgrade/', 47 'chrome/test/data/extensions/allow_silent_upgrade/',
45 'chrome/test/data/extensions/app/', 48 'chrome/test/data/extensions/app/',
46 'chrome/test/data/extensions/bad/', 49 'chrome/test/data/extensions/bad/',
47 'chrome/test/data/extensions/effective_host_permissions/', 50 'chrome/test/data/extensions/effective_host_permissions/',
48 'chrome/test/data/extensions/empty_manifest/', 51 'chrome/test/data/extensions/empty_manifest/',
49 'chrome/test/data/extensions/good/Extensions/', 52 'chrome/test/data/extensions/good/Extensions/',
50 'chrome/test/data/extensions/manifest_tests/', 53 'chrome/test/data/extensions/manifest_tests/',
51 'chrome/test/data/extensions/page_action/', 54 'chrome/test/data/extensions/page_action/',
52 'chrome/test/data/extensions/permissions/', 55 'chrome/test/data/extensions/permissions/',
53 'chrome/test/data/extensions/script_and_capture/', 56 'chrome/test/data/extensions/script_and_capture/',
54 'chrome/test/data/extensions/unpacker/', 57 'chrome/test/data/extensions/unpacker/',
55 'chrome/test/data/bookmarks/', 58 'chrome/test/data/bookmarks/',
56 'chrome/test/data/components/', 59 'chrome/test/data/components/',
57 'chrome/test/data/extensions/json_schema_test.js', 60 'chrome/test/data/extensions/json_schema_test.js',
58 'chrome/test/data/History/', 61 'chrome/test/data/History/',
59 'chrome/test/data/json_schema_validator/', 62 'chrome/test/data/json_schema_validator/',
60 'chrome/test/data/pref_service/', 63 'chrome/test/data/pref_service/',
61 'chrome/test/data/serializer_nested_test.js',
62 'chrome/test/data/serializer_test.js',
63 'chrome/test/data/serializer_test_nowhitespace.js',
64 'chrome/test/data/top_sites/', 64 'chrome/test/data/top_sites/',
65 'chrome/test/data/web_app_info/', 65 'chrome/test/data/web_app_info/',
66 'chrome/test/data/web_database', 66 'chrome/test/data/web_database',
67 'chrome/test/data/webui/', 67 'chrome/test/data/webui/',
68 'chrome/test/data/zip', 68 'chrome/test/data/zip',
69 'chrome/third_party/mock4js/', 69 'chrome/third_party/mock4js/',
70 'content/browser/gpu/software_rendering_list.json', 70 'content/browser/gpu/software_rendering_list.json',
71 'net/data/cache_tests/insert_load1', 71 'net/data/cache_tests/insert_load1',
72 'net/data/cache_tests/dirty_entry5', 72 'net/data/cache_tests/dirty_entry5',
73 'net/data/ssl/certificates/', 73 'net/data/ssl/certificates/',
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 'third_party/hyphen/hyph_en_US.dic', 114 'third_party/hyphen/hyph_en_US.dic',
115 ] 115 ]
116 elif test_suite_basename == 'media_unittests': 116 elif test_suite_basename == 'media_unittests':
117 return [ 117 return [
118 'media/test/data', 118 'media/test/data',
119 ] 119 ]
120 elif test_suite_basename == 'cc_perftests': 120 elif test_suite_basename == 'cc_perftests':
121 return [ 121 return [
122 'cc/test/data', 122 'cc/test/data',
123 ] 123 ]
124 elif test_suite_basename == 'perf_tests':
125 return [
126 'base/test/data',
127 ]
124 elif test_suite_basename == 'content_browsertests': 128 elif test_suite_basename == 'content_browsertests':
125 return [ 129 return [
126 'content/test/data', 130 'content/test/data',
127 ] 131 ]
128 return [] 132 return []
129 133
130 134
131 def _TestSuiteRequiresMockTestServer(test_suite_basename): 135 def _TestSuiteRequiresMockTestServer(test_suite_basename):
132 """Returns True if the test suite requires mock test server.""" 136 """Returns True if the test suite requires mock test server."""
133 tests_require_net_test_server = ['unit_tests', 'net_unittests', 137 tests_require_net_test_server = ['unit_tests', 'net_unittests',
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 self.LaunchChromeTestServerSpawner() 280 self.LaunchChromeTestServerSpawner()
277 self.tool.SetupEnvironment() 281 self.tool.SetupEnvironment()
278 282
279 #override 283 #override
280 def TearDown(self): 284 def TearDown(self):
281 """Cleans up the test enviroment for the test suite.""" 285 """Cleans up the test enviroment for the test suite."""
282 self.tool.CleanUpEnvironment() 286 self.tool.CleanUpEnvironment()
283 if self._cleanup_test_files: 287 if self._cleanup_test_files:
284 self.adb.RemovePushedFiles() 288 self.adb.RemovePushedFiles()
285 super(TestRunner, self).TearDown() 289 super(TestRunner, self).TearDown()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698