Lines Matching refs:gtest
39 code, assuming Google Test is in the GMOCK_ROOT_DIR/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
73 # We need to call into gtest/scripts/fuse_gtest_files.py.
74 sys.path.append(os.path.join(DEFAULT_GMOCK_ROOT_DIR, 'gtest/scripts'))
76 gtest = fuse_gtest_files
86 GTEST_H_OUTPUT = 'gtest/gtest.h'
88 GMOCK_GTEST_ALL_CC_OUTPUT = 'gmock-gtest-all.cc'
94 return os.path.join(gmock_root, 'gtest')
103 gtest.ValidateGTestRootDir(GetGTestRootDir(gmock_root))
104 gtest.VerifyFileExists(gmock_root, GMOCK_H_SEED)
105 gtest.VerifyFileExists(gmock_root, GMOCK_ALL_CC_SEED)
114 gtest.VerifyOutputFile(output_dir, gtest.GTEST_H_OUTPUT)
115 gtest.VerifyOutputFile(output_dir, GMOCK_H_OUTPUT)
116 gtest.VerifyOutputFile(output_dir, GMOCK_GTEST_ALL_CC_OUTPUT)
141 m = gtest.INCLUDE_GTEST_FILE_REGEX.match(line)
143 # It's '#include "gtest/foo.h"'. We translate it to
144 # "gtest/gtest.h", regardless of what foo is, since all
145 # gtest headers are fused into gtest/gtest.h.
147 # There is no need to #include gtest.h twice.
148 if not gtest.GTEST_H_SEED in processed_files:
149 processed_files.add(gtest.GTEST_H_SEED)
150 output_file.write('#include "%s"\n' % (gtest.GTEST_H_OUTPUT,))
186 m = gtest.INCLUDE_GTEST_FILE_REGEX.match(line)
188 # It's '#include "gtest/..."'.
189 # There is no need to #include gtest.h as it has been
190 # #included by gtest-all.cc.
193 m = gtest.INCLUDE_SRC_FILE_REGEX.match(line)
205 """Scans folder gmock_root to generate gmock-gtest-all.cc in output_dir."""
208 # First, fuse gtest-all.cc into gmock-gtest-all.cc.
209 gtest.FuseGTestAllCcToFile(GetGTestRootDir(gmock_root), output_file)
210 # Next, append fused gmock-all.cc to gmock-gtest-all.cc.
216 """Fuses gtest.h, gmock.h, and gmock-gtest-all.h."""
221 gtest.FuseGTestH(GetGTestRootDir(gmock_root), output_dir)