| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 re | 6 import re |
| 7 import subprocess | 7 import subprocess |
| 8 import unittest | 8 import unittest |
| 9 | 9 |
| 10 import PRESUBMIT | 10 import PRESUBMIT |
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 | 699 |
| 700 for (filename, _, expected_error) in test_data: | 700 for (filename, _, expected_error) in test_data: |
| 701 actual_error = PRESUBMIT._GetIDLParseError(input_api, filename) | 701 actual_error = PRESUBMIT._GetIDLParseError(input_api, filename) |
| 702 self.assertTrue(expected_error in str(actual_error), | 702 self.assertTrue(expected_error in str(actual_error), |
| 703 "'%s' not found in '%s'" % (expected_error, actual_error)) | 703 "'%s' not found in '%s'" % (expected_error, actual_error)) |
| 704 | 704 |
| 705 | 705 |
| 706 class TryServerMasterTest(unittest.TestCase): | 706 class TryServerMasterTest(unittest.TestCase): |
| 707 def testTryServerMasters(self): | 707 def testTryServerMasters(self): |
| 708 bots = { | 708 bots = { |
| 709 'tryserver.chromium.android': [ |
| 710 'android_archive_rel_ng', |
| 711 'android_arm64_dbg_recipe', |
| 712 'android_blink_rel', |
| 713 'android_chromium_variable', |
| 714 'android_chromium_variable_archive', |
| 715 'android_chromium_variable_arm64', |
| 716 'android_chromium_variable_cast_shell', |
| 717 'android_chromium_variable_clang', |
| 718 'android_chromium_variable_gn', |
| 719 'android_chromium_variable_nexus4', |
| 720 'android_clang_dbg_recipe', |
| 721 'android_compile_dbg', |
| 722 'android_compile_mips_dbg', |
| 723 'android_compile_rel', |
| 724 'android_compile_x64_dbg', |
| 725 'android_compile_x86_dbg', |
| 726 'android_coverage', |
| 727 'android_cronet_tester' |
| 728 'android_swarming_rel', |
| 729 'cast_shell_android', |
| 730 'linux_android_dbg_ng', |
| 731 'linux_android_rel_ng', |
| 732 ], |
| 709 'tryserver.chromium.mac': [ | 733 'tryserver.chromium.mac': [ |
| 710 'ios_dbg_simulator', | 734 'ios_dbg_simulator', |
| 711 'ios_rel_device', | 735 'ios_rel_device', |
| 712 'ios_rel_device_ninja', | 736 'ios_rel_device_ninja', |
| 713 'mac_asan', | 737 'mac_asan', |
| 714 'mac_asan_64', | 738 'mac_asan_64', |
| 715 'mac_chromium_compile_dbg', | 739 'mac_chromium_compile_dbg', |
| 716 'mac_chromium_compile_rel', | 740 'mac_chromium_compile_rel', |
| 717 'mac_chromium_dbg', | 741 'mac_chromium_dbg', |
| 718 'mac_chromium_rel', | 742 'mac_chromium_rel', |
| 719 'mac_nacl_sdk', | 743 'mac_nacl_sdk', |
| 720 'mac_nacl_sdk_build', | 744 'mac_nacl_sdk_build', |
| 721 'mac_rel_naclmore', | 745 'mac_rel_naclmore', |
| 722 'mac_x64_rel', | 746 'mac_x64_rel', |
| 723 'mac_xcodebuild', | 747 'mac_xcodebuild', |
| 724 ], | 748 ], |
| 725 'tryserver.chromium.linux': [ | 749 'tryserver.chromium.linux': [ |
| 726 'android_aosp', | |
| 727 'android_chromium_gn_compile_dbg', | |
| 728 'android_chromium_gn_compile_rel', | |
| 729 'android_clang_dbg', | |
| 730 'android_dbg', | |
| 731 'android_dbg_recipe', | |
| 732 'android_dbg_triggered_tests', | |
| 733 'android_dbg_triggered_tests_recipe', | |
| 734 'android_fyi_dbg', | |
| 735 'android_fyi_dbg_triggered_tests', | |
| 736 'android_rel', | |
| 737 'android_rel_triggered_tests', | |
| 738 'android_x86_dbg', | |
| 739 'blink_android_compile_dbg', | |
| 740 'blink_android_compile_rel', | |
| 741 'chromium_presubmit', | 750 'chromium_presubmit', |
| 742 'linux_arm_cross_compile', | 751 'linux_arm_cross_compile', |
| 743 'linux_arm_tester', | 752 'linux_arm_tester', |
| 744 'linux_chromeos_asan', | 753 'linux_chromeos_asan', |
| 745 'linux_chromeos_browser_asan', | 754 'linux_chromeos_browser_asan', |
| 746 'linux_chromeos_valgrind', | 755 'linux_chromeos_valgrind', |
| 747 'linux_chromium_chromeos_dbg', | 756 'linux_chromium_chromeos_dbg', |
| 748 'linux_chromium_chromeos_rel', | 757 'linux_chromium_chromeos_rel', |
| 749 'linux_chromium_compile_dbg', | 758 'linux_chromium_compile_dbg', |
| 750 'linux_chromium_compile_rel', | 759 'linux_chromium_compile_rel', |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 ['char* host = "https://www.aol.com"; // google.com']) | 1086 ['char* host = "https://www.aol.com"; // google.com']) |
| 1078 ] | 1087 ] |
| 1079 | 1088 |
| 1080 warnings = PRESUBMIT._CheckHardcodedGoogleHostsInLowerLayers( | 1089 warnings = PRESUBMIT._CheckHardcodedGoogleHostsInLowerLayers( |
| 1081 input_api, MockOutputApi()) | 1090 input_api, MockOutputApi()) |
| 1082 self.assertEqual(0, len(warnings)) | 1091 self.assertEqual(0, len(warnings)) |
| 1083 | 1092 |
| 1084 | 1093 |
| 1085 if __name__ == '__main__': | 1094 if __name__ == '__main__': |
| 1086 unittest.main() | 1095 unittest.main() |
| OLD | NEW |