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

Unified Diff: chrome/common/variations/child_process_field_trial_syncer_unittest.cc

Issue 2504163005: Fix getting initially active trials with shared memory. (Closed)
Patch Set: Use typedefs 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: chrome/common/variations/child_process_field_trial_syncer_unittest.cc
diff --git a/chrome/common/variations/child_process_field_trial_syncer_unittest.cc b/chrome/common/variations/child_process_field_trial_syncer_unittest.cc
index 7d1992a05597add9f1a4539fdaec93874823e7fc..d1d3101a59681bbed36f200e2a678b953732ec0d 100644
--- a/chrome/common/variations/child_process_field_trial_syncer_unittest.cc
+++ b/chrome/common/variations/child_process_field_trial_syncer_unittest.cc
@@ -54,6 +54,8 @@ std::pair<std::string, std::string> MakeStringPair(const std::string& a,
TEST(ChildProcessFieldTrialSyncerTest, FieldTrialState) {
base::MessageLoop message_loop;
base::FieldTrialList field_trial_list(nullptr);
+ base::FieldTrialList::CreateTrialsFromCommandLine(
+ *base::CommandLine::ForCurrentProcess(), "field_trial_handle_switch");
base::FieldTrial* trial1 = base::FieldTrialList::CreateFieldTrial("A", "G1");
base::FieldTrial* trial2 = base::FieldTrialList::CreateFieldTrial("B", "G2");
« no previous file with comments | « chrome/common/variations/child_process_field_trial_syncer.cc ('k') | content/public/test/render_view_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698