| Index: PRESUBMIT.py
|
| diff --git a/PRESUBMIT.py b/PRESUBMIT.py
|
| index e9cd21303bb70414b7292d61367980bf5fec69db..271f938b8979eebcb3c123acbba32c46a6fb7a95 100644
|
| --- a/PRESUBMIT.py
|
| +++ b/PRESUBMIT.py
|
| @@ -278,9 +278,9 @@ def _CheckNoProductionCodeUsingTestOnlyFunctions(input_api, output_api):
|
| # calls to such functions without a proper C++ parser.
|
| file_inclusion_pattern = r'.+%s' % _IMPLEMENTATION_EXTENSIONS
|
|
|
| - base_function_pattern = r'ForTest(ing)?|for_test(ing)?'
|
| + base_function_pattern = r'[ :]test::[^\s]+|ForTest(ing)?|for_test(ing)?'
|
| inclusion_pattern = input_api.re.compile(r'(%s)\s*\(' % base_function_pattern)
|
| - comment_pattern = input_api.re.compile(r'//.*%s' % base_function_pattern)
|
| + comment_pattern = input_api.re.compile(r'//.*(%s)' % base_function_pattern)
|
| exclusion_pattern = input_api.re.compile(
|
| r'::[A-Za-z0-9_]+(%s)|(%s)[^;]+\{' % (
|
| base_function_pattern, base_function_pattern))
|
|
|