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

Unified Diff: components/search/search_unittest.cc

Issue 2196393006: Remove search::ShouldAllowPrefetchNonDefaultMatch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_prerender_omnibox
Patch Set: Created 4 years, 4 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 | « components/search/search.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/search/search_unittest.cc
diff --git a/components/search/search_unittest.cc b/components/search/search_unittest.cc
index 622ecd54c00168c2180f0625be9a5bee6244d708..f11151cae1f82b0fea5844a04cae6a9fa9aa66b9 100644
--- a/components/search/search_unittest.cc
+++ b/components/search/search_unittest.cc
@@ -151,20 +151,6 @@ TEST_F(SearchTest, ShouldReuseInstantSearchBasePage_Default) {
EXPECT_TRUE(ShouldReuseInstantSearchBasePage());
}
-TEST_F(SearchTest, ShouldAllowPrefetchNonDefaultMatch_DisabledViaFieldTrial) {
- ASSERT_TRUE(base::FieldTrialList::CreateFieldTrial(
- "EmbeddedSearch", "Group1 espv:89 allow_prefetch_non_default_match:0"));
- EXPECT_FALSE(ShouldAllowPrefetchNonDefaultMatch());
- EXPECT_EQ(89ul, EmbeddedSearchPageVersion());
-}
-
-TEST_F(SearchTest, ShouldAllowPrefetchNonDefaultMatch_EnabledViaFieldTrial) {
- ASSERT_TRUE(base::FieldTrialList::CreateFieldTrial(
- "EmbeddedSearch", "Group1 espv:80 allow_prefetch_non_default_match:1"));
- EXPECT_TRUE(ShouldAllowPrefetchNonDefaultMatch());
- EXPECT_EQ(80ul, EmbeddedSearchPageVersion());
-}
-
TEST_F(SearchTest, ForceInstantResultsParam) {
ASSERT_TRUE(base::FieldTrialList::CreateFieldTrial("EmbeddedSearch",
"Group1 espv:2"));
« no previous file with comments | « components/search/search.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698