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

Unified Diff: chrome/test/testing_pref_service.h

Issue 6597070: Allow ProxyConfigService to report "no configuration set" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Eric's comments. Created 9 years, 9 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
« no previous file with comments | « chrome/browser/net/resolve_proxy_msg_helper_unittest.cc ('k') | chrome/test/testing_pref_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/testing_pref_service.h
diff --git a/chrome/test/testing_pref_service.h b/chrome/test/testing_pref_service.h
index 56dfc0c6b5e849bfff7f9633d4d3e1e08ad6fea8..fdd2de320dde1c21e2375cd4cf710f21ce41085a 100644
--- a/chrome/test/testing_pref_service.h
+++ b/chrome/test/testing_pref_service.h
@@ -35,10 +35,16 @@ class TestingPrefServiceBase : public PrefService {
void SetUserPref(const char* path, Value* value);
void RemoveUserPref(const char* path);
+ // Similar to the above, but for recommended policy preferences.
+ const Value* GetRecommendedPref(const char* path) const;
+ void SetRecommendedPref(const char* path, Value* value);
+ void RemoveRecommendedPref(const char* path);
+
protected:
TestingPrefServiceBase(
TestingPrefStore* managed_platform_prefs,
- TestingPrefStore* user_prefs);
+ TestingPrefStore* user_prefs,
+ TestingPrefStore* recommended_platform_prefs);
private:
// Reads the value of the preference indicated by |path| from |pref_store|.
@@ -54,6 +60,7 @@ class TestingPrefServiceBase : public PrefService {
// Pointers to the pref stores our value store uses.
scoped_refptr<TestingPrefStore> managed_platform_prefs_;
scoped_refptr<TestingPrefStore> user_prefs_;
+ scoped_refptr<TestingPrefStore> recommended_platform_prefs_;
DISALLOW_COPY_AND_ASSIGN(TestingPrefServiceBase);
};
« no previous file with comments | « chrome/browser/net/resolve_proxy_msg_helper_unittest.cc ('k') | chrome/test/testing_pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698