reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lldb/unittests/Utility/ArgsTest.cpp
  191   args.AppendArguments(argv);
  192   ASSERT_EQ(2u, args.GetArgumentCount());
  193   EXPECT_STREQ("1", args.GetArgumentVector()[0]);
  194   EXPECT_STREQ("2", args.GetArgumentVector()[1]);
  195   EXPECT_EQ(nullptr, args.GetArgumentVector()[2]);
  196   EXPECT_STREQ("1", args.GetArgumentAtIndex(0));
  197   EXPECT_STREQ("2", args.GetArgumentAtIndex(1));
  199   args.AppendArguments(argv2);
  200   ASSERT_EQ(4u, args.GetArgumentCount());
  201   EXPECT_STREQ("1", args.GetArgumentVector()[0]);
  202   EXPECT_STREQ("2", args.GetArgumentVector()[1]);
  203   EXPECT_STREQ("3", args.GetArgumentVector()[2]);
  204   EXPECT_STREQ("4", args.GetArgumentVector()[3]);
  205   EXPECT_EQ(nullptr, args.GetArgumentVector()[4]);
  206   EXPECT_STREQ("1", args.GetArgumentAtIndex(0));
  207   EXPECT_STREQ("2", args.GetArgumentAtIndex(1));
  208   EXPECT_STREQ("3", args.GetArgumentAtIndex(2));
  209   EXPECT_STREQ("4", args.GetArgumentAtIndex(3));