diff options
Diffstat (limited to 'chromium/PRESUBMIT_test_mocks.py')
-rw-r--r-- | chromium/PRESUBMIT_test_mocks.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/chromium/PRESUBMIT_test_mocks.py b/chromium/PRESUBMIT_test_mocks.py index 109b782c887..772f405725b 100644 --- a/chromium/PRESUBMIT_test_mocks.py +++ b/chromium/PRESUBMIT_test_mocks.py @@ -22,6 +22,7 @@ class MockInputApi(object): self.os_path = os.path self.platform = sys.platform self.python_executable = sys.executable + self.platform = sys.platform self.subprocess = subprocess self.files = [] self.is_committing = False @@ -122,6 +123,10 @@ class MockFile(object): """os.path.basename is called on MockFile so we need a get method.""" return self._local_path[i] + def __len__(self): + """os.path.basename is called on MockFile so we need a len method.""" + return len(self._local_path) + class MockAffectedFile(MockFile): def AbsoluteLocalPath(self): |