Lines Matching full:commandline
20 static const CommandLine::StringType kTrickyQuoted =
24 static const CommandLine::StringType kTricky =
28 const CommandLine::CharType* argv[] = {
47 CommandLine cl(arraysize(argv), argv);
80 const CommandLine::StringVector& args = cl.GetArgs();
83 std::vector<CommandLine::StringType>::const_iterator iter = args.begin();
105 CommandLine cl = CommandLine::FromString(
145 const CommandLine::StringVector& args = cl.GetArgs();
148 std::vector<CommandLine::StringType>::const_iterator iter = args.begin();
162 CommandLine cl_duplicate = CommandLine::FromString(cl.GetCommandLineString());
170 CommandLine cl_from_string = CommandLine::FromString(L"");
176 CommandLine cl_from_argv(0, NULL);
194 CommandLine cl(CommandLine::NO_PROGRAM);
201 CommandLine::StringType expected_first_arg(
203 CommandLine::StringType expected_second_arg(
205 CommandLine::StringType expected_third_arg(
207 CommandLine::StringType expected_fourth_arg(
210 CommandLine::StringType expected_first_arg(kFirstArgName);
211 CommandLine::StringType expected_second_arg(kSecondArgName);
212 CommandLine::StringType expected_third_arg(kThirdArgName);
213 CommandLine::StringType expected_fourth_arg(kFourthArgName);
222 CommandLine::StringType expected_str;
255 CommandLine::StringType value5 = kTricky;
257 CommandLine cl(FilePath(FILE_PATH_LITERAL("Program")));
287 const CommandLine::CharType* raw_argv[] = { FILE_PATH_LITERAL("prog"),
290 CommandLine cl(arraysize(raw_argv), raw_argv);
299 CommandLine::StringVector cl_argv = cl.argv();
309 // on the target CommandLine object and the switches from the source
310 // CommandLine are added to the target.
312 CommandLine cl1(FilePath(FILE_PATH_LITERAL("Program")));
316 CommandLine cl2(CommandLine::NO_PROGRAM);
321 CommandLine c1(FilePath(FILE_PATH_LITERAL("Program1")));
323 CommandLine c2(FilePath(FILE_PATH_LITERAL("Program2")));
339 CommandLine cl_program(kProgram);
346 CommandLine cl_program_path(kProgramPath);
350 CommandLine::StringType cmd_string(cl_program_path.GetCommandLineString());
355 // Calling Init multiple times should not modify the previous CommandLine.
357 CommandLine* initial = CommandLine::ForCurrentProcess();
358 EXPECT_FALSE(CommandLine::Init(0, NULL));
359 CommandLine* current = CommandLine::ForCurrentProcess();