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

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

Issue 416333008: Revert 285657 "Move variations component code to variations name..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/chrome/browser/metrics/variations/variations_service_unittest.cc
===================================================================
--- trunk/src/chrome/browser/metrics/variations/variations_service_unittest.cc (revision 285674)
+++ trunk/src/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.
-variations::VariationsSeed CreateTestSeed() {
- variations::VariationsSeed seed;
- variations::Study* study = seed.add_study();
+VariationsSeed CreateTestSeed() {
+ VariationsSeed seed;
+ Study* study = seed.add_study();
study->set_name("test");
study->set_default_experiment_name("abc");
- variations::Study_Experiment* experiment = study->add_experiment();
+ 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 variations::VariationsSeed& seed) {
+std::string SerializeSeed(const VariationsSeed& seed) {
std::string serialized_seed;
seed.SerializeToString(&serialized_seed);
return serialized_seed;
@@ -397,7 +397,7 @@
TestVariationsServiceObserver observer;
service.AddObserver(&observer);
- variations::VariationsSeedSimulator::Result result;
+ 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;

Powered by Google App Engine
This is Rietveld 408576698