| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 import collections | 6 import collections |
| 7 import glob | 7 import glob |
| 8 import hashlib | 8 import hashlib |
| 9 import json | 9 import json |
| 10 import os | 10 import os |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 | 439 |
| 440 def RunWebRTCChromiumTests(options): | 440 def RunWebRTCChromiumTests(options): |
| 441 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES) | 441 RunTestSuites(options, gtest_config.WEBRTC_CHROMIUM_TEST_SUITES) |
| 442 | 442 |
| 443 | 443 |
| 444 def RunWebRTCNativeTests(options): | 444 def RunWebRTCNativeTests(options): |
| 445 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES) | 445 RunTestSuites(options, gtest_config.WEBRTC_NATIVE_TEST_SUITES) |
| 446 | 446 |
| 447 | 447 |
| 448 def RunGPUTests(options): | 448 def RunGPUTests(options): |
| 449 InstallApk(options, INSTRUMENTATION_TESTS['ContentShell'], False) | |
| 450 | |
| 451 bb_annotations.PrintNamedStep('gpu_tests') | 449 bb_annotations.PrintNamedStep('gpu_tests') |
| 452 revision = _GetRevision(options) | 450 revision = _GetRevision(options) |
| 453 RunCmd(['content/test/gpu/run_gpu_test.py', | 451 RunCmd(['content/test/gpu/run_gpu_test.py', |
| 454 'pixel', | 452 'pixel', |
| 455 '--browser', | 453 '--browser', |
| 456 'android-content-shell', | 454 'android-content-shell', |
| 457 '--build-revision', | 455 '--build-revision', |
| 458 str(revision), | 456 str(revision), |
| 459 '--upload-refimg-to-cloud-storage', | 457 '--upload-refimg-to-cloud-storage', |
| 460 '--refimg-cloud-storage-bucket', | 458 '--refimg-cloud-storage-bucket', |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) | 649 setattr(options, 'target', options.factory_properties.get('target', 'Debug')) |
| 652 if options.coverage_bucket: | 650 if options.coverage_bucket: |
| 653 setattr(options, 'coverage_dir', | 651 setattr(options, 'coverage_dir', |
| 654 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) | 652 os.path.join(CHROME_OUT_DIR, options.target, 'coverage')) |
| 655 | 653 |
| 656 MainTestWrapper(options) | 654 MainTestWrapper(options) |
| 657 | 655 |
| 658 | 656 |
| 659 if __name__ == '__main__': | 657 if __name__ == '__main__': |
| 660 sys.exit(main(sys.argv)) | 658 sys.exit(main(sys.argv)) |
| OLD | NEW |