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

Unified Diff: chrome/browser/metrics/variations/variations_service_unittest.cc

Issue 421663003: Move variations component code to variations namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/metrics/variations/variations_service_unittest.cc
===================================================================
--- chrome/browser/metrics/variations/variations_service_unittest.cc (revision 285608)
+++ chrome/browser/metrics/variations/variations_service_unittest.cc (working copy)
@@ -124,12 +124,12 @@
// study called "test", which contains one experiment called "abc" with
// probability weight 100. |seed|'s study field will be cleared before adding
// the new study.
-VariationsSeed CreateTestSeed() {
- VariationsSeed seed;
- Study* study = seed.add_study();
+variations::VariationsSeed CreateTestSeed() {
+ variations::VariationsSeed seed;
+ variations::Study* study = seed.add_study();
study->set_name("test");
study->set_default_experiment_name("abc");
- Study_Experiment* experiment = study->add_experiment();
+ variations::Study_Experiment* experiment = study->add_experiment();
experiment->set_name("abc");
experiment->set_probability_weight(100);
seed.set_serial_number("123");
@@ -137,7 +137,7 @@
}
// Serializes |seed| to protobuf binary format.
-std::string SerializeSeed(const VariationsSeed& seed) {
+std::string SerializeSeed(const variations::VariationsSeed& seed) {
std::string serialized_seed;
seed.SerializeToString(&serialized_seed);
return serialized_seed;
@@ -397,7 +397,7 @@
TestVariationsServiceObserver observer;
service.AddObserver(&observer);
- VariationsSeedSimulator::Result result;
+ variations::VariationsSeedSimulator::Result result;
result.normal_group_change_count = cases[i].normal_count;
result.kill_best_effort_group_change_count = cases[i].best_effort_count;
result.kill_critical_group_change_count = cases[i].critical_count;
« no previous file with comments | « chrome/browser/metrics/variations/variations_service.cc ('k') | chrome/browser/omnibox/omnibox_field_trial.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698