Lines Matching refs:Result
306 std::vector<std::string> Result = unescapeJsonCommandLine("");
307 EXPECT_TRUE(Result.empty());
311 std::vector<std::string> Result = unescapeJsonCommandLine("a b c");
312 ASSERT_EQ(3ul, Result.size());
313 EXPECT_EQ("a", Result[0]);
314 EXPECT_EQ("b", Result[1]);
315 EXPECT_EQ("c", Result[2]);
319 std::vector<std::string> Result = unescapeJsonCommandLine(" a b ");
320 ASSERT_EQ(2ul, Result.size());
321 EXPECT_EQ("a", Result[0]);
322 EXPECT_EQ("b", Result[1]);
335 std::vector<std::string> Result = unescapeJsonCommandLine("\\\" a b \\\"");
336 ASSERT_EQ(1ul, Result.size());
337 EXPECT_EQ(" a b ", Result[0]);
341 std::vector<std::string> Result = unescapeJsonCommandLine(
343 ASSERT_EQ(2ul, Result.size());
344 EXPECT_EQ(" a ", Result[0]);
345 EXPECT_EQ(" b ", Result[1]);
349 std::vector<std::string> Result = unescapeJsonCommandLine(
351 ASSERT_EQ(1ul, Result.size());
352 EXPECT_TRUE(Result[0].empty()) << Result[0];
356 std::vector<std::string> Result = unescapeJsonCommandLine(
358 ASSERT_EQ(1ul, Result.size());
359 EXPECT_EQ("\"", Result[0]);
363 std::vector<std::string> Result = unescapeJsonCommandLine(
365 ASSERT_EQ(4ul, Result.size());
366 EXPECT_EQ("\"", Result[0]);
367 EXPECT_EQ("a \" b ", Result[1]);
368 EXPECT_EQ("and\\c", Result[2]);
369 EXPECT_EQ("\"", Result[3]);
405 std::vector<CompileCommand> Result =
407 ASSERT_EQ(1ul, Result.size());
412 EXPECT_EQ(".", Result[0].Directory);
413 EXPECT_EQ(ExpectedCommandLine, Result[0].CommandLine);
459 std::vector<CompileCommand> Result =
461 ASSERT_EQ(1ul, Result.size());
462 ASSERT_EQ(".", Result[0].Directory);
468 ASSERT_EQ(CommandLine, Result[0].CommandLine);
478 std::vector<CompileCommand> Result =
480 ASSERT_EQ(1ul, Result.size());
481 ASSERT_EQ(".", Result[0].Directory);
485 ASSERT_EQ(CommandLine, Result[0].CommandLine);
495 std::vector<CompileCommand> Result =
497 ASSERT_EQ(1ul, Result.size());
498 ASSERT_EQ(".", Result[0].Directory);
504 ASSERT_EQ(Expected, Result[0].CommandLine);
514 std::vector<CompileCommand> Result =
516 ASSERT_EQ(1ul, Result.size());
517 ASSERT_EQ(".", Result[0].Directory);
521 ASSERT_EQ(Expected, Result[0].CommandLine);