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

Unified Diff: chrome/test/testing_pref_service.h

Issue 3032058: Move creation of the PrefStores into the PrefValueStore, to reduce the knowle... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Comment-only changes Created 10 years, 4 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/test/testing_pref_service.h
===================================================================
--- chrome/test/testing_pref_service.h (revision 55061)
+++ chrome/test/testing_pref_service.h (working copy)
@@ -8,11 +8,23 @@
#include <chrome/browser/pref_service.h>
+class PrefStore;
+
// A PrefService subclass for testing. It operates totally in memory and
// provides additional API for manipulating preferences at the different levels
// (managed, extension, user) conveniently.
class TestingPrefService : public PrefService {
public:
+ // Subclass to allow directly setting PrefStores.
+ class TestingPrefValueStore : public PrefValueStore {
+ public:
+ TestingPrefValueStore(PrefStore* managed_prefs,
+ PrefStore* extension_prefs,
+ PrefStore* command_line_prefs,
+ PrefStore* user_prefs,
+ PrefStore* recommended_prefs);
+ };
+
// Create an empty instance.
TestingPrefService();
Property changes on: chrome\test\testing_pref_service.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698