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

Unified Diff: chrome/browser/autocomplete/search_provider_unittest.cc

Issue 1543203002: Remove a variety of no-longer-used query params. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/autocomplete/search_provider_unittest.cc
diff --git a/chrome/browser/autocomplete/search_provider_unittest.cc b/chrome/browser/autocomplete/search_provider_unittest.cc
index e1e82f8548756bca368e98cb3655d931120477fb..de5658ca60b70d8184f422042a372b87d9995187 100644
--- a/chrome/browser/autocomplete/search_provider_unittest.cc
+++ b/chrome/browser/autocomplete/search_provider_unittest.cc
@@ -28,7 +28,6 @@
#include "chrome/common/pref_names.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
-#include "components/bookmarks/common/bookmark_pref_names.h"
#include "components/browser_sync/browser/profile_sync_service.h"
#include "components/google/core/browser/google_switches.h"
#include "components/history/core/browser/history_service.h"
@@ -3226,26 +3225,6 @@ TEST_F(SearchProviderTest, ParseDeletionUrl) {
}
}
-TEST_F(SearchProviderTest, ReflectsBookmarkBarState) {
- profile_.GetPrefs()->SetBoolean(bookmarks::prefs::kShowBookmarkBar, false);
- base::string16 term = term1_.substr(0, term1_.length() - 1);
- QueryForInput(term, true, false);
- ASSERT_FALSE(provider_->matches().empty());
- EXPECT_EQ(AutocompleteMatchType::SEARCH_WHAT_YOU_TYPED,
- provider_->matches()[0].type);
- ASSERT_TRUE(provider_->matches()[0].search_terms_args != NULL);
- EXPECT_FALSE(provider_->matches()[0].search_terms_args->bookmark_bar_pinned);
-
- profile_.GetPrefs()->SetBoolean(bookmarks::prefs::kShowBookmarkBar, true);
- term = term1_.substr(0, term1_.length() - 1);
- QueryForInput(term, true, false);
- ASSERT_FALSE(provider_->matches().empty());
- EXPECT_EQ(AutocompleteMatchType::SEARCH_WHAT_YOU_TYPED,
- provider_->matches()[0].type);
- ASSERT_TRUE(provider_->matches()[0].search_terms_args != NULL);
- EXPECT_TRUE(provider_->matches()[0].search_terms_args->bookmark_bar_pinned);
-}
-
TEST_F(SearchProviderTest, CanSendURL) {
TemplateURLData template_url_data;
template_url_data.SetShortName(ASCIIToUTF16("t"));

Powered by Google App Engine
This is Rietveld 408576698