summaryrefslogtreecommitdiffstats
path: root/googlemock
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2021-02-02 08:00:10 -0800
committerDino Radaković <dinor@google.com>2021-02-05 10:40:23 -0800
commitf4e7727cf4b9fc4f4a821490b86047ac44540e7c (patch)
treed717fab1f148d7c83454d3f3290aa0409ad958e9 /googlemock
parent8c269618a4f224b4407d05ca85274d4c95e36841 (diff)
downloadgoogletest-f4e7727cf4b9fc4f4a821490b86047ac44540e7c.tar.gz
googletest-f4e7727cf4b9fc4f4a821490b86047ac44540e7c.zip
Googletest export
Fix includes in fuse_gmock_files.py PiperOrigin-RevId: 355166403
Diffstat (limited to 'googlemock')
-rwxr-xr-xgooglemock/scripts/fuse_gmock_files.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/googlemock/scripts/fuse_gmock_files.py b/googlemock/scripts/fuse_gmock_files.py
index c3ba3b83..9aee85a0 100755
--- a/googlemock/scripts/fuse_gmock_files.py
+++ b/googlemock/scripts/fuse_gmock_files.py
@@ -151,8 +151,7 @@ def FuseGMockH(gmock_root, output_dir):
else:
m = gtest.INCLUDE_GTEST_FILE_REGEX.match(line)
if m:
- # '#include "third_party/googletest/googletest/
- # include/gtest/foo.h"'.
+ # '#include "gtest/foo.h"'
# We translate it to "gtest/gtest.h", regardless of what foo is,
# since all gtest headers are fused into gtest/gtest.h.
@@ -188,11 +187,11 @@ def FuseGMockAllCcToFile(gmock_root, output_file):
for line in fh:
m = INCLUDE_GMOCK_FILE_REGEX.match(line)
if m:
- # '#include "gmock/foo.h"'.
+ # '#include "gmock/foo.h"'
# We treat it as '#include "gmock/gmock.h"', as all other gmock
# headers are being fused into gmock.h and cannot be
- # included directly. No need to #include
- # "third_party/googletest/googlemock/include/gmock/gmock.h"
+ # included directly. No need to
+ # #include "gmock/gmock.h"
# more than once.
if GMOCK_H_SEED not in processed_files:
@@ -201,7 +200,7 @@ def FuseGMockAllCcToFile(gmock_root, output_file):
else:
m = gtest.INCLUDE_GTEST_FILE_REGEX.match(line)
if m:
- # '#include "gtest/..."'.
+ # '#include "gtest/..."'
# There is no need to #include gtest.h as it has been
# #included by gtest-all.cc.
OpenPOWER on IntegriCloud