| 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 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1408 test=path, | 1408 test=path, |
| 1409 args=args, | 1409 args=args, |
| 1410 xvfb=True, | 1410 xvfb=True, |
| 1411 name=self._step_name(suffix), | 1411 name=self._step_name(suffix), |
| 1412 python_mode=True, | 1412 python_mode=True, |
| 1413 env=env, | 1413 env=env, |
| 1414 **kwargs) | 1414 **kwargs) |
| 1415 | 1415 |
| 1416 @staticmethod | 1416 @staticmethod |
| 1417 def compile_targets(api): | 1417 def compile_targets(api): |
| 1418 targets = ['browser_tests', 'blink_tests'] | 1418 return ['browser_tests', 'blink_tests'] |
| 1419 if api.platform.is_win: | |
| 1420 targets.append('crash_service') | |
| 1421 | |
| 1422 return targets | |
| 1423 | 1419 |
| 1424 | 1420 |
| 1425 class BisectTest(Test): # pylint: disable=W0232 | 1421 class BisectTest(Test): # pylint: disable=W0232 |
| 1426 name = 'bisect_test' | 1422 name = 'bisect_test' |
| 1427 | 1423 |
| 1428 def __init__(self, test_parameters={}): | 1424 def __init__(self, test_parameters={}): |
| 1429 super(BisectTest, self).__init__() | 1425 super(BisectTest, self).__init__() |
| 1430 self._test_parameters = test_parameters | 1426 self._test_parameters = test_parameters |
| 1431 | 1427 |
| 1432 @property | 1428 @property |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1811 test_path.join('test_installer.py'), | 1807 test_path.join('test_installer.py'), |
| 1812 args, | 1808 args, |
| 1813 **kwargs) | 1809 **kwargs) |
| 1814 | 1810 |
| 1815 | 1811 |
| 1816 class WebViewCTSTest(Test): | 1812 class WebViewCTSTest(Test): |
| 1817 | 1813 |
| 1818 @property | 1814 @property |
| 1819 def name(self): | 1815 def name(self): |
| 1820 return 'WebView CTS' | 1816 return 'WebView CTS' |
| 1821 | 1817 |
| 1822 @property | 1818 @property |
| 1823 def uses_local_devices(self): | 1819 def uses_local_devices(self): |
| 1824 return True | 1820 return True |
| 1825 | 1821 |
| 1826 @staticmethod | 1822 @staticmethod |
| 1827 def compile_targets(api): | 1823 def compile_targets(api): |
| 1828 return ['system_webview_apk'] | 1824 return ['system_webview_apk'] |
| 1829 | 1825 |
| 1830 def run(self, api, suffix, test_filter=None): | 1826 def run(self, api, suffix, test_filter=None): |
| 1831 api.chromium_android.adb_install_apk( | 1827 api.chromium_android.adb_install_apk( |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1876 def run(self, api, suffix, test_filter=None): | 1872 def run(self, api, suffix, test_filter=None): |
| 1877 api.chromium_android.coverage_report(upload=False) | 1873 api.chromium_android.coverage_report(upload=False) |
| 1878 api.chromium_android.get_changed_lines_for_revision() | 1874 api.chromium_android.get_changed_lines_for_revision() |
| 1879 api.chromium_android.incremental_coverage_report() | 1875 api.chromium_android.incremental_coverage_report() |
| 1880 | 1876 |
| 1881 | 1877 |
| 1882 GOMA_TESTS = [ | 1878 GOMA_TESTS = [ |
| 1883 GTestTest('base_unittests'), | 1879 GTestTest('base_unittests'), |
| 1884 GTestTest('content_unittests'), | 1880 GTestTest('content_unittests'), |
| 1885 ] | 1881 ] |
| OLD | NEW |