diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-26 19:40:21 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-26 19:40:21 +0000 |
commit | 44e376e620e667040ebb543258a7ae79d936572e (patch) | |
tree | 1a2776311bf1e17945e6179b466b00b5ec829af0 /PRESUBMIT.py | |
parent | b7a3c15d10831c1cae1bcec8065f4ac2215096df (diff) | |
download | chromium_src-44e376e620e667040ebb543258a7ae79d936572e.zip chromium_src-44e376e620e667040ebb543258a7ae79d936572e.tar.gz chromium_src-44e376e620e667040ebb543258a7ae79d936572e.tar.bz2 |
Add fake_ as a prefix (like test_ and mock_) that the ForTest presubmit ignores.
TBR=darin@chromium.org
BUG=none
Review URL: https://chromiumcodereview.appspot.com/11271004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164379 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r-- | PRESUBMIT.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index c671419..a401473 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -194,7 +194,7 @@ def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api): source_extensions = r'\.(cc|cpp|cxx|mm)$' file_inclusion_pattern = r'.+%s' % source_extensions file_exclusion_patterns = ( - r'.*[/\\](test_|mock_).+%s' % source_extensions, + r'.*[/\\](fake_|test_|mock_).+%s' % source_extensions, r'.+_test_(base|support|util)%s' % source_extensions, r'.+_(api|browser|perf|unit|ui)?test%s%s' % (platform_specifiers, source_extensions), |