Index: PRESUBMIT_test_mocks.py |
diff --git a/PRESUBMIT_test_mocks.py b/PRESUBMIT_test_mocks.py |
index 5230c8721073592e17f0479f20da23ac32091f3c..373b52c6d3c68643cfe0622f1a622d1098dca7f8 100644 |
--- a/PRESUBMIT_test_mocks.py |
+++ b/PRESUBMIT_test_mocks.py |
@@ -26,7 +26,7 @@ class MockInputApi(object): |
self.is_committing = False |
self.change = MockChange([]) |
- def AffectedFiles(self, file_filter=None): |
+ def AffectedFiles(self, file_filter=None, include_deletes=False): |
return self.files |
def AffectedSourceFiles(self, file_filter=None): |
@@ -92,13 +92,14 @@ class MockFile(object): |
MockInputApi for presubmit unittests. |
""" |
- def __init__(self, local_path, new_contents): |
+ def __init__(self, local_path, new_contents, action='A'): |
self._local_path = local_path |
self._new_contents = new_contents |
self._changed_contents = [(i + 1, l) for i, l in enumerate(new_contents)] |
+ self._action = action |
def Action(self): |
- return 'A' # TODO(dbeam): feel free to change if your test actually uses. |
+ return self._action |
def ChangedContents(self): |
return self._changed_contents |