From 044ef4d90e15d4918182f1a7eb2fd89d195e36c1 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Fri, 23 Sep 2011 03:37:52 +0000 Subject: 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 --- PRESUBMIT.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.1