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