tests/ceftests/command_line_unittest.cc
// Test that any prefixes included with the switches are ignored.
Test that any prefixes included with the switches are ignored.
Test that any prefixes included with the switches are ignored .
TEST(CommandLineTest, IgnorePrefixes) {
  CefRefPtr<CefCommandLine> command_line = CefCommandLine::CreateCommandLine();
  EXPECT_TRUE(command_line.get() != nullptr);
  command_line->SetProgram("test.exe");
  command_line->AppendSwitch("-switch1");
  command_line->AppendSwitchWithValue("--switch2", "VAL2");
  command_line->AppendSwitchWithValue("-switch3", "val3");
  command_line->AppendSwitchWithValue("-switch4", "val 4");
  const char arg1[] = "-arg1";
  const char arg2[] = "--arg 2";
  command_line->AppendArgument(arg1);
  command_line->AppendArgument(arg2);
  VerifyCommandLine(command_line, arg1, arg2);
}
TEST ( CommandLineTest , IgnorePrefixes ) { CefRefPtr < CefCommandLine > command_line = CefCommandLine :: CreateCommandLine ( ) ; EXPECT_TRUE ( command_line . get ( ) != nullptr ) ; command_line -> SetProgram ( " " ) ; command_line -> AppendSwitch ( " " ) ; command_line -> AppendSwitchWithValue ( " " , " " ) ; command_line -> AppendSwitchWithValue ( " " , " " ) ; command_line -> AppendSwitchWithValue ( " " , " " ) ; const char arg1 [ ] = " " ; const char arg2 [ ] = " " ; command_line -> AppendArgument ( arg1 ) ; command_line -> AppendArgument ( arg2 ) ; VerifyCommandLine ( command_line , arg1 , arg2 ) ; }
Test that any prefixes included with the switches are ignored.
Test that any prefixes included with the switches are ignored .
// Prefixes will not be removed from arguments.