Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Unified Diff: PRESUBMIT.py

Issue 7980032: Fix false positive that occurred because _test.cc files were not (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 888e69a1d46ce5b3680f0cb154e0f63c432b41fa..1fbdf2392a2dde1f0b4e33191b2aac9744f43c83 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -50,8 +50,7 @@ def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api):
file_inclusion_pattern = r'.+%s' % source_extensions
file_exclusion_pattern = (
r'.+(_test_support|profile_sync_service_harness|'
- r'_(unit|browser|ui|perf)test)%s' %
- source_extensions)
+ 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)?'
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698