summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--PRESUBMIT.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index e125a57..8b62bd1 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -49,8 +49,8 @@ def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api):
source_extensions = r'\.(cc|cpp|cxx|mm)$'
file_inclusion_pattern = r'.+%s' % source_extensions
file_exclusion_pattern = (
- r'.+(_test_support|profile_sync_service_harness|'
- r'_(api|browser|perf|unit|ui)?test)%s' % source_extensions)
+ r'((test_|mock_).+|.+(_test_support|profile_sync_service_harness|'
+ r'_(api|browser|perf|unit|ui)?test))%s' % source_extensions)
path_exclusion_pattern = r'.*[/\\](test|tool(s)?)[/\\].*'
base_function_pattern = r'ForTest(ing)?|for_test(ing)?'