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

Unified Diff: components/variations/child_process_field_trial_syncer_unittest.cc

Issue 2514593002: Field trial synchronization to PPAPI process. (Closed)
Patch Set: Fix namespace. Created 4 years, 1 month 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: components/variations/child_process_field_trial_syncer_unittest.cc
diff --git a/chrome/common/variations/child_process_field_trial_syncer_unittest.cc b/components/variations/child_process_field_trial_syncer_unittest.cc
similarity index 92%
rename from chrome/common/variations/child_process_field_trial_syncer_unittest.cc
rename to components/variations/child_process_field_trial_syncer_unittest.cc
index d1d3101a59681bbed36f200e2a678b953732ec0d..3e63c2f7eaed2be3762a6ecce56af092865ffc55 100644
--- a/chrome/common/variations/child_process_field_trial_syncer_unittest.cc
+++ b/components/variations/child_process_field_trial_syncer_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/common/variations/child_process_field_trial_syncer.h"
+#include "components/variations/child_process_field_trial_syncer.h"
#include <string>
#include <utility>
@@ -15,7 +15,7 @@
#include "base/run_loop.h"
#include "testing/gtest/include/gtest/gtest.h"
-namespace chrome_variations {
+namespace variations {
namespace {
@@ -55,7 +55,7 @@ TEST(ChildProcessFieldTrialSyncerTest, FieldTrialState) {
base::MessageLoop message_loop;
base::FieldTrialList field_trial_list(nullptr);
base::FieldTrialList::CreateTrialsFromCommandLine(
- *base::CommandLine::ForCurrentProcess(), "field_trial_handle_switch");
+ *base::CommandLine::ForCurrentProcess(), "field_trial_handle_switch");
base::FieldTrial* trial1 = base::FieldTrialList::CreateFieldTrial("A", "G1");
base::FieldTrial* trial2 = base::FieldTrialList::CreateFieldTrial("B", "G2");
@@ -75,7 +75,8 @@ TEST(ChildProcessFieldTrialSyncerTest, FieldTrialState) {
TestFieldTrialObserver observer;
ChildProcessFieldTrialSyncer syncer(&observer);
- syncer.InitFieldTrialObserving(*base::CommandLine::ForCurrentProcess());
+ syncer.InitFieldTrialObserving(*base::CommandLine::ForCurrentProcess(),
+ "single_process");
// The observer should be notified of activated entries that were not activate
// on the command line. In this case, trial 2. (Trial 1 was already active via
@@ -93,4 +94,4 @@ TEST(ChildProcessFieldTrialSyncerTest, FieldTrialState) {
EXPECT_EQ(MakeStringPair("C", "G3"), observer.get_observed_entry(1));
}
-} // namespace chrome_variations
+} // namespace variations
« no previous file with comments | « components/variations/child_process_field_trial_syncer.cc ('k') | content/browser/ppapi_plugin_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698