Commit df09e1b4 authored by joi@chromium.org's avatar joi@chromium.org

Fix false positive that occurred because _test.cc files were not

matched by the whitelist regexp.

BUG=none
TEST=none

Review URL: http://codereview.chromium.org/7980032

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102159 0039d316-1c4b-4281-b951-d872f2087c98
parent befc3864
...@@ -50,8 +50,7 @@ def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api): ...@@ -50,8 +50,7 @@ def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api):
file_inclusion_pattern = r'.+%s' % source_extensions file_inclusion_pattern = r'.+%s' % source_extensions
file_exclusion_pattern = ( file_exclusion_pattern = (
r'.+(_test_support|profile_sync_service_harness|' r'.+(_test_support|profile_sync_service_harness|'
r'_(unit|browser|ui|perf)test)%s' % r'_(api|browser|perf|unit|ui)?test)%s' % source_extensions)
source_extensions)
path_exclusion_pattern = r'.*[/\\](test|tool(s)?)[/\\].*' path_exclusion_pattern = r'.*[/\\](test|tool(s)?)[/\\].*'
base_function_pattern = r'ForTest(ing)?|for_test(ing)?' base_function_pattern = r'ForTest(ing)?|for_test(ing)?'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment