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

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: Review comments Created 4 years, 12 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/autocomplete/search_provider_unittest.cc
diff --git a/chrome/browser/autocomplete/search_provider_unittest.cc b/chrome/browser/autocomplete/search_provider_unittest.cc
index ca5a6db91f55d4b8bc81c8cb79543e69a24cea5c..256c1366eb36b123e6e00fd704c5342004e8872e 100644
--- a/chrome/browser/autocomplete/search_provider_unittest.cc
+++ b/chrome/browser/autocomplete/search_provider_unittest.cc
@@ -31,7 +31,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"
@@ -3229,26 +3228,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"));
« no previous file with comments | « chrome/browser/autocomplete/chrome_autocomplete_provider_client.cc ('k') | chrome/browser/search/instant_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698