| Index: PRESUBMIT_test.py
|
| diff --git a/PRESUBMIT_test.py b/PRESUBMIT_test.py
|
| index ed7e190e98aebd1da0ece4882b577a513236f4bc..1f4a1efe7e681b1760bd3a2fff10d22108266759 100755
|
| --- a/PRESUBMIT_test.py
|
| +++ b/PRESUBMIT_test.py
|
| @@ -369,5 +369,42 @@ class InvalidOSMacroNamesTest(unittest.TestCase):
|
| self.assertEqual(0, len(errors))
|
|
|
|
|
| +class CheckAddedDepsHaveTetsApprovalsTest(unittest.TestCase):
|
| + def testDepsFilesToCheck(self):
|
| + changed_lines = [
|
| + '"+breakpad",',
|
| + '"+chrome/installer",',
|
| + '"+chrome/plugin/chrome_content_plugin_client.h",',
|
| + '"+chrome/utility/chrome_content_utility_client.h",',
|
| + '"+chromeos/chromeos_paths.h",',
|
| + '"+components/breakpad",',
|
| + '"+components/nacl/common",',
|
| + '"+content/public/browser/render_process_host.h",',
|
| + '"+grit", # For generated headers',
|
| + '"+grit/generated_resources.h",',
|
| + '"+grit/",',
|
| + '"+policy", # For generated headers and source',
|
| + '"+sandbox",',
|
| + '"+tools/memory_watcher",',
|
| + '"+third_party/lss/linux_syscall_support.h",',
|
| + ]
|
| + files_to_check = PRESUBMIT._DepsFilesToCheck(re, changed_lines)
|
| + expected = set([
|
| + 'breakpad/DEPS',
|
| + 'chrome/installer/DEPS',
|
| + 'chrome/plugin/DEPS',
|
| + 'chrome/utility/DEPS',
|
| + 'chromeos/DEPS',
|
| + 'components/breakpad/DEPS',
|
| + 'components/nacl/common/DEPS',
|
| + 'content/public/browser/DEPS',
|
| + 'policy/DEPS',
|
| + 'sandbox/DEPS',
|
| + 'tools/memory_watcher/DEPS',
|
| + 'third_party/lss/DEPS',
|
| + ])
|
| + self.assertEqual(expected, files_to_check);
|
| +
|
| +
|
| if __name__ == '__main__':
|
| unittest.main()
|
|
|