summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_unittest.cc
diff options
context:
space:
mode:
authormichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-06 22:25:33 +0000
committermichaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-01-06 22:25:33 +0000
commit0dfeec38d00d53b6751a937e43394d6036987698 (patch)
treeb8641d3bd07cbe185deb9f1dba29acb551bb92a2 /webkit/appcache/appcache_unittest.cc
parentf1002ee286ad56e2b80736661e89989b650aad6e (diff)
downloadchromium_src-0dfeec38d00d53b6751a937e43394d6036987698.zip
chromium_src-0dfeec38d00d53b6751a937e43394d6036987698.tar.gz
chromium_src-0dfeec38d00d53b6751a937e43394d6036987698.tar.bz2
AppCache quota tracking groundwork, store response sizes in the SQL database.
TEST=updated existing unittests BUG=none Review URL: http://codereview.chromium.org/525060 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35654 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_unittest.cc')
-rw-r--r--webkit/appcache/appcache_unittest.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/appcache/appcache_unittest.cc b/webkit/appcache/appcache_unittest.cc
index 9f41cd0e7..6177d13 100644
--- a/webkit/appcache/appcache_unittest.cc
+++ b/webkit/appcache/appcache_unittest.cc
@@ -43,11 +43,12 @@ TEST(AppCacheTest, AddModifyEntry) {
const GURL kUrl2("http://bar.com");
AppCacheEntry entry2(AppCacheEntry::FALLBACK);
- cache->AddOrModifyEntry(kUrl2, entry2);
+ EXPECT_TRUE(cache->AddOrModifyEntry(kUrl2, entry2));
EXPECT_EQ(entry2.types(), cache->GetEntry(kUrl2)->types());
+ // Expected to return false when an existing entry is modified.
AppCacheEntry entry3(AppCacheEntry::EXPLICIT);
- cache->AddOrModifyEntry(kUrl1, entry3);
+ EXPECT_FALSE(cache->AddOrModifyEntry(kUrl1, entry3));
EXPECT_EQ((AppCacheEntry::MASTER | AppCacheEntry::EXPLICIT),
cache->GetEntry(kUrl1)->types());
EXPECT_EQ(entry2.types(), cache->GetEntry(kUrl2)->types()); // unchanged