Home | History | Annotate | Download | only in variations

Lines Matching refs:trial

18 // Note that this will do the group assignment in |trial| if not already done.
19 VariationID GetIDForTrial(IDCollectionKey key, base::FieldTrial* trial) {
20 return GetGoogleVariationID(key, trial->trial_name(), trial->group_name());
23 // Tests whether a field trial is active (i.e. group() has been called on it).
66 // Test that if the trial is immediately disabled, GetGoogleVariationID just
70 scoped_refptr<base::FieldTrial> trial(
71 CreateFieldTrial("trial", 100, "default", &default_group_number));
73 ASSERT_EQ(default_group_number, trial->group());
74 ASSERT_EQ(EMPTY_ID, GetIDForTrial(GOOGLE_WEB_PROPERTIES, trial.get()));
84 scoped_refptr<base::FieldTrial> trial(
85 CreateFieldTrial("trial", 100, default_name, NULL));
87 trial->AppendGroup(non_default_name, 100);
88 AssociateGoogleVariationID(GOOGLE_WEB_PROPERTIES, trial->trial_name(),
90 AssociateGoogleVariationID(GOOGLE_WEB_PROPERTIES, trial->trial_name(),
92 trial->Disable();
93 ASSERT_EQ(default_name, trial->group_name());
94 ASSERT_EQ(TEST_VALUE_A, GetIDForTrial(GOOGLE_WEB_PROPERTIES, trial.get()));
152 GetGoogleVariationID(GOOGLE_WEB_PROPERTIES, "trial", "group"));
153 AssociateGoogleVariationID(GOOGLE_WEB_PROPERTIES, "trial", "group",
156 GetGoogleVariationID(GOOGLE_WEB_PROPERTIES, "trial", "group"));
157 AssociateGoogleVariationID(GOOGLE_WEB_PROPERTIES, "trial", "group",
160 GetGoogleVariationID(GOOGLE_WEB_PROPERTIES, "trial", "group"));
161 AssociateGoogleVariationIDForce(GOOGLE_WEB_PROPERTIES, "trial", "group",
164 GetGoogleVariationID(GOOGLE_WEB_PROPERTIES, "trial", "group"));
275 scoped_refptr<base::FieldTrial> trial(
309 scoped_refptr<base::FieldTrial> trial(
322 scoped_refptr<base::FieldTrial> trial(