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

Unified Diff: chrome/browser/prefs/pref_service_mock_factory.h

Issue 64193003: Clean up PrefServiceBuilder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix memory ownership bug in ProxyPolicyTest Created 7 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/prefs/pref_service_mock_factory.h
diff --git a/chrome/browser/ui/webui/options/font_settings_utils_win.cc b/chrome/browser/prefs/pref_service_mock_factory.h
similarity index 34%
copy from chrome/browser/ui/webui/options/font_settings_utils_win.cc
copy to chrome/browser/prefs/pref_service_mock_factory.h
index c96c27f968daa1acb61d71413a819cf9e252f286..974d459a29999043221620a4c4ef3f11092f011a 100644
--- a/chrome/browser/ui/webui/options/font_settings_utils_win.cc
+++ b/chrome/browser/prefs/pref_service_mock_factory.h
@@ -2,13 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/webui/options/font_settings_utils.h"
+#ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_FACTORY_H_
+#define CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_FACTORY_H_
-namespace options {
+#include "chrome/browser/prefs/pref_service_syncable_factory.h"
-// static
-void FontSettingsUtilities::ValidateSavedFonts(PrefService* prefs) {
- // Nothing to do for Windows.
-}
+// A helper that allows convenient building of custom PrefServices in tests.
+class PrefServiceMockFactory : public PrefServiceSyncableFactory {
+ public:
+ PrefServiceMockFactory();
+ virtual ~PrefServiceMockFactory();
-} // namespace options
+ private:
+ DISALLOW_COPY_AND_ASSIGN(PrefServiceMockFactory);
+};
+
+#endif // CHROME_BROWSER_PREFS_PREF_SERVICE_MOCK_FACTORY_H_
« no previous file with comments | « chrome/browser/prefs/pref_service_mock_builder.cc ('k') | chrome/browser/prefs/pref_service_mock_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698