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

Unified Diff: chrome/browser/search/search_unittest.cc

Issue 17945002: Make --force-fieldtrials not activate them in the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 6 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/search/search_unittest.cc
===================================================================
--- chrome/browser/search/search_unittest.cc (revision 208942)
+++ chrome/browser/search/search_unittest.cc (working copy)
@@ -151,7 +151,7 @@
TEST_F(InstantExtendedAPIEnabledTest, EnabledViaFinchFlag) {
ASSERT_TRUE(base::FieldTrialList::CreateTrialsFromString(
- "InstantExtended/Group1 espv:42/"));
+ "InstantExtended/Group1 espv:42/", false));
EXPECT_TRUE(IsInstantExtendedAPIEnabled());
EXPECT_EQ(42ul, EmbeddedSearchPageVersion());
ValidateMetrics(INSTANT_EXTENDED_NOT_SET);
@@ -160,7 +160,7 @@
TEST_F(InstantExtendedAPIEnabledTest, DisabledViaCommandLineFlag) {
GetCommandLine()->AppendSwitch(switches::kDisableInstantExtendedAPI);
ASSERT_TRUE(base::FieldTrialList::CreateTrialsFromString(
- "InstantExtended/Group1 espv:2/"));
+ "InstantExtended/Group1 espv:2/", false));
EXPECT_FALSE(IsInstantExtendedAPIEnabled());
EXPECT_EQ(0ul, EmbeddedSearchPageVersion());
ValidateMetrics(INSTANT_EXTENDED_OPT_OUT);
@@ -484,7 +484,7 @@
// Enable Instant.
ASSERT_TRUE(base::FieldTrialList::CreateTrialsFromString(
- "InstantExtended/Group1 allow_instant:1/"));
+ "InstantExtended/Group1 allow_instant:1/", false));
ASSERT_TRUE(IsInstantCheckboxVisible());
// Enable suggest.

Powered by Google App Engine
This is Rietveld 408576698