Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Unified Diff: tests/presubmit_unittest.py

Issue 8494013: Blacklist .diff and .patch files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « presubmit_support.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/presubmit_unittest.py
diff --git a/tests/presubmit_unittest.py b/tests/presubmit_unittest.py
index 8c25038231f91f2388da6ce3adf7ede61ebbeb80..c43bc4f8a215505c09b1b7d5030a01d3027e935f 100755
--- a/tests/presubmit_unittest.py
+++ b/tests/presubmit_unittest.py
@@ -1020,6 +1020,8 @@ class InputApiUnittest(PresubmitTestsBase):
f('b.c/.git'),
f('a/.git/bleh.py'),
f('.git/bleh.py'),
+ f('bleh.diff'),
+ f('foo/bleh.patch'),
],
[
# Expected.
@@ -1031,7 +1033,7 @@ class InputApiUnittest(PresubmitTestsBase):
self.mox.ReplayAll()
self.assertEqual(len(input_api.DEFAULT_WHITE_LIST), 21)
- self.assertEqual(len(input_api.DEFAULT_BLACK_LIST), 9)
+ self.assertEqual(len(input_api.DEFAULT_BLACK_LIST), 11)
for item in files:
results = filter(input_api.FilterSourceFile, item[0])
for i in range(len(results)):
« no previous file with comments | « presubmit_support.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698