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

Unified Diff: PRESUBMIT_test_mocks.py

Issue 2296783002: Adds new logging type SYSLOG which logs to the system log. (Closed)
Patch Set: Copy/paste error. Created 4 years, 3 months 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
« PRESUBMIT.py ('K') | « PRESUBMIT_test.py ('k') | base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT_test_mocks.py
diff --git a/PRESUBMIT_test_mocks.py b/PRESUBMIT_test_mocks.py
index 109b782c887821a60ce79cb91498643c58356c0e..772f405725be0f575c193ad0ecac46d93d973d06 100644
--- a/PRESUBMIT_test_mocks.py
+++ b/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):
« PRESUBMIT.py ('K') | « PRESUBMIT_test.py ('k') | base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698