Home | History | Annotate | Download | only in base

Lines Matching refs: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(UTF8ToUTF16(kFirstArgName));
202 CommandLine::StringType expected_second_arg(UTF8ToUTF16(kSecondArgName));
203 CommandLine::StringType expected_third_arg(UTF8ToUTF16(kThirdArgName));
204 CommandLine::StringType expected_fourth_arg(UTF8ToUTF16(kFourthArgName));
206 CommandLine::StringType expected_first_arg(kFirstArgName);
207 CommandLine::StringType expected_second_arg(kSecondArgName);
208 CommandLine::StringType expected_third_arg(kThirdArgName);
209 CommandLine::StringType expected_fourth_arg(kFourthArgName);
218 CommandLine::StringType expected_str;
251 CommandLine::StringType value5 = kTricky;
253 CommandLine cl(FilePath(FILE_PATH_LITERAL("Program")));
283 const CommandLine::CharType* raw_argv[] = { FILE_PATH_LITERAL("prog"),
286 CommandLine cl(arraysize(raw_argv), raw_argv);
295 CommandLine::StringVector cl_argv = cl.argv();
305 // on the target CommandLine object and the switches from the source
306 // CommandLine are added to the target.
308 CommandLine cl1(FilePath(FILE_PATH_LITERAL("Program")));
312 CommandLine cl2(CommandLine::NO_PROGRAM);
317 CommandLine c1(FilePath(FILE_PATH_LITERAL("Program1")));
319 CommandLine c2(FilePath(FILE_PATH_LITERAL("Program2")));
335 CommandLine cl_program(kProgram);
342 CommandLine cl_program_path(kProgramPath);
346 CommandLine::StringType cmd_string(cl_program_path.GetCommandLineString());
347 CommandLine::StringType program_string(cl_program_path.GetProgram().value());
354 // Calling Init multiple times should not modify the previous CommandLine.
356 CommandLine* initial = CommandLine::ForCurrentProcess();
357 EXPECT_FALSE(CommandLine::Init(0, NULL));
358 CommandLine* current = CommandLine::ForCurrentProcess();