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': [ | 709 'master.tryserver.chromium.android': [ |
710 'android_archive_rel_ng', | 710 'android_archive_rel_ng', |
711 'android_arm64_dbg_recipe', | 711 'android_arm64_dbg_recipe', |
712 'android_blink_rel', | 712 'android_blink_rel', |
713 'android_chromium_variable', | 713 'android_chromium_variable', |
714 'android_chromium_variable_archive', | 714 'android_chromium_variable_archive', |
715 'android_chromium_variable_arm64', | 715 'android_chromium_variable_arm64', |
716 'android_chromium_variable_cast_shell', | 716 'android_chromium_variable_cast_shell', |
717 'android_chromium_variable_clang', | 717 'android_chromium_variable_clang', |
718 'android_chromium_variable_gn', | 718 'android_chromium_variable_gn', |
719 'android_chromium_variable_nexus4', | 719 'android_chromium_variable_nexus4', |
720 'android_clang_dbg_recipe', | 720 'android_clang_dbg_recipe', |
721 'android_compile_dbg', | 721 'android_compile_dbg', |
722 'android_compile_mips_dbg', | 722 'android_compile_mips_dbg', |
723 'android_compile_rel', | 723 'android_compile_rel', |
724 'android_compile_x64_dbg', | 724 'android_compile_x64_dbg', |
725 'android_compile_x86_dbg', | 725 'android_compile_x86_dbg', |
726 'android_coverage', | 726 'android_coverage', |
727 'android_cronet_tester' | 727 'android_cronet_tester' |
728 'android_swarming_rel', | 728 'android_swarming_rel', |
729 'cast_shell_android', | 729 'cast_shell_android', |
730 'linux_android_dbg_ng', | 730 'linux_android_dbg_ng', |
731 'linux_android_rel_ng', | 731 'linux_android_rel_ng', |
732 ], | 732 ], |
733 'tryserver.chromium.mac': [ | 733 'master.tryserver.chromium.mac': [ |
734 'ios_dbg_simulator', | 734 'ios_dbg_simulator', |
735 'ios_rel_device', | 735 'ios_rel_device', |
736 'ios_rel_device_ninja', | 736 'ios_rel_device_ninja', |
737 'mac_asan', | 737 'mac_asan', |
738 'mac_asan_64', | 738 'mac_asan_64', |
739 'mac_chromium_compile_dbg', | 739 'mac_chromium_compile_dbg', |
740 'mac_chromium_compile_rel', | 740 'mac_chromium_compile_rel', |
741 'mac_chromium_dbg', | 741 'mac_chromium_dbg', |
742 'mac_chromium_rel', | 742 'mac_chromium_rel', |
743 'mac_nacl_sdk', | 743 'mac_nacl_sdk', |
744 'mac_nacl_sdk_build', | 744 'mac_nacl_sdk_build', |
745 'mac_rel_naclmore', | 745 'mac_rel_naclmore', |
746 'mac_x64_rel', | 746 'mac_x64_rel', |
747 'mac_xcodebuild', | 747 'mac_xcodebuild', |
748 ], | 748 ], |
749 'tryserver.chromium.linux': [ | 749 'master.tryserver.chromium.linux': [ |
750 'chromium_presubmit', | 750 'chromium_presubmit', |
751 'linux_arm_cross_compile', | 751 'linux_arm_cross_compile', |
752 'linux_arm_tester', | 752 'linux_arm_tester', |
753 'linux_chromeos_asan', | 753 'linux_chromeos_asan', |
754 'linux_chromeos_browser_asan', | 754 'linux_chromeos_browser_asan', |
755 'linux_chromeos_valgrind', | 755 'linux_chromeos_valgrind', |
756 'linux_chromium_chromeos_dbg', | 756 'linux_chromium_chromeos_dbg', |
757 'linux_chromium_chromeos_rel', | 757 'linux_chromium_chromeos_rel', |
758 'linux_chromium_compile_dbg', | 758 'linux_chromium_compile_dbg', |
759 'linux_chromium_compile_rel', | 759 'linux_chromium_compile_rel', |
(...skipping 14 matching lines...) Expand all Loading... |
774 'linux_nacl_sdk', | 774 'linux_nacl_sdk', |
775 'linux_nacl_sdk_bionic', | 775 'linux_nacl_sdk_bionic', |
776 'linux_nacl_sdk_bionic_build', | 776 'linux_nacl_sdk_bionic_build', |
777 'linux_nacl_sdk_build', | 777 'linux_nacl_sdk_build', |
778 'linux_redux', | 778 'linux_redux', |
779 'linux_rel_naclmore', | 779 'linux_rel_naclmore', |
780 'linux_rel_precise32', | 780 'linux_rel_precise32', |
781 'linux_valgrind', | 781 'linux_valgrind', |
782 'tools_build_presubmit', | 782 'tools_build_presubmit', |
783 ], | 783 ], |
784 'tryserver.chromium.win': [ | 784 'master.tryserver.chromium.win': [ |
785 'win8_aura', | 785 'win8_aura', |
786 'win8_chromium_dbg', | 786 'win8_chromium_dbg', |
787 'win8_chromium_rel', | 787 'win8_chromium_rel', |
788 'win_chromium_compile_dbg', | 788 'win_chromium_compile_dbg', |
789 'win_chromium_compile_rel', | 789 'win_chromium_compile_rel', |
790 'win_chromium_dbg', | 790 'win_chromium_dbg', |
791 'win_chromium_rel', | 791 'win_chromium_rel', |
792 'win_chromium_rel', | 792 'win_chromium_rel', |
793 'win_chromium_x64_dbg', | 793 'win_chromium_x64_dbg', |
794 'win_chromium_x64_rel', | 794 'win_chromium_x64_rel', |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 ['char* host = "https://www.aol.com"; // google.com']) | 1086 ['char* host = "https://www.aol.com"; // google.com']) |
1087 ] | 1087 ] |
1088 | 1088 |
1089 warnings = PRESUBMIT._CheckHardcodedGoogleHostsInLowerLayers( | 1089 warnings = PRESUBMIT._CheckHardcodedGoogleHostsInLowerLayers( |
1090 input_api, MockOutputApi()) | 1090 input_api, MockOutputApi()) |
1091 self.assertEqual(0, len(warnings)) | 1091 self.assertEqual(0, len(warnings)) |
1092 | 1092 |
1093 | 1093 |
1094 if __name__ == '__main__': | 1094 if __name__ == '__main__': |
1095 unittest.main() | 1095 unittest.main() |
OLD | NEW |