Lines Matching full:gtest
41 OUTPUT_DIR/gtest/gtest.h, OUTPUT_DIR/gmock/gmock.h, and
42 OUTPUT_DIR/gmock-gtest-all.cc. Then you can build your tests
44 with OUTPUT_DIR/gmock-gtest-all.cc. These three files contain
77 import fuse_gtest_files as gtest # pylint:disable=g-import-not-at-top namespace
88 GTEST_H_OUTPUT = 'gtest/gtest.h'
90 GMOCK_GTEST_ALL_CC_OUTPUT = 'gmock-gtest-all.cc'
108 gtest.ValidateGTestRootDir(GetGTestRootDir(gmock_root))
109 gtest.VerifyFileExists(gmock_root, GMOCK_H_SEED)
110 gtest.VerifyFileExists(gmock_root, GMOCK_ALL_CC_SEED)
122 gtest.VerifyOutputFile(output_dir, gtest.GTEST_H_OUTPUT)
123 gtest.VerifyOutputFile(output_dir, GMOCK_H_OUTPUT)
124 gtest.VerifyOutputFile(output_dir, GMOCK_GTEST_ALL_CC_OUTPUT)
152 m = gtest.INCLUDE_GTEST_FILE_REGEX.match(line)
154 # '#include "gtest/foo.h"'
155 # We translate it to "gtest/gtest.h", regardless of what foo is,
156 # since all gtest headers are fused into gtest/gtest.h.
158 # There is no need to #include gtest.h twice.
159 if gtest.GTEST_H_SEED not in processed_files:
160 processed_files.add(gtest.GTEST_H_SEED)
161 output_file.write('#include "%s"\n' % (gtest.GTEST_H_OUTPUT,))
201 m = gtest.INCLUDE_GTEST_FILE_REGEX.match(line)
203 # '#include "gtest/..."'
204 # There is no need to #include gtest.h as it has been
205 # #included by gtest-all.cc.
209 m = gtest.INCLUDE_SRC_FILE_REGEX.match(line)
221 """Scans folder gmock_root to generate gmock-gtest-all.cc in output_dir."""
225 # First, fuse gtest-all.cc into gmock-gtest-all.cc.
226 gtest.FuseGTestAllCcToFile(GetGTestRootDir(gmock_root), output_file)
227 # Next, append fused gmock-all.cc to gmock-gtest-all.cc.
232 """Fuses gtest.h, gmock.h, and gmock-gtest-all.h."""
237 gtest.FuseGTestH(GetGTestRootDir(gmock_root), output_dir)