Lines Matching refs:ErrorMessage
24 std::string ErrorMessage; in expectFailure() local
26 ErrorMessage)) in expectFailure()
50 std::string &ErrorMessage) { in getAllFiles() argument
52 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage)); in getAllFiles()
54 ADD_FAILURE() << ErrorMessage; in getAllFiles()
61 std::string &ErrorMessage) { in getAllCompileCommands() argument
63 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage)); in getAllCompileCommands()
65 ADD_FAILURE() << ErrorMessage; in getAllCompileCommands()
72 std::string ErrorMessage; in TEST() local
74 getAllFiles("[]", ErrorMessage)) << ErrorMessage; in TEST()
89 ErrorMessage)) << ErrorMessage; in TEST()
93 std::string ErrorMessage; in TEST() local
95 getAllCompileCommands("[]", ErrorMessage).size()) << ErrorMessage; in TEST()
111 ErrorMessage); in TEST()
112 EXPECT_EQ(2U, Commands.size()) << ErrorMessage; in TEST()
113 EXPECT_EQ(Directory1, Commands[0].Directory) << ErrorMessage; in TEST()
114 EXPECT_EQ(FileName1, Commands[0].Filename) << ErrorMessage; in TEST()
116 EXPECT_EQ(Command1, Commands[0].CommandLine[0]) << ErrorMessage; in TEST()
117 EXPECT_EQ(Directory2, Commands[1].Directory) << ErrorMessage; in TEST()
118 EXPECT_EQ(FileName2, Commands[1].Filename) << ErrorMessage; in TEST()
120 EXPECT_EQ(Command2, Commands[1].CommandLine[0]) << ErrorMessage; in TEST()
130 ErrorMessage); in TEST()
131 EXPECT_EQ(2U, Commands.size()) << ErrorMessage; in TEST()
132 EXPECT_EQ(Directory2, Commands[0].Directory) << ErrorMessage; in TEST()
133 EXPECT_EQ(FileName2, Commands[0].Filename) << ErrorMessage; in TEST()
135 EXPECT_EQ(Command2, Commands[0].CommandLine[0]) << ErrorMessage; in TEST()
136 EXPECT_EQ(Directory1, Commands[1].Directory) << ErrorMessage; in TEST()
137 EXPECT_EQ(FileName1, Commands[1].Filename) << ErrorMessage; in TEST()
139 EXPECT_EQ(Command1, Commands[1].CommandLine[0]) << ErrorMessage; in TEST()
144 std::string &ErrorMessage) { in findCompileArgsInJsonDatabase() argument
146 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage)); in findCompileArgsInJsonDatabase()
162 std::string ErrorMessage; in TEST() local
169 ErrorMessage); in TEST()
170 EXPECT_EQ(Directory, FoundCommand.Directory) << ErrorMessage; in TEST()
171 EXPECT_EQ(1u, FoundCommand.CommandLine.size()) << ErrorMessage; in TEST()
172 EXPECT_EQ(Arguments, FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
252 std::string ErrorMessage; in TEST() local
254 "a-file.cpp", "", ErrorMessage); in TEST()
255 EXPECT_TRUE(NotFound.CommandLine.empty()) << ErrorMessage; in TEST()
256 EXPECT_TRUE(NotFound.Directory.empty()) << ErrorMessage; in TEST()
263 std::string ErrorMessage; in TEST() local
269 ErrorMessage); in TEST()
270 EXPECT_EQ(Directory, FoundCommand.Directory) << ErrorMessage; in TEST()
271 ASSERT_EQ(4u, FoundCommand.CommandLine.size()) << ErrorMessage; in TEST()
273 FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
274 EXPECT_EQ("and", FoundCommand.CommandLine[1]) << ErrorMessage; in TEST()
275 EXPECT_EQ("some", FoundCommand.CommandLine[2]) << ErrorMessage; in TEST()
276 EXPECT_EQ("arguments", FoundCommand.CommandLine[3]) << ErrorMessage; in TEST()
283 ErrorMessage); in TEST()
284 EXPECT_TRUE(NotFound.Directory.empty()) << ErrorMessage; in TEST()
285 EXPECT_TRUE(NotFound.CommandLine.empty()) << ErrorMessage; in TEST()
292 std::string ErrorMessage; in TEST() local
298 ErrorMessage); in TEST()
301 FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
302 EXPECT_EQ("and an argument", FoundCommand.CommandLine[1]) << ErrorMessage; in TEST()
309 std::string ErrorMessage; in TEST() local
315 ErrorMessage); in TEST()
316 EXPECT_EQ(Directory, FoundCommand.Directory) << ErrorMessage; in TEST()
332 std::string ErrorMessage; in TEST() local
334 "//net/directory4/file4", JsonDatabase, ErrorMessage); in TEST()
335 EXPECT_EQ("//net/directory4", FoundCommand.Directory) << ErrorMessage; in TEST()
336 ASSERT_EQ(1u, FoundCommand.CommandLine.size()) << ErrorMessage; in TEST()
337 EXPECT_EQ("command4", FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
344 std::string ErrorMessage; in unescapeJsonCommandLine() local
346 "//net/root/test", JsonDatabase, ErrorMessage); in unescapeJsonCommandLine()
347 EXPECT_TRUE(ErrorMessage.empty()) << ErrorMessage; in unescapeJsonCommandLine()