Lines Matching defs:winner
129 const std::string winner = "TheWinner";
130 int winner_group = trial_true->AppendGroup(winner, 10);
133 EXPECT_EQ(winner, trial_true->group_name());
144 // First create a test that hasn't had a winner yet.
145 const std::string winner = "Winner";
152 trial = CreateFieldTrial(name, 10, winner, &default_group_number);
157 // And that 'default' group (winner) should always win.
160 // And that winner should ALWAYS win.
161 EXPECT_EQ(winner, trial->group_name());
275 // There is no winner yet, so no NameGroupId should be returned.
280 std::string one_winner("One Winner");
282 std::string winner("Winner");
283 trial->AppendGroup(winner, 10);
289 EXPECT_EQ(winner, active_group.group_name);
313 winner == active_groups[i].group_name);
332 std::string one_winner("One Winner");
335 std::string winner("Winner");
336 trial->AppendGroup(winner, 10);
339 EXPECT_EQ(winner, field_trial_state.group_name);
343 EXPECT_EQ(winner, field_trial_state.group_name);
422 // There is no winner yet, so no textual group name is associated with trial.
430 trial->AppendGroup("Winner", 10);
434 EXPECT_EQ("Some name/Winner/", save_string);
446 EXPECT_EQ("Some name/Winner/xxx/yyyy/", save_string);
456 EXPECT_EQ("Some name/Winner/xxx/yyyy/zzz/default/", save_string);
473 trial->AppendGroup("Winner", 10);
477 EXPECT_EQ("Some name/Default some name/*trial2/Winner/", save_string);
489 EXPECT_EQ("Some name/Default some name/*trial2/Winner/*xxx/yyyy/",
498 EXPECT_EQ("Some name/Default some name/*trial2/Winner/*xxx/yyyy/zzz/default/",
506 FieldTrialList::CreateTrialsFromString("Some_name/Winner/xxx/yyyy/",
512 EXPECT_EQ("Winner", trial->group_name());
553 trial->AppendGroup("Winner", 10);
558 EXPECT_EQ("Some name/Winner/", save_string);
560 // It is OK if we redundantly specify a winner.
565 // But it is an error to try to change to a different winner.
703 FieldTrialList::CreateFieldTrial("Some_name", "Winner");
707 EXPECT_EQ("Winner", trial->group_name());
713 const char kWinnerGroup[] = "Winner";
725 trial->AppendGroup("Winner", 10);
727 // It is OK if we redundantly specify a winner.
728 FieldTrial* trial1 = FieldTrialList::CreateFieldTrial("Some_name", "Winner");
731 // But it is an error to try to change to a different winner.
797 // Start by setting a trial for which we ensure a winner...