| 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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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', |
| 795 'win_drmemory', | |
| 796 'win_nacl_sdk', | 795 'win_nacl_sdk', |
| 797 'win_nacl_sdk_build', | 796 'win_nacl_sdk_build', |
| 798 'win_rel_naclmore', | 797 'win_rel_naclmore', |
| 799 ], | 798 ], |
| 800 } | 799 } |
| 801 for master, bots in bots.iteritems(): | 800 for master, bots in bots.iteritems(): |
| 802 for bot in bots: | 801 for bot in bots: |
| 803 self.assertEqual(master, PRESUBMIT.GetTryServerMasterForBot(bot), | 802 self.assertEqual(master, PRESUBMIT.GetTryServerMasterForBot(bot), |
| 804 'bot=%s: expected %s, computed %s' % ( | 803 'bot=%s: expected %s, computed %s' % ( |
| 805 bot, master, PRESUBMIT.GetTryServerMasterForBot(bot))) | 804 bot, master, PRESUBMIT.GetTryServerMasterForBot(bot))) |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 ['char* host = "https://www.aol.com"; // google.com']) | 1109 ['char* host = "https://www.aol.com"; // google.com']) |
| 1111 ] | 1110 ] |
| 1112 | 1111 |
| 1113 warnings = PRESUBMIT._CheckHardcodedGoogleHostsInLowerLayers( | 1112 warnings = PRESUBMIT._CheckHardcodedGoogleHostsInLowerLayers( |
| 1114 input_api, MockOutputApi()) | 1113 input_api, MockOutputApi()) |
| 1115 self.assertEqual(0, len(warnings)) | 1114 self.assertEqual(0, len(warnings)) |
| 1116 | 1115 |
| 1117 | 1116 |
| 1118 if __name__ == '__main__': | 1117 if __name__ == '__main__': |
| 1119 unittest.main() | 1118 unittest.main() |
| OLD | NEW |