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

Unified Diff: PRESUBMIT_test_mocks.py

Issue 2296783002: Adds new logging type SYSLOG which logs to the system log. (Closed)
Patch Set: Moved the SYSLOG code to a separate file. 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
« no previous file with comments | « PRESUBMIT_test.py ('k') | base/BUILD.gn » ('j') | base/syslog_logging.h » ('J')
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 373b52c6d3c68643cfe0622f1a622d1098dca7f8..0a2de9bd2d8d060a6be33c1796e859dd5bdb238a 100644
--- a/PRESUBMIT_test_mocks.py
+++ b/PRESUBMIT_test_mocks.py
@@ -21,6 +21,7 @@ class MockInputApi(object):
self.re = re
self.os_path = os.path
self.python_executable = sys.executable
+ self.platform = sys.platform
self.subprocess = subprocess
self.files = []
self.is_committing = False
@@ -121,6 +122,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):
« no previous file with comments | « PRESUBMIT_test.py ('k') | base/BUILD.gn » ('j') | base/syslog_logging.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698