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

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

Issue 1185723002: Prepare HistoryProvider for componentization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 5 years, 6 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/history_quick_provider_unittest.cc
diff --git a/chrome/browser/autocomplete/history_quick_provider_unittest.cc b/chrome/browser/autocomplete/history_quick_provider_unittest.cc
index eedeb29843e1617a3fe4d2471015d5591586d5b7..eefa7b36dd8ef2fe914c453b632ae8abfd9b0784 100644
--- a/chrome/browser/autocomplete/history_quick_provider_unittest.cc
+++ b/chrome/browser/autocomplete/history_quick_provider_unittest.cc
@@ -16,6 +16,7 @@
#include "base/prefs/pref_service.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
+#include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h"
#include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
#include "chrome/browser/autocomplete/history_url_provider.h"
#include "chrome/browser/autocomplete/in_memory_url_index.h"
@@ -216,6 +217,7 @@ class HistoryQuickProviderTest : public testing::Test {
content::TestBrowserThread file_thread_;
scoped_ptr<TestingProfile> profile_;
+ scoped_ptr<ChromeAutocompleteProviderClient> client_;
history::HistoryService* history_service_;
ACMatches ac_matches_; // The resulting matches after running RunTest.
@@ -225,6 +227,7 @@ class HistoryQuickProviderTest : public testing::Test {
void HistoryQuickProviderTest::SetUp() {
profile_.reset(new TestingProfile());
+ client_.reset(new ChromeAutocompleteProviderClient(profile_.get()));
ASSERT_TRUE(profile_->CreateHistoryService(true, false));
profile_->CreateBookmarkModel(true);
bookmarks::test::WaitForBookmarkModelToLoad(
@@ -236,7 +239,7 @@ void HistoryQuickProviderTest::SetUp() {
InMemoryURLIndex* index =
InMemoryURLIndexFactory::GetForProfile(profile_.get());
EXPECT_TRUE(index);
- provider_ = new HistoryQuickProvider(profile_.get(), index);
+ provider_ = new HistoryQuickProvider(client_.get(), profile_.get(), index);
TemplateURLServiceFactory::GetInstance()->SetTestingFactoryAndUse(
profile_.get(), &HistoryQuickProviderTest::CreateTemplateURLService);
FillData();
« no previous file with comments | « chrome/browser/autocomplete/history_quick_provider.cc ('k') | chrome/browser/autocomplete/history_url_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698