• Home
  • Raw
  • Download

Lines Matching refs:CommandLine

23 static const CommandLine::StringType kTrickyQuoted =
27 static const CommandLine::StringType kTricky =
31 const CommandLine::CharType* argv[] = { in TEST()
50 CommandLine cl(arraysize(argv), argv); in TEST()
84 const CommandLine::StringVector& args = cl.GetArgs(); in TEST()
87 std::vector<CommandLine::StringType>::const_iterator iter = args.begin(); in TEST()
109 CommandLine cl = CommandLine::FromString( in TEST()
148 const CommandLine::StringVector& args = cl.GetArgs(); in TEST()
151 std::vector<CommandLine::StringType>::const_iterator iter = args.begin(); in TEST()
165 CommandLine cl_duplicate = CommandLine::FromString(cl.GetCommandLineString()); in TEST()
173 CommandLine cl_from_string = CommandLine::FromString(L""); in TEST()
179 CommandLine cl_from_argv(0, NULL); in TEST()
198 CommandLine cl(CommandLine::NO_PROGRAM); in TEST()
206 CommandLine::StringType expected_first_arg(UTF8ToUTF16(kFirstArgName)); in TEST()
207 CommandLine::StringType expected_second_arg(UTF8ToUTF16(kSecondArgName)); in TEST()
208 CommandLine::StringType expected_third_arg(UTF8ToUTF16(kThirdArgName)); in TEST()
209 CommandLine::StringType expected_fourth_arg(UTF8ToUTF16(kFourthArgName)); in TEST()
210 CommandLine::StringType expected_fifth_arg(UTF8ToUTF16(kFifthArgName)); in TEST()
212 CommandLine::StringType expected_first_arg(kFirstArgName); in TEST()
213 CommandLine::StringType expected_second_arg(kSecondArgName); in TEST()
214 CommandLine::StringType expected_third_arg(kThirdArgName); in TEST()
215 CommandLine::StringType expected_fourth_arg(kFourthArgName); in TEST()
216 CommandLine::StringType expected_fifth_arg(kFifthArgName); in TEST()
225 CommandLine::StringType expected_str; in TEST()
247 CommandLine::StringType expected_str_no_quote_placeholders(expected_str); in TEST()
252 CommandLine::StringType expected_str_quote_placeholders(expected_str); in TEST()
271 CommandLine::StringType value5 = kTricky; in TEST()
273 CommandLine cl(FilePath(FILE_PATH_LITERAL("Program"))); in TEST()
307 const CommandLine::CharType* raw_argv[] = { FILE_PATH_LITERAL("prog"), in TEST()
310 CommandLine cl(arraysize(raw_argv), raw_argv); in TEST()
319 CommandLine::StringVector cl_argv = cl.argv(); in TEST()
332 CommandLine cl1(FilePath(FILE_PATH_LITERAL("Program"))); in TEST()
336 CommandLine cl2(CommandLine::NO_PROGRAM); in TEST()
341 CommandLine c1(FilePath(FILE_PATH_LITERAL("Program1"))); in TEST()
343 CommandLine c2(FilePath(FILE_PATH_LITERAL("Program2"))); in TEST()
359 CommandLine cl_program(kProgram); in TEST()
366 CommandLine cl_program_path(kProgramPath); in TEST()
370 CommandLine::StringType cmd_string(cl_program_path.GetCommandLineString()); in TEST()
374 CommandLine cl_quote_placeholder(FilePath(L"%1")); in TEST()
385 CommandLine::Init(0, NULL); in TEST()
386 CommandLine* initial = CommandLine::ForCurrentProcess(); in TEST()
387 EXPECT_FALSE(CommandLine::Init(0, NULL)); in TEST()
388 CommandLine* current = CommandLine::ForCurrentProcess(); in TEST()
394 std::unique_ptr<CommandLine> initial( in TEST()
395 new CommandLine(CommandLine::NO_PROGRAM)); in TEST()
399 CommandLine copy_constructed(*initial); in TEST()
400 CommandLine assigned = *initial; in TEST()
401 CommandLine::SwitchMap switch_map = initial->GetSwitches(); in TEST()
410 CommandLine cl(FilePath(FILE_PATH_LITERAL("Program"))); in TEST()
425 CommandLine cl(FilePath(FILE_PATH_LITERAL("Program"))); in TEST()