diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-08 20:46:05 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-08 20:46:05 +0000 |
commit | a766a132a2e13aaed3c55dad896718bb7110f8d5 (patch) | |
tree | 2ef4b3d62b318c9163dd2f30056079991c7cb7fe /PRESUBMIT.py | |
parent | 0a2a0fa16a0c2c20e297ee40263289e4a407deed (diff) | |
download | chromium_src-a766a132a2e13aaed3c55dad896718bb7110f8d5.zip chromium_src-a766a132a2e13aaed3c55dad896718bb7110f8d5.tar.gz chromium_src-a766a132a2e13aaed3c55dad896718bb7110f8d5.tar.bz2 |
Fix libbase interface check.
It was triggering for things like ui/base.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7861006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100240 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r-- | PRESUBMIT.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 1f51057..7d6331e 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -22,8 +22,7 @@ def _CheckNoInterfacesInBase(input_api, output_api): pattern = input_api.re.compile(r'^\s*@interface', input_api.re.MULTILINE) files = [] for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile): - if (f.LocalPath().find('base/') != -1 and - f.LocalPath().find('base/test/') == -1 and + if (f.LocalPath().startswith('base/') and not f.LocalPath().endswith('_unittest.mm')): contents = input_api.ReadFile(f) if pattern.search(contents): |