Lines Matching refs:ErrorMessage
24 std::string ErrorMessage; in expectFailure() local
26 ErrorMessage)) in expectFailure()
44 std::string &ErrorMessage) { in getAllFiles() argument
46 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage)); in getAllFiles()
48 ADD_FAILURE() << ErrorMessage; in getAllFiles()
55 std::string &ErrorMessage) { in getAllCompileCommands() argument
57 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage)); in getAllCompileCommands()
59 ADD_FAILURE() << ErrorMessage; in getAllCompileCommands()
66 std::string ErrorMessage; in TEST() local
68 getAllFiles("[]", ErrorMessage)) << ErrorMessage; in TEST()
83 ErrorMessage)) << ErrorMessage; in TEST()
87 std::string ErrorMessage; in TEST() local
89 getAllCompileCommands("[]", ErrorMessage).size()) << ErrorMessage; in TEST()
105 ErrorMessage); in TEST()
106 EXPECT_EQ(2U, Commands.size()) << ErrorMessage; in TEST()
107 EXPECT_EQ(Directory1, Commands[0].Directory) << ErrorMessage; in TEST()
109 EXPECT_EQ(Command1, Commands[0].CommandLine[0]) << ErrorMessage; in TEST()
110 EXPECT_EQ(Directory2, Commands[1].Directory) << ErrorMessage; in TEST()
112 EXPECT_EQ(Command2, Commands[1].CommandLine[0]) << ErrorMessage; in TEST()
117 std::string &ErrorMessage) { in findCompileArgsInJsonDatabase() argument
119 JSONCompilationDatabase::loadFromBuffer(JSONDatabase, ErrorMessage)); in findCompileArgsInJsonDatabase()
206 std::string ErrorMessage; in TEST() local
208 "a-file.cpp", "", ErrorMessage); in TEST()
209 EXPECT_TRUE(NotFound.CommandLine.empty()) << ErrorMessage; in TEST()
210 EXPECT_TRUE(NotFound.Directory.empty()) << ErrorMessage; in TEST()
217 std::string ErrorMessage; in TEST() local
223 ErrorMessage); in TEST()
224 EXPECT_EQ(Directory, FoundCommand.Directory) << ErrorMessage; in TEST()
225 ASSERT_EQ(4u, FoundCommand.CommandLine.size()) << ErrorMessage; in TEST()
227 FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
228 EXPECT_EQ("and", FoundCommand.CommandLine[1]) << ErrorMessage; in TEST()
229 EXPECT_EQ("some", FoundCommand.CommandLine[2]) << ErrorMessage; in TEST()
230 EXPECT_EQ("arguments", FoundCommand.CommandLine[3]) << ErrorMessage; in TEST()
237 ErrorMessage); in TEST()
238 EXPECT_TRUE(NotFound.Directory.empty()) << ErrorMessage; in TEST()
239 EXPECT_TRUE(NotFound.CommandLine.empty()) << ErrorMessage; in TEST()
246 std::string ErrorMessage; in TEST() local
252 ErrorMessage); in TEST()
255 FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
256 EXPECT_EQ("and an argument", FoundCommand.CommandLine[1]) << ErrorMessage; in TEST()
263 std::string ErrorMessage; in TEST() local
269 ErrorMessage); in TEST()
270 EXPECT_EQ(Directory, FoundCommand.Directory) << ErrorMessage; in TEST()
286 std::string ErrorMessage; in TEST() local
288 "//net/directory4/file4", JsonDatabase, ErrorMessage); in TEST()
289 EXPECT_EQ("//net/directory4", FoundCommand.Directory) << ErrorMessage; in TEST()
290 ASSERT_EQ(1u, FoundCommand.CommandLine.size()) << ErrorMessage; in TEST()
291 EXPECT_EQ("command4", FoundCommand.CommandLine[0]) << ErrorMessage; in TEST()
298 std::string ErrorMessage; in unescapeJsonCommandLine() local
300 "//net/root/test", JsonDatabase, ErrorMessage); in unescapeJsonCommandLine()
301 EXPECT_TRUE(ErrorMessage.empty()) << ErrorMessage; in unescapeJsonCommandLine()