Lines Matching refs:command_line
170 CommandLine command_line(CommandLine::NO_PROGRAM);
171 command_line.AppendSwitch("foo");
173 EXPECT_TRUE(command_line.HasSwitch("foo"));
174 EXPECT_FALSE(command_line.HasSwitch(kSwitch1));
176 ConvertFlagsToSwitches(&prefs_, &command_line);
178 EXPECT_TRUE(command_line.HasSwitch("foo"));
179 EXPECT_TRUE(command_line.HasSwitch(kSwitch1));
202 CommandLine command_line(CommandLine::NO_PROGRAM);
203 command_line.AppendSwitch("foo");
204 ConvertFlagsToSwitches(&prefs_, &command_line);
217 CommandLine command_line(CommandLine::NO_PROGRAM);
218 EXPECT_FALSE(command_line.HasSwitch(kSwitch1));
219 EXPECT_FALSE(command_line.HasSwitch(kSwitch3));
223 ConvertFlagsToSwitches(&prefs_, &command_line);
224 EXPECT_TRUE(command_line.HasSwitch(kSwitch1));
225 EXPECT_FALSE(command_line.HasSwitch(kSwitch3));
239 CommandLine command_line(CommandLine::NO_PROGRAM);
240 EXPECT_FALSE(command_line.HasSwitch(kSwitch1));
241 EXPECT_FALSE(command_line.HasSwitch(kSwitch2));
244 ConvertFlagsToSwitches(&prefs_, &command_line);
245 EXPECT_TRUE(command_line.HasSwitch(kSwitch1));
247 command_line.GetSwitchValueASCII(kSwitch1));
248 EXPECT_TRUE(command_line.HasSwitch(kSwitch2));
250 command_line.GetSwitchValueASCII(kSwitch2));
258 command_line.command_line_string().find(
262 command_line.command_line_string().find(switch1_with_equals));
271 command_line.command_line_string().find(
275 command_line.command_line_string().find(switch2_with_equals));
289 CommandLine command_line(CommandLine::NO_PROGRAM);
290 ConvertFlagsToSwitches(&prefs_, &command_line);
291 EXPECT_FALSE(command_line.HasSwitch(kMultiSwitch1));
292 EXPECT_FALSE(command_line.HasSwitch(kMultiSwitch2));
300 CommandLine command_line(CommandLine::NO_PROGRAM);
301 ConvertFlagsToSwitches(&prefs_, &command_line);
302 EXPECT_FALSE(command_line.HasSwitch(kMultiSwitch1));
303 EXPECT_TRUE(command_line.HasSwitch(kMultiSwitch2));
305 command_line.GetSwitchValueASCII(kMultiSwitch2));
313 CommandLine command_line(CommandLine::NO_PROGRAM);
314 ConvertFlagsToSwitches(&prefs_, &command_line);
315 EXPECT_FALSE(command_line.HasSwitch(kMultiSwitch1));
316 EXPECT_FALSE(command_line.HasSwitch(kMultiSwitch2));