tests/ceftests/command_line_unittest.cc
// Test that command line switch names are converted to lowercase ASCII.
Test that command line switch names are converted to lowercase ASCII.
Test that command line switch names are converted to lowercase ASCII .
TEST(CommandLineTest, IgnoreCase) {
  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");
  command_line->AppendArgument("arg1");
  command_line->AppendArgument("arg 2");
  VerifyCommandLine(command_line);
}
TEST ( CommandLineTest , IgnoreCase ) { 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 ( " " , " " ) ; command_line -> AppendArgument ( " " ) ; command_line -> AppendArgument ( " " ) ; VerifyCommandLine ( command_line ) ; }
Test that command line switch names are converted to lowercase ASCII.
Test that command line switch names are converted to lowercase ASCII .