| OLD | NEW |
| 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 import sys | 8 import sys |
| 9 | 9 |
| 10 from base_test_runner import BaseTestRunner | 10 from base_test_runner import BaseTestRunner |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 | 135 |
| 136 def GetDataFilesForTestSuite(self): | 136 def GetDataFilesForTestSuite(self): |
| 137 """Returns a list of data files/dirs needed by the test suite.""" | 137 """Returns a list of data files/dirs needed by the test suite.""" |
| 138 # Ideally, we'd just push all test data. However, it has >100MB, and a lot | 138 # Ideally, we'd just push all test data. However, it has >100MB, and a lot |
| 139 # of the files are not relevant (some are used for browser_tests, others for | 139 # of the files are not relevant (some are used for browser_tests, others for |
| 140 # features not supported, etc..). | 140 # features not supported, etc..). |
| 141 if self.test_package.test_suite_basename in ['base_unittests', | 141 if self.test_package.test_suite_basename in ['base_unittests', |
| 142 'sql_unittests', | 142 'sql_unittests', |
| 143 'unit_tests']: | 143 'unit_tests']: |
| 144 test_files = [ | 144 test_files = [ |
| 145 'base/data/file_util_unittest', |
| 145 'base/data/json/bom_feff.json', | 146 'base/data/json/bom_feff.json', |
| 146 'base/data/file_util_unittest', | |
| 147 'net/data/cache_tests/insert_load1', | 147 'net/data/cache_tests/insert_load1', |
| 148 'net/data/cache_tests/dirty_entry5', | 148 'net/data/cache_tests/dirty_entry5', |
| 149 'net/data/ssl/certificates/', | 149 'net/data/ssl/certificates/', |
| 150 'ui/base/test/data/data_pack_unittest', | 150 'ui/base/test/data/data_pack_unittest', |
| 151 'chrome/test/data/download-test1.lib', | 151 'chrome/test/data/download-test1.lib', |
| 152 'chrome/test/data/extensions/bad_magic.crx', | 152 'chrome/test/data/extensions/bad_magic.crx', |
| 153 'chrome/test/data/extensions/good.crx', | 153 'chrome/test/data/extensions/good.crx', |
| 154 'chrome/test/data/extensions/icon1.png', | 154 'chrome/test/data/extensions/icon1.png', |
| 155 'chrome/test/data/extensions/icon2.png', | 155 'chrome/test/data/extensions/icon2.png', |
| 156 'chrome/test/data/extensions/icon3.png', | 156 'chrome/test/data/extensions/icon3.png', |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 def TearDown(self): | 322 def TearDown(self): |
| 323 """Cleans up the test enviroment for the test suite.""" | 323 """Cleans up the test enviroment for the test suite.""" |
| 324 self.tool.CleanUpEnvironment() | 324 self.tool.CleanUpEnvironment() |
| 325 if self.test_package.cleanup_test_files: | 325 if self.test_package.cleanup_test_files: |
| 326 self.adb.RemovePushedFiles() | 326 self.adb.RemovePushedFiles() |
| 327 if self.dump_debug_info: | 327 if self.dump_debug_info: |
| 328 self.dump_debug_info.StopRecordingLog() | 328 self.dump_debug_info.StopRecordingLog() |
| 329 if self.test_package.performance_test: | 329 if self.test_package.performance_test: |
| 330 self.adb.TearDownPerformanceTest() | 330 self.adb.TearDownPerformanceTest() |
| 331 super(SingleTestRunner, self).TearDown() | 331 super(SingleTestRunner, self).TearDown() |
| OLD | NEW |