Lines Matching defs:experiment

192     const about_flags::Experiment& experiment = experiments[i];
193 if (experiment.type == about_flags::Experiment::SINGLE_VALUE) {
194 result.insert(experiment.command_line_switch);
195 } else if (experiment.type == about_flags::Experiment::MULTI_VALUE) {
196 for (int j = 0; j < experiment.num_choices; ++j) {
197 result.insert(experiment.choices[j].command_line_switch);
200 DCHECK_EQ(experiment.type, about_flags::Experiment::ENABLE_DISABLE_VALUE);
201 result.insert(experiment.command_line_switch);
202 result.insert(experiment.disable_command_line_switch);
218 // The experiments that are set for these tests. The 3rd experiment is not
329 const Experiment& experiment = kExperiments[3];
330 ASSERT_EQ(kFlags4, experiment.internal_name);
333 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(2), true);
338 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(0), true);
361 // Remove one experiment, check the other's still around.
589 const Experiment& experiment = kExperiments[3];
590 ASSERT_EQ(kFlags4, experiment.internal_name);
592 // Initially, the first "deactivated" option of the multi experiment should
602 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(2), true);
612 // Disable the multi-value experiment.
613 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(0), true);
623 const Experiment& experiment = kExperiments[4];
624 ASSERT_EQ(kFlags5, experiment.internal_name);
635 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(1), true);
645 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(2), true);
655 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(0), true);
664 // Makes sure there are no separators in any of the experiment names.