Home | History | Annotate | Download | only in variations

Lines Matching refs:study

18 // Converts |time| to Study proto format.
31 // Adds an experiment to |study| with the specified |name| and |probability|.
33 Study* study) {
34 Study_Experiment* experiment = study->add_experiment();
40 // Populates |study| with test data used for testing associating command line
41 // flags with trials groups. The study will contain three groups, a default
44 Study CreateStudyWithFlagGroups(int default_group_probability,
50 Study study;
51 study.set_name(kFlagStudyName);
52 study.set_default_experiment_name(kNonFlagGroupName);
54 AddExperiment(kNonFlagGroupName, default_group_probability, &study);
55 AddExperiment(kFlagGroup1Name, flag_group1_probability, &study)
57 AddExperiment(kFlagGroup2Name, flag_group2_probability, &study)
60 return study;
320 Study study = CreateStudyWithFlagGroups(100, 0, 0);
321 VariationsSeedProcessor().CreateTrialFromStudy(study, false);
333 Study study = CreateStudyWithFlagGroups(100, 0, 0);
334 VariationsSeedProcessor().CreateTrialFromStudy(study, false);
347 Study study = CreateStudyWithFlagGroups(100, 0, 0);
348 VariationsSeedProcessor().CreateTrialFromStudy(study, false);
360 Study study = CreateStudyWithFlagGroups(1, 999, 999);
361 VariationsSeedProcessor().CreateTrialFromStudy(study, false);
380 Study study;
383 EXPECT_FALSE(seed_processor.IsStudyExpired(study, now));
386 study.set_expiry_date(TimeToProtoTime(expiry_test_cases[i].expiry_date));
387 const bool result = seed_processor.IsStudyExpired(study, now);
400 Study* study1 = seed.add_study();
405 Study* study2 = seed.add_study();
407 ASSERT_EQ(seed.study(0).name(), seed.study(1).name());
439 Study study;
440 study.set_default_experiment_name("def");
441 AddExperiment("abc", 100, &study);
442 Study_Experiment* default_group = AddExperiment("def", 200, &study);
446 study, &total_probability);
451 study.mutable_filter()->set_min_version("1.2.3.*");
453 study, &total_probability);
455 study.mutable_filter()->set_min_version("1.*.3");
457 study, &total_probability);
459 study.mutable_filter()->set_min_version("1.2.3");
461 study, &total_probability);
465 study.mutable_filter()->set_max_version("2.3.4.*");
467 study, &total_probability);
469 study.mutable_filter()->set_max_version("*.3");
471 study, &total_probability);
473 study.mutable_filter()->set_max_version("2.3.4");
475 study, &total_probability);
478 study.clear_default_experiment_name();
479 valid = seed_processor.ValidateStudyAndComputeTotalProbability(study,
483 study.set_default_experiment_name("xyz");
484 valid = seed_processor.ValidateStudyAndComputeTotalProbability(study,
488 study.set_default_experiment_name("def");
490 valid = seed_processor.ValidateStudyAndComputeTotalProbability(study,
495 valid = seed_processor.ValidateStudyAndComputeTotalProbability(study,
498 Study_Experiment* repeated_group = study.add_experiment();
501 valid = seed_processor.ValidateStudyAndComputeTotalProbability(study,
510 Study study;
511 study.set_name("Study1");
512 study.set_default_experiment_name("B");
514 Study_Experiment* experiment1 = AddExperiment("A", 1, &study);
519 Study_Experiment* experiment2 = AddExperiment("B", 0, &study);
521 seed_processor.CreateTrialFromStudy(study, false);
524 study.set_name("Study2");
527 seed_processor.CreateTrialFromStudy(study, false);