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

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

Issue 2541493002: Refactor search_engines tests to better reuse code (Closed)
Patch Set: Fixed after review Created 4 years, 1 month 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/template_url_service_factory_test_util.cc
diff --git a/chrome/browser/search_engines/template_url_service_factory_test_util.cc b/chrome/browser/search_engines/template_url_service_factory_test_util.cc
index b59e1cb186de18c913e1636058777189029e65d5..ec03cfa7b3f3e39da4761cc8c4b55016c55bc359 100644
--- a/chrome/browser/search_engines/template_url_service_factory_test_util.cc
+++ b/chrome/browser/search_engines/template_url_service_factory_test_util.cc
@@ -7,7 +7,6 @@
#include "base/run_loop.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
#include "chrome/test/base/testing_profile.h"
-#include "components/search_engines/default_search_pref_test_util.h"
#include "components/search_engines/template_url_service.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
@@ -30,28 +29,6 @@ void TemplateURLServiceFactoryTestUtil::VerifyLoad() {
base::RunLoop().RunUntilIdle();
}
-void TemplateURLServiceFactoryTestUtil::SetManagedDefaultSearchPreferences(
- bool enabled,
- const std::string& name,
- const std::string& keyword,
- const std::string& search_url,
- const std::string& suggest_url,
- const std::string& icon_url,
- const std::string& encodings,
- const std::string& alternate_url,
- const std::string& search_terms_replacement_key) {
- DefaultSearchPrefTestUtil::SetManagedPref(
- profile_->GetTestingPrefService(),
- enabled, name, keyword, search_url, suggest_url, icon_url, encodings,
- alternate_url, search_terms_replacement_key);
-}
-
-void
-TemplateURLServiceFactoryTestUtil::RemoveManagedDefaultSearchPreferences() {
- DefaultSearchPrefTestUtil::RemoveManagedPref(
- profile_->GetTestingPrefService());
-}
-
TemplateURLService* TemplateURLServiceFactoryTestUtil::model() const {
return TemplateURLServiceFactory::GetForProfile(profile_);
}

Powered by Google App Engine
This is Rietveld 408576698