• Home
  • Raw
  • Download

Lines Matching refs:trial

104   scoped_refptr<FieldTrial> trial;  in TEST_F()  local
108 trial = new FieldTrial(name, 10, winner, next_year_, 12, 31); in TEST_F()
109 trial->AppendGroup(loser, 5); // 50% chance of not being chosen. in TEST_F()
111 } while (trial->group_ != FieldTrial::kNotFinalized); in TEST_F()
114 EXPECT_EQ(FieldTrial::kDefaultGroupNumber, trial->group()); in TEST_F()
117 EXPECT_EQ(winner, trial->group_name()); in TEST_F()
132 scoped_refptr<FieldTrial> trial( in TEST_F() local
134 trial->AppendGroup("first", 1); // 50% chance of being chosen. in TEST_F()
136 if (trial->group_ != FieldTrial::kNotFinalized) { in TEST_F()
140 trial->AppendGroup("second", 1); // Always chosen at this point. in TEST_F()
141 EXPECT_NE(FieldTrial::kNotFinalized, trial->group()); in TEST_F()
156 FieldTrial* trial = in TEST_F() local
158 int might_win = trial->AppendGroup("MightWin", 5); in TEST_F()
160 if (trial->group() == might_win) { in TEST_F()
179 FieldTrial* trial = in TEST_F() local
186 int might_win = trial->AppendGroup("", 1); in TEST_F()
190 if (trial->group_ == might_win) { in TEST_F()
194 EXPECT_EQ(winner_name, trial->group_name()); in TEST_F()
198 EXPECT_EQ(trial->group(), winner_index); in TEST_F()
199 EXPECT_EQ(trial->group_name(), winner_name); in TEST_F()
208 scoped_refptr<FieldTrial> trial; in TEST_F() local
209 trial = new FieldTrial( in TEST_F()
211 trial->AppendGroup(loser, 999999999); // 99.9999999% chance of being chosen. in TEST_F()
214 EXPECT_EQ(FieldTrial::kDefaultGroupNumber, trial->group()); in TEST_F()
217 EXPECT_EQ(default_group_name, trial->group_name()); in TEST_F()
223 FieldTrial* trial = in TEST_F() local
227 EXPECT_EQ("", trial->group_name_internal()); in TEST_F()
233 trial->AppendGroup("Winner", 10); in TEST_F()
254 FieldTrial* trial = FieldTrialList::Find("Some_name"); in TEST_F() local
255 ASSERT_NE(static_cast<FieldTrial*>(NULL), trial); in TEST_F()
256 EXPECT_EQ("Winner", trial->group_name()); in TEST_F()
257 EXPECT_EQ("Some_name", trial->name()); in TEST_F()
259 trial = FieldTrialList::Find("xxx"); in TEST_F()
260 ASSERT_NE(static_cast<FieldTrial*>(NULL), trial); in TEST_F()
261 EXPECT_EQ("yyyy", trial->group_name()); in TEST_F()
262 EXPECT_EQ("xxx", trial->name()); in TEST_F()
275 FieldTrial* trial = in TEST_F() local
278 trial->AppendGroup("Winner", 10); in TEST_F()
291 FieldTrial* trial = in TEST_F() local
293 trial->group(); in TEST_F()