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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
220 elif self.test_package.test_suite_basename == 'webkit_unit_tests': | 220 elif self.test_package.test_suite_basename == 'webkit_unit_tests': |
221 return [ | 221 return [ |
222 'third_party/WebKit/Source/WebKit/chromium/tests/data', | 222 'third_party/WebKit/Source/WebKit/chromium/tests/data', |
223 ] | 223 ] |
224 elif self.test_package.test_suite_basename == 'content_unittests': | 224 elif self.test_package.test_suite_basename == 'content_unittests': |
225 return [ | 225 return [ |
226 'chrome/test/gpu/webgl_conformance_test_expectations.txt', | 226 'chrome/test/gpu/webgl_conformance_test_expectations.txt', |
227 'net/data/ssl/certificates/', | 227 'net/data/ssl/certificates/', |
228 'webkit/data/dom_storage/webcore_test_database.localstorage', | 228 'webkit/data/dom_storage/webcore_test_database.localstorage', |
229 ] | 229 ] |
230 elif self.test_package.test_suite_basename == 'media_unittests': | |
231 return [ | |
232 'media/test/data/ten_byte_file', | |
bulach
2012/07/16 09:26:03
we have this downstream:
return [
| |
233 'media/test/data/bali_640x360_P420.yuv' | |
234 ] | |
230 return [] | 235 return [] |
231 | 236 |
232 def LaunchHelperToolsForTestSuite(self): | 237 def LaunchHelperToolsForTestSuite(self): |
233 """Launches helper tools for the test suite. | 238 """Launches helper tools for the test suite. |
234 | 239 |
235 Sometimes one test may need to run some helper tools first in order to | 240 Sometimes one test may need to run some helper tools first in order to |
236 successfully complete the test. | 241 successfully complete the test. |
237 """ | 242 """ |
238 if self._TestSuiteRequiresMockTestServer(): | 243 if self._TestSuiteRequiresMockTestServer(): |
239 self.LaunchChromeTestServerSpawner() | 244 self.LaunchChromeTestServerSpawner() |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
327 def TearDown(self): | 332 def TearDown(self): |
328 """Cleans up the test enviroment for the test suite.""" | 333 """Cleans up the test enviroment for the test suite.""" |
329 self.tool.CleanUpEnvironment() | 334 self.tool.CleanUpEnvironment() |
330 if self.test_package.cleanup_test_files: | 335 if self.test_package.cleanup_test_files: |
331 self.adb.RemovePushedFiles() | 336 self.adb.RemovePushedFiles() |
332 if self.dump_debug_info: | 337 if self.dump_debug_info: |
333 self.dump_debug_info.StopRecordingLog() | 338 self.dump_debug_info.StopRecordingLog() |
334 if self.test_package.performance_test: | 339 if self.test_package.performance_test: |
335 self.adb.TearDownPerformanceTest() | 340 self.adb.TearDownPerformanceTest() |
336 super(SingleTestRunner, self).TearDown() | 341 super(SingleTestRunner, self).TearDown() |
OLD | NEW |