| 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 glob | 6 import glob |
| 7 import json | 7 import json |
| 8 import os | 8 import os |
| 9 import re | 9 import re |
| 10 import subprocess | 10 import subprocess |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 '"+tools/memory_watcher",', | 433 '"+tools/memory_watcher",', |
| 434 '"+third_party/lss/linux_syscall_support.h",', | 434 '"+third_party/lss/linux_syscall_support.h",', |
| 435 ] | 435 ] |
| 436 files_to_check = PRESUBMIT._FilesToCheckForIncomingDeps(re, changed_lines) | 436 files_to_check = PRESUBMIT._FilesToCheckForIncomingDeps(re, changed_lines) |
| 437 expected = set([ | 437 expected = set([ |
| 438 'breakpad/DEPS', | 438 'breakpad/DEPS', |
| 439 'chrome/installer/DEPS', | 439 'chrome/installer/DEPS', |
| 440 'chrome/plugin/chrome_content_plugin_client.h', | 440 'chrome/plugin/chrome_content_plugin_client.h', |
| 441 'chrome/utility/chrome_content_utility_client.h', | 441 'chrome/utility/chrome_content_utility_client.h', |
| 442 'chromeos/chromeos_paths.h', | 442 'chromeos/chromeos_paths.h', |
| 443 'components/breakpad/DEPS', | 443 'components/crash/DEPS', |
| 444 'components/nacl/common/DEPS', | 444 'components/nacl/common/DEPS', |
| 445 'content/public/browser/render_process_host.h', | 445 'content/public/browser/render_process_host.h', |
| 446 'policy/DEPS', | 446 'policy/DEPS', |
| 447 'sandbox/DEPS', | 447 'sandbox/DEPS', |
| 448 'tools/memory_watcher/DEPS', | 448 'tools/memory_watcher/DEPS', |
| 449 'third_party/lss/linux_syscall_support.h', | 449 'third_party/lss/linux_syscall_support.h', |
| 450 ]) | 450 ]) |
| 451 self.assertEqual(expected, files_to_check); | 451 self.assertEqual(expected, files_to_check); |
| 452 | 452 |
| 453 | 453 |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 } | 756 } |
| 757 for master, bots in bots.iteritems(): | 757 for master, bots in bots.iteritems(): |
| 758 for bot in bots: | 758 for bot in bots: |
| 759 self.assertEqual(master, PRESUBMIT.GetTryServerMasterForBot(bot), | 759 self.assertEqual(master, PRESUBMIT.GetTryServerMasterForBot(bot), |
| 760 'bot=%s: expected %s, computed %s' % ( | 760 'bot=%s: expected %s, computed %s' % ( |
| 761 bot, master, PRESUBMIT.GetTryServerMasterForBot(bot))) | 761 bot, master, PRESUBMIT.GetTryServerMasterForBot(bot))) |
| 762 | 762 |
| 763 | 763 |
| 764 if __name__ == '__main__': | 764 if __name__ == '__main__': |
| 765 unittest.main() | 765 unittest.main() |
| OLD | NEW |