summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-23 03:37:52 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-23 03:37:52 +0000
commit044ef4d90e15d4918182f1a7eb2fd89d195e36c1 (patch)
tree1a76263b18fd244a2896011a4f1ce8f144bfb03a /PRESUBMIT.py
parent1027173b8068c0b31786bedbc9132c00ad34b434 (diff)
downloadchromium_src-044ef4d90e15d4918182f1a7eb2fd89d195e36c1.zip
chromium_src-044ef4d90e15d4918182f1a7eb2fd89d195e36c1.tar.gz
chromium_src-044ef4d90e15d4918182f1a7eb2fd89d195e36c1.tar.bz2
presubmit - don't check test functions for wstring
BUG=none TEST=none Review URL: http://codereview.chromium.org/7969020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102438 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 1fbdf23..9b86bad 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -115,7 +115,8 @@ def _CheckNoNewWStrings(input_api, output_api):
errors = []
for f in input_api.AffectedFiles():
for line_num, line in f.ChangedContents():
- if not f.LocalPath().endswith(('.cc', '.h')):
+ if (not f.LocalPath().endswith(('.cc', '.h')) or
+ f.LocalPath().endswith('test.cc')):
continue
if 'wstring' in line: