summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT_test_mocks.py
diff options
context:
space:
mode:
authorgayane <gayane@chromium.org>2015-02-24 06:28:30 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-24 14:29:00 +0000
commit940df072ba1d09a1095d3c67bb5d06d6b1a4ba02 (patch)
treec9e3d600cc3f977f36bb88a589b07b7a474059f9 /PRESUBMIT_test_mocks.py
parent86c9a9b5470c3c1292fc7a8e7e276045ab0f512c (diff)
downloadchromium_src-940df072ba1d09a1095d3c67bb5d06d6b1a4ba02.zip
chromium_src-940df072ba1d09a1095d3c67bb5d06d6b1a4ba02.tar.gz
chromium_src-940df072ba1d09a1095d3c67bb5d06d6b1a4ba02.tar.bz2
Presubmit for chrome/browser/resources matches multiline metric type.
Also added a testcase for it and a nice print of errors. BUG=443026 Review URL: https://codereview.chromium.org/809053003 Cr-Commit-Position: refs/heads/master@{#317794}
Diffstat (limited to 'PRESUBMIT_test_mocks.py')
-rw-r--r--PRESUBMIT_test_mocks.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/PRESUBMIT_test_mocks.py b/PRESUBMIT_test_mocks.py
index 5caa156..03d9232 100644
--- a/PRESUBMIT_test_mocks.py
+++ b/PRESUBMIT_test_mocks.py
@@ -58,6 +58,9 @@ class MockOutputApi(object):
self.items = items
self.long_text = long_text
+ def __repr__(self):
+ return self.message
+
class PresubmitError(PresubmitResult):
def __init__(self, message, items, long_text=''):
MockOutputApi.PresubmitResult.__init__(self, message, items, long_text)