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

Unified Diff: base/metrics/field_trial_unittest.cc

Issue 2530573002: Share field trial allocator on zygote-using Linuxes (Closed)
Patch Set: add check back 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
« no previous file with comments | « base/metrics/field_trial.cc ('k') | components/variations/child_process_field_trial_syncer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/field_trial_unittest.cc
diff --git a/base/metrics/field_trial_unittest.cc b/base/metrics/field_trial_unittest.cc
index 890b3e5824e3fb39a586b247377a724b992b8de9..fcf5480d7fd9b6b10e7ebd1fbd7eac612a8e9060 100644
--- a/base/metrics/field_trial_unittest.cc
+++ b/base/metrics/field_trial_unittest.cc
@@ -1136,6 +1136,7 @@ TEST(FieldTrialDeathTest, OneTimeRandomizedTrialWithoutFieldTrialList) {
"");
}
+#if defined(OS_WIN)
TEST(FieldTrialListTest, TestCopyFieldTrialStateToFlags) {
base::FieldTrialList field_trial_list(
base::MakeUnique<base::MockEntropyProvider>());
@@ -1146,13 +1147,10 @@ TEST(FieldTrialListTest, TestCopyFieldTrialStateToFlags) {
base::FieldTrialList::CopyFieldTrialStateToFlags(field_trial_handle,
&cmd_line);
-#if defined(OS_WIN)
EXPECT_TRUE(cmd_line.HasSwitch(field_trial_handle) ||
cmd_line.HasSwitch(switches::kForceFieldTrials));
-#else
- EXPECT_TRUE(cmd_line.HasSwitch(switches::kForceFieldTrials));
-#endif
}
+#endif
TEST(FieldTrialListTest, InstantiateAllocator) {
FieldTrialList field_trial_list(nullptr);
« no previous file with comments | « base/metrics/field_trial.cc ('k') | components/variations/child_process_field_trial_syncer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698