Index: chrome/browser/search_engines/template_url_service_test_util.h |
diff --git a/chrome/browser/search_engines/template_url_service_test_util.h b/chrome/browser/search_engines/template_url_service_test_util.h |
index a1ca5fdfce8026a0ad024982aff0d00c5512bc13..566fb9215b536f1128a7ca0eb5b14ec9713568fa 100644 |
--- a/chrome/browser/search_engines/template_url_service_test_util.h |
+++ b/chrome/browser/search_engines/template_url_service_test_util.h |
@@ -12,6 +12,7 @@ |
#include "base/macros.h" |
#include "base/memory/ref_counted.h" |
#include "base/strings/string16.h" |
+#include "components/search_engines/template_url_data.h" |
#include "components/search_engines/template_url_service_observer.h" |
class GURL; |
@@ -20,6 +21,15 @@ class TemplateURLService; |
class TestingProfile; |
class TestingSearchTermsData; |
+// Sets the managed preferences for the default search provider. |
+// enabled arg enables/disables use of managed engine by DefaultSearchManager. |
+void SetManagedDefaultSearchPreferences(const TemplateURLData& managed_data, |
+ bool enabled, |
+ TestingProfile* profile); |
+ |
+// Removes all the managed preferences for the default search provider. |
+void RemoveManagedDefaultSearchPreferences(TestingProfile* profile); |
+ |
class TemplateURLServiceTestUtil : public TemplateURLServiceObserver { |
public: |
TemplateURLServiceTestUtil(); |
@@ -55,24 +65,6 @@ class TemplateURLServiceTestUtil : public TemplateURLServiceObserver { |
// Sets the google base url. |base_url| must be valid. |
void SetGoogleBaseURL(const GURL& base_url); |
- // Sets the managed preferences for the default search provider and trigger |
- // notification. If |alternate_url| is empty, uses an empty list of alternate |
- // URLs, otherwise uses a list containing a single entry. |
- void 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); |
- |
- // Removes all the managed preferences for the default search provider and |
- // triggers notification. |
- void RemoveManagedDefaultSearchPreferences(); |
- |
KeywordWebDataService* web_data_service() { return web_data_service_.get(); } |
TemplateURLService* model() { return model_.get(); } |
TestingProfile* profile() { return profile_.get(); } |