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

Unified Diff: chrome/browser/omnibox/omnibox_field_trial_unittest.cc

Issue 24733003: Update defaults for InstantExtended. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unused. Created 7 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/browser/omnibox/omnibox_field_trial_unittest.cc
diff --git a/chrome/browser/omnibox/omnibox_field_trial_unittest.cc b/chrome/browser/omnibox/omnibox_field_trial_unittest.cc
index c1ba39097b65b291d40d404675b7b011eeff9dbd..4a7dfc7f3f7c8adf00ba7399da3aa8d7146e5543 100644
--- a/chrome/browser/omnibox/omnibox_field_trial_unittest.cc
+++ b/chrome/browser/omnibox/omnibox_field_trial_unittest.cc
@@ -246,7 +246,8 @@ TEST_F(OmniboxFieldTrialTest, GetValueForRuleInContext) {
base::FieldTrialList::CreateFieldTrial(
OmniboxFieldTrial::kBundledExperimentFieldTrialName, "A");
- // Tests with Instant Extended disabled.
+ // Instant Extended only works on non-mobile platforms.
+#if defined(OS_IOS) || defined(OS_ANDROID)
// Tests for rule 1.
ExpectRuleValue("rule1-1-0-value",
"rule1", AutocompleteInput::NTP); // exact match
@@ -285,14 +286,7 @@ TEST_F(OmniboxFieldTrialTest, GetValueForRuleInContext) {
// Tests for rule 5 (a missing rule).
ExpectRuleValue("",
"rule5", AutocompleteInput::OTHER); // no rule at all
-
- // Now change the Instant Extended state and run analogous tests.
- // Instant Extended only works on non-mobile platforms.
-#if !defined(OS_IOS) && !defined(OS_ANDROID)
- chrome::ResetInstantExtendedOptInStateGateForTest();
- CommandLine::ForCurrentProcess()->AppendSwitch(
- switches::kEnableInstantExtendedAPI);
-
+#else
// Tests with Instant Extended enabled.
// Tests for rule 1.
ExpectRuleValue("rule1-4-1-value",
@@ -325,5 +319,5 @@ TEST_F(OmniboxFieldTrialTest, GetValueForRuleInContext) {
// Tests for rule 5 (a missing rule).
ExpectRuleValue("",
"rule5", AutocompleteInput::OTHER); // no rule at all
-#endif // !defined(OS_IOS) && !defined(OS_ANDROID)
+#endif // defined(OS_IOS) || defined(OS_ANDROID)
}
« no previous file with comments | « chrome/browser/extensions/lazy_background_page_apitest.cc ('k') | chrome/browser/policy/policy_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698