Index: webkit/appcache/appcache_storage_impl_unittest.cc |
=================================================================== |
--- webkit/appcache/appcache_storage_impl_unittest.cc (revision 88004) |
+++ webkit/appcache/appcache_storage_impl_unittest.cc (working copy) |
@@ -354,7 +354,7 @@ |
// Since the origin has groups, storage class will have to |
// consult the database and completion will be async. |
- storage()->origins_with_groups_.insert(kManifestUrl.GetOrigin()); |
+ storage()->usage_map_[kManifestUrl.GetOrigin()] = 10; |
storage()->LoadOrCreateGroup(kManifestUrl, delegate()); |
EXPECT_FALSE(delegate()->loaded_group_.get()); |
@@ -590,7 +590,7 @@ |
// Setup some preconditions. Create a group and newest cache that |
// appears to be "stored" and "currently in use". |
MakeCacheAndGroup(kManifestUrl, 1, 1, true); |
- EXPECT_FALSE(storage()->origins_with_groups_.empty()); |
+ EXPECT_FALSE(storage()->usage_map_.empty()); |
// Also insert some related records. |
AppCacheDatabase::EntryRecord entry_record; |
@@ -622,7 +622,7 @@ |
EXPECT_TRUE(delegate()->obsoleted_success_); |
EXPECT_EQ(group_.get(), delegate()->obsoleted_group_.get()); |
EXPECT_TRUE(group_->is_obsolete()); |
- EXPECT_TRUE(storage()->origins_with_groups_.empty()); |
+ EXPECT_TRUE(storage()->usage_map_.empty()); |
// The cache and group have been deleted from the database. |
AppCacheDatabase::GroupRecord group_record; |
@@ -1141,7 +1141,7 @@ |
cache_record.online_wildcard = false; |
cache_record.update_time = kZeroTime; |
EXPECT_TRUE(database()->InsertCache(&cache_record)); |
- storage()->origins_with_groups_.insert(manifest_url.GetOrigin()); |
+ storage()->usage_map_[manifest_url.GetOrigin()] = 10; |
} |
} |