| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 re | 5 import re |
| 6 import string | 6 import string |
| 7 | 7 |
| 8 | 8 |
| 9 class Test(object): | 9 class Test(object): |
| 10 """ | 10 """ |
| (...skipping 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1415 test=path, | 1415 test=path, |
| 1416 args=args, | 1416 args=args, |
| 1417 xvfb=True, | 1417 xvfb=True, |
| 1418 name=self._step_name(suffix), | 1418 name=self._step_name(suffix), |
| 1419 python_mode=True, | 1419 python_mode=True, |
| 1420 env=env, | 1420 env=env, |
| 1421 **kwargs) | 1421 **kwargs) |
| 1422 | 1422 |
| 1423 @staticmethod | 1423 @staticmethod |
| 1424 def compile_targets(api): | 1424 def compile_targets(api): |
| 1425 targets = ['browser_tests', 'blink_tests'] | 1425 return ['browser_tests', 'blink_tests'] |
| 1426 if api.platform.is_win: | |
| 1427 targets.append('crash_service') | |
| 1428 | |
| 1429 return targets | |
| 1430 | 1426 |
| 1431 | 1427 |
| 1432 class BisectTest(Test): # pylint: disable=W0232 | 1428 class BisectTest(Test): # pylint: disable=W0232 |
| 1433 name = 'bisect_test' | 1429 name = 'bisect_test' |
| 1434 | 1430 |
| 1435 def __init__(self, test_parameters={}): | 1431 def __init__(self, test_parameters={}): |
| 1436 super(BisectTest, self).__init__() | 1432 super(BisectTest, self).__init__() |
| 1437 self._test_parameters = test_parameters | 1433 self._test_parameters = test_parameters |
| 1438 | 1434 |
| 1439 @property | 1435 @property |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1836 test_path.join('test_installer.py'), | 1832 test_path.join('test_installer.py'), |
| 1837 args, | 1833 args, |
| 1838 **kwargs) | 1834 **kwargs) |
| 1839 | 1835 |
| 1840 | 1836 |
| 1841 class WebViewCTSTest(Test): | 1837 class WebViewCTSTest(Test): |
| 1842 | 1838 |
| 1843 @property | 1839 @property |
| 1844 def name(self): | 1840 def name(self): |
| 1845 return 'WebView CTS' | 1841 return 'WebView CTS' |
| 1846 | 1842 |
| 1847 @property | 1843 @property |
| 1848 def uses_local_devices(self): | 1844 def uses_local_devices(self): |
| 1849 return True | 1845 return True |
| 1850 | 1846 |
| 1851 @staticmethod | 1847 @staticmethod |
| 1852 def compile_targets(api): | 1848 def compile_targets(api): |
| 1853 return ['system_webview_apk'] | 1849 return ['system_webview_apk'] |
| 1854 | 1850 |
| 1855 def run(self, api, suffix, test_filter=None): | 1851 def run(self, api, suffix, test_filter=None): |
| 1856 api.chromium_android.adb_install_apk( | 1852 api.chromium_android.adb_install_apk( |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1901 def run(self, api, suffix, test_filter=None): | 1897 def run(self, api, suffix, test_filter=None): |
| 1902 api.chromium_android.coverage_report(upload=False) | 1898 api.chromium_android.coverage_report(upload=False) |
| 1903 api.chromium_android.get_changed_lines_for_revision() | 1899 api.chromium_android.get_changed_lines_for_revision() |
| 1904 api.chromium_android.incremental_coverage_report() | 1900 api.chromium_android.incremental_coverage_report() |
| 1905 | 1901 |
| 1906 | 1902 |
| 1907 GOMA_TESTS = [ | 1903 GOMA_TESTS = [ |
| 1908 GTestTest('base_unittests'), | 1904 GTestTest('base_unittests'), |
| 1909 GTestTest('content_unittests'), | 1905 GTestTest('content_unittests'), |
| 1910 ] | 1906 ] |
| OLD | NEW |