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

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

Issue 329093003: Remove unloaded profile hash store initialization, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove more code. 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 9ef2a0490650fc5a64b8ddf84136a1e3e4100fd2..789fd1a24a27bae5bfbea88d1f6040f2cdd9bbf1 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
@@ -68,34 +68,6 @@ TEST_F(PrefServiceHashStoreContentsTest, Reset) {
}
}
-TEST_F(PrefServiceHashStoreContentsTest, GetAndSetVersion) {
- int version = 0;
- {
- PrefServiceHashStoreContents contents("store_id", &local_state_);
- ASSERT_FALSE(contents.GetVersion(&version));
- (*contents.GetMutableContents())->Set("foo", new base::StringValue("bar"));
- ASSERT_FALSE(contents.GetVersion(&version));
- }
- {
- PrefServiceHashStoreContents contents("store_id", &local_state_);
- ASSERT_FALSE(contents.GetVersion(&version));
- contents.SetVersion(1);
- ASSERT_TRUE(contents.GetVersion(&version));
- ASSERT_EQ(1, version);
- }
-
- version = 0;
-
- {
- PrefServiceHashStoreContents contents("store_id", &local_state_);
- ASSERT_TRUE(contents.GetVersion(&version));
- ASSERT_EQ(1, version);
- PrefServiceHashStoreContents other_contents("other_store_id",
- &local_state_);
- ASSERT_FALSE(other_contents.GetVersion(&version));
- }
-}
-
TEST_F(PrefServiceHashStoreContentsTest, GetAndSetContents) {
{
PrefServiceHashStoreContents contents("store_id", &local_state_);

Powered by Google App Engine
This is Rietveld 408576698