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

Unified Diff: chrome/browser/search_engines/search_provider_install_data_unittest.cc

Issue 376413002: Stop using TemplateURLServiceTestUtil to initialize TemplateURLServiceFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Eliminate SetUp() and TearDown() Created 6 years, 5 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/search_engines/search_provider_install_data_unittest.cc
diff --git a/chrome/browser/search_engines/search_provider_install_data_unittest.cc b/chrome/browser/search_engines/search_provider_install_data_unittest.cc
index 8e309be4f27cce27a3988a068816509daa0db7c5..1bca439f5dc1d2d6dadbf72ce88ad94aae0c47af 100644
--- a/chrome/browser/search_engines/search_provider_install_data_unittest.cc
+++ b/chrome/browser/search_engines/search_provider_install_data_unittest.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/search_engines/template_url_service_test_util.h"
#include "chrome/test/base/testing_pref_service_syncable.h"
#include "chrome/test/base/testing_profile.h"
+#include "components/search_engines/search_terms_data.h"
#include "components/search_engines/template_url.h"
#include "components/search_engines/template_url_prepopulate_data.h"
#include "components/search_engines/template_url_service.h"
@@ -152,10 +153,10 @@ void SearchProviderInstallDataTest::SetUp() {
TemplateURLPrepopulateData::InitCountryCode(
std::string() /* unknown country code */);
#endif
- util_.SetUp();
process_.reset(new content::MockRenderProcessHost(util_.profile()));
- install_data_ =
- new SearchProviderInstallData(util_.profile(), process_.get());
+ install_data_ = new SearchProviderInstallData(
+ util_.model(), SearchTermsData().GoogleBaseURLValue(), NULL,
+ process_.get());
}
void SearchProviderInstallDataTest::TearDown() {
@@ -166,7 +167,6 @@ void SearchProviderInstallDataTest::TearDown() {
// It doesn't matter that this happens after install_data_ is deleted.
process_.reset();
- util_.TearDown();
testing::Test::TearDown();
}

Powered by Google App Engine
This is Rietveld 408576698