Home | History | Annotate | Download | only in browser

Lines Matching refs:experiment

37 const Experiment::Choice kMultiChoices[] = {
43 // The experiments that are set for these tests. The 3rd experiment is not
45 static Experiment kExperiments[] = {
51 Experiment::SINGLE_VALUE,
64 Experiment::SINGLE_VALUE,
77 Experiment::SINGLE_VALUE,
90 Experiment::MULTI_VALUE,
103 Experiment::ENABLE_DISABLE_VALUE,
154 const Experiment& experiment = kExperiments[3];
155 ASSERT_EQ(kFlags4, experiment.internal_name);
158 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(2), true);
163 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(0), true);
186 // Remove one experiment, check the other's still around.
303 // Convert the flags to switches. Experiment 3 shouldn't be among the switches
309 // Experiment 3 should show still be persisted in preferences though.
381 const Experiment& experiment = kExperiments[3];
382 ASSERT_EQ(kFlags4, experiment.internal_name);
384 // Initially, the first "deactivated" option of the multi experiment should
394 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(2), true);
404 // Disable the multi-value experiment.
405 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(0), true);
415 const Experiment& experiment = kExperiments[4];
416 ASSERT_EQ(kFlags5, experiment.internal_name);
427 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(1), true);
437 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(2), true);
447 SetExperimentEnabled(&flags_storage_, experiment.NameForChoice(0), true);
456 // Makes sure there are no separators in any of the experiment names.
460 const Experiment* experiments = testing::GetExperiments(&count);