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

Unified Diff: chrome/browser/prefs/tracked/pref_service_hash_store_contents_unittest.cc

Issue 324493002: Move preference MACs to the protected preference stores. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment typo. Created 6 years, 6 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/browser/prefs/tracked/pref_service_hash_store_contents_unittest.cc
diff --git a/chrome/browser/prefs/tracked/pref_service_hash_store_contents_unittest.cc b/chrome/browser/prefs/tracked/pref_service_hash_store_contents_unittest.cc
index 324a5a0c69f710b14827a6bae3ea060d06e1ec28..ac46816f00cfaafea0c47beb17c5c363ef667079 100644
--- a/chrome/browser/prefs/tracked/pref_service_hash_store_contents_unittest.cc
+++ b/chrome/browser/prefs/tracked/pref_service_hash_store_contents_unittest.cc
@@ -9,7 +9,6 @@
#include "base/prefs/pref_service.h"
#include "base/prefs/testing_pref_service.h"
#include "base/values.h"
-#include "chrome/common/pref_names.h"
#include "testing/gtest/include/gtest/gtest.h"
class PrefServiceHashStoreContentsTest : public testing::Test {
@@ -44,7 +43,8 @@ TEST_F(PrefServiceHashStoreContentsTest, IsInitialized) {
}
TEST_F(PrefServiceHashStoreContentsTest, Reset) {
- ASSERT_FALSE(local_state_.GetUserPrefValue(prefs::kProfilePreferenceHashes));
+ ASSERT_FALSE(local_state_.GetUserPrefValue(
+ PrefServiceHashStoreContents::kProfilePreferenceHashes));
{
PrefServiceHashStoreContents contents("store_id", &local_state_);
@@ -57,7 +57,8 @@ TEST_F(PrefServiceHashStoreContentsTest, Reset) {
->Set("foo", new base::StringValue("bar"));
}
- ASSERT_TRUE(local_state_.GetUserPrefValue(prefs::kProfilePreferenceHashes));
+ ASSERT_TRUE(local_state_.GetUserPrefValue(
+ PrefServiceHashStoreContents::kProfilePreferenceHashes));
{
PrefServiceHashStoreContents contents("store_id", &local_state_);
@@ -66,7 +67,8 @@ TEST_F(PrefServiceHashStoreContentsTest, Reset) {
ASSERT_FALSE(contents.IsInitialized());
}
- ASSERT_TRUE(local_state_.GetUserPrefValue(prefs::kProfilePreferenceHashes));
+ ASSERT_TRUE(local_state_.GetUserPrefValue(
+ PrefServiceHashStoreContents::kProfilePreferenceHashes));
{
PrefServiceHashStoreContents contents("store_id", &local_state_);
@@ -82,7 +84,8 @@ TEST_F(PrefServiceHashStoreContentsTest, Reset) {
other_contents.Reset();
}
- ASSERT_FALSE(local_state_.GetUserPrefValue(prefs::kProfilePreferenceHashes));
+ ASSERT_FALSE(local_state_.GetUserPrefValue(
+ PrefServiceHashStoreContents::kProfilePreferenceHashes));
}
TEST_F(PrefServiceHashStoreContentsTest, GetAndSetContents) {

Powered by Google App Engine
This is Rietveld 408576698