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

Unified Diff: chrome/browser/json_pref_store_unittest.cc

Issue 1692011: Implementation of managed policy: Policy Abstraction (Closed)
Patch Set: check no changes Created 10 years, 7 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/json_pref_store.h ('k') | chrome/browser/pref_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/json_pref_store_unittest.cc
diff --git a/chrome/browser/json_pref_store_unittest.cc b/chrome/browser/json_pref_store_unittest.cc
index 05fcf66bc1bfc56678e7ddb230ce7f456bdf44d1..de22695bb6cb19553861cf599a4049b24b43c5a3 100644
--- a/chrome/browser/json_pref_store_unittest.cc
+++ b/chrome/browser/json_pref_store_unittest.cc
@@ -51,7 +51,7 @@ TEST_F(JsonPrefStoreTest, NonExistentFile) {
JsonPrefStore pref_store(bogus_input_file);
EXPECT_EQ(PrefStore::PREF_READ_ERROR_NO_FILE, pref_store.ReadPrefs());
EXPECT_FALSE(pref_store.ReadOnly());
- EXPECT_TRUE(pref_store.Prefs()->empty());
+ EXPECT_TRUE(pref_store.prefs()->empty());
}
// Test fallback behavior for an invalid file.
@@ -62,7 +62,7 @@ TEST_F(JsonPrefStoreTest, InvalidFile) {
JsonPrefStore pref_store(invalid_file);
EXPECT_EQ(PrefStore::PREF_READ_ERROR_JSON_PARSE, pref_store.ReadPrefs());
EXPECT_FALSE(pref_store.ReadOnly());
- EXPECT_TRUE(pref_store.Prefs()->empty());
+ EXPECT_TRUE(pref_store.prefs()->empty());
// The file should have been moved aside.
EXPECT_FALSE(file_util::PathExists(invalid_file));
@@ -82,7 +82,7 @@ TEST_F(JsonPrefStoreTest, Basic) {
JsonPrefStore pref_store(input_file);
ASSERT_EQ(PrefStore::PREF_READ_ERROR_NONE, pref_store.ReadPrefs());
ASSERT_FALSE(pref_store.ReadOnly());
- DictionaryValue* prefs = pref_store.Prefs();
+ DictionaryValue* prefs = pref_store.prefs();
// The JSON file looks like this:
// {
« no previous file with comments | « chrome/browser/json_pref_store.h ('k') | chrome/browser/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698