summaryrefslogtreecommitdiff
path: root/chromium/PRESUBMIT_test_mocks.py
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-04 14:17:57 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-05 10:05:06 +0000
commit39d357e3248f80abea0159765ff39554affb40db (patch)
treeaba0e6bfb76de0244bba0f5fdbd64b830dd6e621 /chromium/PRESUBMIT_test_mocks.py
parent87778abf5a1f89266f37d1321b92a21851d8244d (diff)
downloadqtwebengine-chromium-39d357e3248f80abea0159765ff39554affb40db.tar.gz
BASELINE: Update Chromium to 55.0.2883.105
And updates ninja to 1.7.2 Change-Id: I20d43c737f82764d857ada9a55586901b18b9243 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/PRESUBMIT_test_mocks.py')
-rw-r--r--chromium/PRESUBMIT_test_mocks.py5
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):