summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/mock_appcache_storage_unittest.cc
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-21 02:39:40 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-21 02:39:40 +0000
commit9b7a0c551268395816959eb8df1c44086583824e (patch)
tree2be7bdf092e8776b0161b0eff83c0122626dc5bf /webkit/appcache/mock_appcache_storage_unittest.cc
parent6f526b9ac1ec6fb252d3cfe1f625a694d76f643f (diff)
downloadchromium_src-9b7a0c551268395816959eb8df1c44086583824e.zip
chromium_src-9b7a0c551268395816959eb8df1c44086583824e.tar.gz
chromium_src-9b7a0c551268395816959eb8df1c44086583824e.tar.bz2
Enforce a hard coded 5MB per origin quota for appcache storage.
TEST=yes BUG=none Review URL: http://codereview.chromium.org/554008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/mock_appcache_storage_unittest.cc')
-rw-r--r--webkit/appcache/mock_appcache_storage_unittest.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/webkit/appcache/mock_appcache_storage_unittest.cc b/webkit/appcache/mock_appcache_storage_unittest.cc
index 521c967..77e6558 100644
--- a/webkit/appcache/mock_appcache_storage_unittest.cc
+++ b/webkit/appcache/mock_appcache_storage_unittest.cc
@@ -209,7 +209,6 @@ TEST_F(MockAppCacheStorageTest, StoreNewGroup) {
new AppCacheGroup(&service, manifest_url, 111);
int64 cache_id = storage->NewCacheId();
scoped_refptr<AppCache> cache = new AppCache(&service, cache_id);
- cache->set_complete(true);
// Hold a ref to the cache simulate the UpdateJob holding that ref,
// and hold a ref to the group to simulate the CacheHost holding that ref.
@@ -226,6 +225,7 @@ TEST_F(MockAppCacheStorageTest, StoreNewGroup) {
EXPECT_FALSE(storage->stored_caches_.empty());
EXPECT_FALSE(storage->stored_groups_.empty());
EXPECT_EQ(cache, group->newest_complete_cache());
+ EXPECT_TRUE(cache->is_complete());
}
TEST_F(MockAppCacheStorageTest, StoreExistingGroup) {
@@ -247,7 +247,6 @@ TEST_F(MockAppCacheStorageTest, StoreExistingGroup) {
storage->AddStoredCache(old_cache);
int64 new_cache_id = storage->NewCacheId();
scoped_refptr<AppCache> new_cache = new AppCache(&service, new_cache_id);
- new_cache->set_complete(true);
// Hold our refs to simulate the UpdateJob holding these refs.
// Conduct the test.
@@ -269,6 +268,7 @@ TEST_F(MockAppCacheStorageTest, StoreExistingGroup) {
EXPECT_FALSE(storage->IsCacheStored(old_cache));
EXPECT_TRUE(storage->IsCacheStored(new_cache));
EXPECT_EQ(new_cache.get(), group->newest_complete_cache());
+ EXPECT_TRUE(new_cache->is_complete());
}
TEST_F(MockAppCacheStorageTest, StoreExistingGroupExistingCache) {