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

Side by Side Diff: components/variations/variations_seed_simulator.h

Issue 412943002: Move variations component code to variations namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_SEED_SIMULATOR_H_ 5 #ifndef COMPONENTS_VARIATIONS_VARIATIONS_SEED_SIMULATOR_H_
6 #define COMPONENTS_VARIATIONS_VARIATIONS_SEED_SIMULATOR_H_ 6 #define COMPONENTS_VARIATIONS_VARIATIONS_SEED_SIMULATOR_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/metrics/field_trial.h" 13 #include "base/metrics/field_trial.h"
14 #include "base/version.h" 14 #include "base/version.h"
15 #include "components/variations/proto/study.pb.h" 15 #include "components/variations/proto/study.pb.h"
16 #include "components/variations/proto/variations_seed.pb.h" 16 #include "components/variations/proto/variations_seed.pb.h"
17 17
18 namespace chrome_variations { 18 namespace variations {
19 19
20 class ProcessedStudy; 20 class ProcessedStudy;
21 class VariationsSeed; 21 class VariationsSeed;
22 22
23 // VariationsSeedSimulator simulates the result of creating a set of studies 23 // VariationsSeedSimulator simulates the result of creating a set of studies
24 // and detecting which studies would result in group changes. 24 // and detecting which studies would result in group changes.
25 class VariationsSeedSimulator { 25 class VariationsSeedSimulator {
26 public: 26 public:
27 // The result of variations seed simulation, counting the number of experiment 27 // The result of variations seed simulation, counting the number of experiment
28 // group changes of each type that are expected to occur on a restart with the 28 // group changes of each type that are expected to occur on a restart with the
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // in a guaranteed different group assignment (or different params) and 93 // in a guaranteed different group assignment (or different params) and
94 // returns the corresponding ChangeType. 94 // returns the corresponding ChangeType.
95 ChangeType SessionStudyGroupChanged(const ProcessedStudy& filtered_study, 95 ChangeType SessionStudyGroupChanged(const ProcessedStudy& filtered_study,
96 const std::string& selected_group); 96 const std::string& selected_group);
97 97
98 const base::FieldTrial::EntropyProvider& entropy_provider_; 98 const base::FieldTrial::EntropyProvider& entropy_provider_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(VariationsSeedSimulator); 100 DISALLOW_COPY_AND_ASSIGN(VariationsSeedSimulator);
101 }; 101 };
102 102
103 } // namespace chrome_variations 103 } // namespace variations
104 104
105 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SEED_SIMULATOR_H_ 105 #endif // COMPONENTS_VARIATIONS_VARIATIONS_SEED_SIMULATOR_H_
OLDNEW
« no previous file with comments | « components/variations/variations_seed_processor_unittest.cc ('k') | components/variations/variations_seed_simulator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698