| 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 | 414 |
| 415 | 415 |
| 416 class CheckAddedDepsHaveTetsApprovalsTest(unittest.TestCase): | 416 class CheckAddedDepsHaveTetsApprovalsTest(unittest.TestCase): |
| 417 def testFilesToCheckForIncomingDeps(self): | 417 def testFilesToCheckForIncomingDeps(self): |
| 418 changed_lines = [ | 418 changed_lines = [ |
| 419 '"+breakpad",', | 419 '"+breakpad",', |
| 420 '"+chrome/installer",', | 420 '"+chrome/installer",', |
| 421 '"+chrome/plugin/chrome_content_plugin_client.h",', | 421 '"+chrome/plugin/chrome_content_plugin_client.h",', |
| 422 '"+chrome/utility/chrome_content_utility_client.h",', | 422 '"+chrome/utility/chrome_content_utility_client.h",', |
| 423 '"+chromeos/chromeos_paths.h",', | 423 '"+chromeos/chromeos_paths.h",', |
| 424 '"+components/breakpad",', | 424 '"+components/crash",', |
| 425 '"+components/nacl/common",', | 425 '"+components/nacl/common",', |
| 426 '"+content/public/browser/render_process_host.h",', | 426 '"+content/public/browser/render_process_host.h",', |
| 427 '"+jni/fooblat.h",', | 427 '"+jni/fooblat.h",', |
| 428 '"+grit", # For generated headers', | 428 '"+grit", # For generated headers', |
| 429 '"+grit/generated_resources.h",', | 429 '"+grit/generated_resources.h",', |
| 430 '"+grit/",', | 430 '"+grit/",', |
| 431 '"+policy", # For generated headers and source', | 431 '"+policy", # For generated headers and source', |
| 432 '"+sandbox",', | 432 '"+sandbox",', |
| 433 '"+tools/memory_watcher",', | 433 '"+tools/memory_watcher",', |
| 434 '"+third_party/lss/linux_syscall_support.h",', | 434 '"+third_party/lss/linux_syscall_support.h",', |
| (...skipping 321 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 |