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

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: Fix 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..2f3178a81b4119b4725a68b299d227e92cef90bc 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"
@@ -236,7 +237,10 @@ void HistoryQuickProviderTest::SetUp() {
InMemoryURLIndex* index =
InMemoryURLIndexFactory::GetForProfile(profile_.get());
EXPECT_TRUE(index);
- provider_ = new HistoryQuickProvider(profile_.get(), index);
+ provider_ = new HistoryQuickProvider(
+ scoped_ptr<AutocompleteProviderClient>(
+ new ChromeAutocompleteProviderClient(profile_.get())),
Peter Kasting 2015/06/12 16:20:23 Note that if you move the ChromeAutocompleteProvid
blundell 2015/06/15 08:51:33 Obsolete now.
+ profile_.get(), index);
TemplateURLServiceFactory::GetInstance()->SetTestingFactoryAndUse(
profile_.get(), &HistoryQuickProviderTest::CreateTemplateURLService);
FillData();

Powered by Google App Engine
This is Rietveld 408576698