diff options
Diffstat (limited to 'webkit/appcache/appcache_storage_impl_unittest.cc')
-rw-r--r-- | webkit/appcache/appcache_storage_impl_unittest.cc | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/webkit/appcache/appcache_storage_impl_unittest.cc b/webkit/appcache/appcache_storage_impl_unittest.cc index 2f25b65..1d874bc 100644 --- a/webkit/appcache/appcache_storage_impl_unittest.cc +++ b/webkit/appcache/appcache_storage_impl_unittest.cc @@ -547,19 +547,14 @@ class AppCacheStorageImplTest : public testing::Test { PushNextTask(NewRunnableMethod( this, &AppCacheStorageImplTest::Verify_FailStoreGroup)); - // Set a low quota to force a failure. - const GURL kOrigin(kManifestUrl.GetOrigin()); - EXPECT_EQ(-1L, storage()->GetOriginQuotaInMemory(kOrigin)); - storage()->SetOriginQuotaInMemory(kManifestUrl.GetOrigin(), 0); - EXPECT_EQ(0L, storage()->GetOriginQuotaInMemory(kOrigin)); - // Setup some preconditions. Create a group and newest cache that - // appear to be "unstored". + // appear to be "unstored" and big enough to exceed the 5M limit. + const int64 kTooBig = 10 * 1024 * 1024; // 10M group_ = new AppCacheGroup( service(), kManifestUrl, storage()->NewGroupId()); cache_ = new AppCache(service(), storage()->NewCacheId()); cache_->AddEntry(kManifestUrl, - AppCacheEntry(AppCacheEntry::MANIFEST, 1, 1024)); + AppCacheEntry(AppCacheEntry::MANIFEST, 1, kTooBig)); // 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. @@ -578,10 +573,6 @@ class AppCacheStorageImplTest : public testing::Test { EXPECT_FALSE(database()->FindGroup(group_->group_id(), &group_record)); EXPECT_FALSE(database()->FindCache(cache_->cache_id(), &cache_record)); - const GURL kOrigin(kManifestUrl.GetOrigin()); - storage()->ResetOriginQuotaInMemory(kOrigin); - EXPECT_EQ(-1L, storage()->GetOriginQuotaInMemory(kOrigin)); - TestFinished(); } |