Fixing path to the protobuf_utils.h file.

This path is wrong and it generates a bad error message because the only
file that can use google::protobuf is now under rtc_base and not under
base.

BUG=None
NOTRY=True

Review-Url: https://codereview.webrtc.org/3010293002
Cr-Commit-Position: refs/heads/master@{#19750}
This commit is contained in:
mbonadei 2017-09-08 08:01:53 -07:00 committed by Commit Bot
parent 6e6289dc42
commit 01410dcc99

View file

@ -491,7 +491,7 @@ def _CheckUsageOfGoogleProtobufNamespace(input_api, output_api):
"""Checks that the namespace google::protobuf has not been used.""" """Checks that the namespace google::protobuf has not been used."""
files = [] files = []
pattern = input_api.re.compile(r'google::protobuf') pattern = input_api.re.compile(r'google::protobuf')
proto_utils_path = os.path.join('webrtc', 'base', 'protobuf_utils.h') proto_utils_path = os.path.join('webrtc', 'rtc_base', 'protobuf_utils.h')
for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile): for f in input_api.AffectedSourceFiles(input_api.FilterSourceFile):
if f.LocalPath() in [proto_utils_path, 'PRESUBMIT.py']: if f.LocalPath() in [proto_utils_path, 'PRESUBMIT.py']:
continue continue