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: webkit/appcache/appcache_storage_impl_unittest.cc

Issue 7031065: AppCache + Quota integration (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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: 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;
}
}

Powered by Google App Engine
This is Rietveld 408576698