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: chrome/browser/search/instant_service_unittest.cc

Issue 360373006: Enable prefetch-search-results on Desktop Chrome by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 6 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/search/search.cc » ('j') | chrome/browser/search/search.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/instant_service_unittest.cc
diff --git a/chrome/browser/search/instant_service_unittest.cc b/chrome/browser/search/instant_service_unittest.cc
index f681c60d1bc447e34902d276ef9dd0ceade16a07..16d7a362b8f6f666007bf10731ad521af8bd3e4c 100644
--- a/chrome/browser/search/instant_service_unittest.cc
+++ b/chrome/browser/search/instant_service_unittest.cc
@@ -61,7 +61,7 @@ class InstantServiceEnabledTest : public InstantServiceTest {
protected:
virtual void SetUp() OVERRIDE {
ASSERT_TRUE(base::FieldTrialList::CreateFieldTrial(
- "EmbeddedSearch", "Group1 use_cacheable_ntp:1 prefetch_results:1"));
+ "EmbeddedSearch", "Group1 use_cacheable_ntp:1"));
InstantServiceTest::SetUp();
}
};
@@ -116,10 +116,8 @@ TEST_F(InstantServiceEnabledTest, SendsSearchURLsToRenderer) {
EXPECT_EQ("https://www.google.com/newtab", new_tab_page_url.spec());
}
-TEST_F(InstantServiceTest, InstantSearchDisabled) {
- // 'prefetch_results' flag is not enabled in field trials. Make sure
- // InstantSearchPrerenderer is not initialized.
- EXPECT_EQ(static_cast<InstantSearchPrerenderer*>(NULL),
+TEST_F(InstantServiceTest, InstantSearchEnabled) {
+ EXPECT_NE(static_cast<InstantSearchPrerenderer*>(NULL),
GetInstantSearchPrerenderer());
}
« no previous file with comments | « no previous file | chrome/browser/search/search.cc » ('j') | chrome/browser/search/search.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698