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

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

Issue 1192373002: Prepare AutocompleteController for componentization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@componentize_zero_suggest_provider
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/keyword_extensions_delegate_impl_unittest.cc
diff --git a/chrome/browser/autocomplete/keyword_extensions_delegate_impl_unittest.cc b/chrome/browser/autocomplete/keyword_extensions_delegate_impl_unittest.cc
index af0000a1ea6a7fb5a0ac0205116de8b5ea7abcf0..0f4b715ad5fea070a2fc09925f79f30b13ffbc9b 100644
--- a/chrome/browser/autocomplete/keyword_extensions_delegate_impl_unittest.cc
+++ b/chrome/browser/autocomplete/keyword_extensions_delegate_impl_unittest.cc
@@ -14,6 +14,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_paths.h"
#include "components/omnibox/keyword_provider.h"
+#include "components/omnibox/mock_autocomplete_provider_client.h"
#include "components/search_engines/template_url_service.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_registry_observer.h"
@@ -79,9 +80,11 @@ void KeywordExtensionsDelegateImplTest::SetUp() {
}
void KeywordExtensionsDelegateImplTest::RunTest(bool incognito) {
- TemplateURLService empty_model(NULL, 0);
+ scoped_ptr<TemplateURLService> empty_model(new TemplateURLService(NULL, 0));
+ MockAutocompleteProviderClient client;
+ client.set_template_url_service(empty_model.Pass());
scoped_refptr<KeywordProvider> keyword_provider =
- new KeywordProvider(NULL, &empty_model);
+ new KeywordProvider(&client, nullptr);
// Load an extension.
{

Powered by Google App Engine
This is Rietveld 408576698