|
@@ -1026,6 +1026,17 @@ class InputApiUnittest(PresubmitTestsBase):
|
|
def f(x):
|
|
def f(x):
|
|
return presubmit.AffectedFile(x, 'M', self.fake_root_dir)
|
|
return presubmit.AffectedFile(x, 'M', self.fake_root_dir)
|
|
files = [
|
|
files = [
|
|
|
|
+ (
|
|
|
|
+ [
|
|
|
|
+ # To be tested.
|
|
|
|
+ f('testing_support/google_appengine/b'),
|
|
|
|
+ f('testing_support/not_google_appengine/foo.cc'),
|
|
|
|
+ ],
|
|
|
|
+ [
|
|
|
|
+ # Expected.
|
|
|
|
+ 'testing_support/not_google_appengine/foo.cc',
|
|
|
|
+ ],
|
|
|
|
+ ),
|
|
(
|
|
(
|
|
[
|
|
[
|
|
# To be tested.
|
|
# To be tested.
|
|
@@ -1089,7 +1100,7 @@ class InputApiUnittest(PresubmitTestsBase):
|
|
self.mox.ReplayAll()
|
|
self.mox.ReplayAll()
|
|
|
|
|
|
self.assertEqual(len(input_api.DEFAULT_WHITE_LIST), 22)
|
|
self.assertEqual(len(input_api.DEFAULT_WHITE_LIST), 22)
|
|
- self.assertEqual(len(input_api.DEFAULT_BLACK_LIST), 11)
|
|
|
|
|
|
+ self.assertEqual(len(input_api.DEFAULT_BLACK_LIST), 12)
|
|
for item in files:
|
|
for item in files:
|
|
results = filter(input_api.FilterSourceFile, item[0])
|
|
results = filter(input_api.FilterSourceFile, item[0])
|
|
for i in range(len(results)):
|
|
for i in range(len(results)):
|