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

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

Issue 14021015: Move components/zip to third_party/zip (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update unit_tests.isolate for new test data location Created 7 years, 7 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
« no previous file with comments | « no previous file | chrome/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 'chrome/test/data/json_schema_validator/', 61 'chrome/test/data/json_schema_validator/',
62 'chrome/test/data/pref_service/', 62 'chrome/test/data/pref_service/',
63 'chrome/test/data/simple_open_search.xml', 63 'chrome/test/data/simple_open_search.xml',
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/third_party/mock4js/', 68 'chrome/third_party/mock4js/',
69 'net/data/ssl/certificates', 69 'net/data/ssl/certificates',
70 'third_party/accessibility-developer-tools/gen/axs_testing.js', 70 'third_party/accessibility-developer-tools/gen/axs_testing.js',
71 'third_party/zlib/google/test/data',
71 ] 72 ]
72 # The following are spell check data. Now only list the data under 73 # The following are spell check data. Now only list the data under
73 # third_party/hunspell_dictionaries which are used by unit tests. 74 # third_party/hunspell_dictionaries which are used by unit tests.
74 old_cwd = os.getcwd() 75 old_cwd = os.getcwd()
75 os.chdir(constants.CHROME_DIR) 76 os.chdir(constants.CHROME_DIR)
76 test_files += glob.glob('third_party/hunspell_dictionaries/*.bdic') 77 test_files += glob.glob('third_party/hunspell_dictionaries/*.bdic')
77 os.chdir(old_cwd) 78 os.chdir(old_cwd)
78 return test_files 79 return test_files
79 elif test_suite_basename == 'components_unittests':
80 return [
81 'components/test/data/zip',
82 ]
83 elif test_suite_basename == 'media_unittests': 80 elif test_suite_basename == 'media_unittests':
84 return [ 81 return [
85 'media/test/data', 82 'media/test/data',
86 ] 83 ]
87 elif test_suite_basename == 'net_unittests': 84 elif test_suite_basename == 'net_unittests':
88 return [ 85 return [
89 'chrome/test/data/animate1.gif', 86 'chrome/test/data/animate1.gif',
90 'chrome/test/data/simple.html', 87 'chrome/test/data/simple.html',
91 'net/data/cache_tests', 88 'net/data/cache_tests',
92 'net/data/filter_unittests', 89 'net/data/filter_unittests',
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 self.LaunchChromeTestServerSpawner() 380 self.LaunchChromeTestServerSpawner()
384 self.tool.SetupEnvironment() 381 self.tool.SetupEnvironment()
385 382
386 #override 383 #override
387 def TearDown(self): 384 def TearDown(self):
388 """Cleans up the test enviroment for the test suite.""" 385 """Cleans up the test enviroment for the test suite."""
389 self.tool.CleanUpEnvironment() 386 self.tool.CleanUpEnvironment()
390 if self._cleanup_test_files: 387 if self._cleanup_test_files:
391 self.adb.RemovePushedFiles() 388 self.adb.RemovePushedFiles()
392 super(TestRunner, self).TearDown() 389 super(TestRunner, self).TearDown()
OLDNEW
« no previous file with comments | « no previous file | chrome/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698