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

Unified Diff: components/search_engines/search_engines_test_util.h

Issue 2623833005: Revert of Make extensions DSE persistent in browser prefs (Closed)
Patch Set: Created 3 years, 11 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: components/search_engines/search_engines_test_util.h
diff --git a/components/search_engines/search_engines_test_util.h b/components/search_engines/search_engines_test_util.h
deleted file mode 100644
index 2d4496f55a47be22c30d72d4e73bdb8e37440da3..0000000000000000000000000000000000000000
--- a/components/search_engines/search_engines_test_util.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_UTIL_H_
-#define COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_UTIL_H_
-
-#include <memory>
-#include <string>
-
-struct TemplateURLData;
-
-namespace sync_preferences {
-class TestingPrefServiceSyncable;
-}
-
-// Generates a TemplateURLData structure useful for tests filled with values
-// autogenerated from |provider_name|.
-std::unique_ptr<TemplateURLData> GenerateDummyTemplateURLData(
- const std::string& provider_name);
-
-// Checks that the two TemplateURLs are similar. Does not check the id, the
-// date_created or the last_modified time. Neither pointer should be null.
-void ExpectSimilar(const TemplateURLData* expected,
- const TemplateURLData* actual);
-
-// Writes default search engine |extension_data| into the extension-controlled
-// preference in |prefs|.
-void SetExtensionDefaultSearchInPrefs(
- sync_preferences::TestingPrefServiceSyncable* prefs,
- const TemplateURLData& extension_data);
-
-// Removes the extension-controlled default search engine preference from
-// |prefs|.
-void RemoveExtensionDefaultSearchFromPrefs(
- sync_preferences::TestingPrefServiceSyncable* prefs);
-
-#endif // COMPONENTS_SEARCH_ENGINES_SEARCH_ENGINES_TEST_UTIL_H_
« no previous file with comments | « components/search_engines/default_search_manager_unittest.cc ('k') | components/search_engines/search_engines_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698