Home | History | Annotate | Download | only in Tooling

Lines Matching refs:Result

352   std::vector<std::string> Result = unescapeJsonCommandLine("");
353 EXPECT_TRUE(Result.empty());
357 std::vector<std::string> Result = unescapeJsonCommandLine("a b c");
358 ASSERT_EQ(3ul, Result.size());
359 EXPECT_EQ("a", Result[0]);
360 EXPECT_EQ("b", Result[1]);
361 EXPECT_EQ("c", Result[2]);
365 std::vector<std::string> Result = unescapeJsonCommandLine(" a b ");
366 ASSERT_EQ(2ul, Result.size());
367 EXPECT_EQ("a", Result[0]);
368 EXPECT_EQ("b", Result[1]);
381 std::vector<std::string> Result = unescapeJsonCommandLine("\\\" a b \\\"");
382 ASSERT_EQ(1ul, Result.size());
383 EXPECT_EQ(" a b ", Result[0]);
387 std::vector<std::string> Result = unescapeJsonCommandLine(
389 ASSERT_EQ(2ul, Result.size());
390 EXPECT_EQ(" a ", Result[0]);
391 EXPECT_EQ(" b ", Result[1]);
395 std::vector<std::string> Result = unescapeJsonCommandLine(
397 ASSERT_EQ(1ul, Result.size());
398 EXPECT_TRUE(Result[0].empty()) << Result[0];
402 std::vector<std::string> Result = unescapeJsonCommandLine(
404 ASSERT_EQ(1ul, Result.size());
405 EXPECT_EQ("\"", Result[0]);
409 std::vector<std::string> Result = unescapeJsonCommandLine(
411 ASSERT_EQ(4ul, Result.size());
412 EXPECT_EQ("\"", Result[0]);
413 EXPECT_EQ("a \" b ", Result[1]);
414 EXPECT_EQ("and\\c", Result[2]);
415 EXPECT_EQ("\"", Result[3]);
452 std::vector<CompileCommand> Result =
454 ASSERT_EQ(1ul, Result.size());
459 EXPECT_EQ(".", Result[0].Directory);
460 EXPECT_EQ(FileName, Result[0].Filename);
461 EXPECT_EQ(ExpectedCommandLine, Result[0].CommandLine);
507 std::vector<CompileCommand> Result =
509 ASSERT_EQ(1ul, Result.size());
510 ASSERT_EQ(".", Result[0].Directory);
516 ASSERT_EQ(CommandLine, Result[0].CommandLine);
526 std::vector<CompileCommand> Result =
528 ASSERT_EQ(1ul, Result.size());
529 ASSERT_EQ(".", Result[0].Directory);
533 ASSERT_EQ(CommandLine, Result[0].CommandLine);
543 std::vector<CompileCommand> Result =
545 ASSERT_EQ(1ul, Result.size());
546 ASSERT_EQ(".", Result[0].Directory);
552 ASSERT_EQ(Expected, Result[0].CommandLine);
562 std::vector<CompileCommand> Result =
564 ASSERT_EQ(1ul, Result.size());
565 ASSERT_EQ(".", Result[0].Directory);
569 ASSERT_EQ(Expected, Result[0].CommandLine);