Also blacklist functions ending in ForTests for production code
[email protected]
BUG=none
Review URL: https://codereview.chromium.org/1257863003
Cr-Commit-Position: refs/heads/master@{#340443}
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index a888b11..520642ea 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -302,7 +302,7 @@
# calls to such functions without a proper C++ parser.
file_inclusion_pattern = r'.+%s' % _IMPLEMENTATION_EXTENSIONS
- base_function_pattern = r'[ :]test::[^\s]+|ForTest(ing)?|for_test(ing)?'
+ base_function_pattern = r'[ :]test::[^\s]+|ForTest(s|ing)?|for_test(s|ing)?'
inclusion_pattern = input_api.re.compile(r'(%s)\s*\(' % base_function_pattern)
comment_pattern = input_api.re.compile(r'//.*(%s)' % base_function_pattern)
exclusion_pattern = input_api.re.compile(