summaryrefslogtreecommitdiffstats
path: root/PRESUBMIT.py
diff options
context:
space:
mode:
Diffstat (limited to 'PRESUBMIT.py')
-rw-r--r--PRESUBMIT.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 6cb1586..06c92ef 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -63,7 +63,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'.*[/\\](test_|mock_).+%s' % source_extensions,
r'.+_test_(support|base)%s' % source_extensions,
r'.+_(api|browser|perf|unit|ui)?test%s' % source_extensions,
r'.+profile_sync_service_harness%s' % source_extensions,