Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1127)

Side by Side Diff: base/metrics/field_trial.h

Issue 24571002: FieldTrial: Remove friend declarations for non-existing tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // FieldTrial is a class for handling details of statistical experiments 5 // FieldTrial is a class for handling details of statistical experiments
6 // performed by actual users in the field (i.e., in a shipped or beta product). 6 // performed by actual users in the field (i.e., in a shipped or beta product).
7 // All code is called exclusively on the UI thread currently. 7 // All code is called exclusively on the UI thread currently.
8 // 8 //
9 // The simplest example is an experiment to see whether one of two options 9 // The simplest example is an experiment to see whether one of two options
10 // produces "better" results across our user population. In that scenario, UMA 10 // produces "better" results across our user population. In that scenario, UMA
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, AbsoluteProbabilities); 159 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, AbsoluteProbabilities);
160 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, RemainingProbability); 160 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, RemainingProbability);
161 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, FiftyFiftyProbability); 161 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, FiftyFiftyProbability);
162 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, MiddleProbabilities); 162 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, MiddleProbabilities);
163 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, OneWinner); 163 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, OneWinner);
164 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, DisableProbability); 164 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, DisableProbability);
165 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, ActiveGroups); 165 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, ActiveGroups);
166 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, ActiveGroupsNotFinalized); 166 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, ActiveGroupsNotFinalized);
167 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, Save); 167 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, Save);
168 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, DuplicateRestore); 168 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, DuplicateRestore);
169 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, HashClientId);
170 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, HashClientIdIsUniform);
171 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, NameGroupIds);
172 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, SetForcedTurnFeatureOff); 169 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, SetForcedTurnFeatureOff);
173 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, SetForcedTurnFeatureOn); 170 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, SetForcedTurnFeatureOn);
174 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, SetForcedChangeDefault_Default); 171 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, SetForcedChangeDefault_Default);
175 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, SetForcedChangeDefault_NonDefault); 172 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, SetForcedChangeDefault_NonDefault);
176 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, FloatBoundariesGiveEqualGroupSizes); 173 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, FloatBoundariesGiveEqualGroupSizes);
177 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, DoesNotSurpassTotalProbability); 174 FRIEND_TEST_ALL_PREFIXES(FieldTrialTest, DoesNotSurpassTotalProbability);
178 175
179 friend class base::FieldTrialList; 176 friend class base::FieldTrialList;
180 177
181 friend class RefCounted<FieldTrial>; 178 friend class RefCounted<FieldTrial>;
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 449
453 // List of observers to be notified when a group is selected for a FieldTrial. 450 // List of observers to be notified when a group is selected for a FieldTrial.
454 scoped_refptr<ObserverListThreadSafe<Observer> > observer_list_; 451 scoped_refptr<ObserverListThreadSafe<Observer> > observer_list_;
455 452
456 DISALLOW_COPY_AND_ASSIGN(FieldTrialList); 453 DISALLOW_COPY_AND_ASSIGN(FieldTrialList);
457 }; 454 };
458 455
459 } // namespace base 456 } // namespace base
460 457
461 #endif // BASE_METRICS_FIELD_TRIAL_H_ 458 #endif // BASE_METRICS_FIELD_TRIAL_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698