summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_host_unittest.cc
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-24 01:18:13 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-24 01:18:13 +0000
commit64144178c9070dd0e08abf0a70c5da87af0f1722 (patch)
treeab523e1e230670629abf8105a557e4f1d2da5599 /webkit/appcache/appcache_host_unittest.cc
parent43c6dae7c9d9dc3cf639a4ada168d880b800e34b (diff)
downloadchromium_src-64144178c9070dd0e08abf0a70c5da87af0f1722.zip
chromium_src-64144178c9070dd0e08abf0a70c5da87af0f1722.tar.gz
chromium_src-64144178c9070dd0e08abf0a70c5da87af0f1722.tar.bz2
A mind numbing change to add the notion of a persistent groupId, and to get rid of the notion of an entryId.
TEST=existing tests apply BUG=none Review URL: http://codereview.chromium.org/432012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32895 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_host_unittest.cc')
-rw-r--r--webkit/appcache/appcache_host_unittest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/webkit/appcache/appcache_host_unittest.cc b/webkit/appcache/appcache_host_unittest.cc
index b92443c..f726d9e 100644
--- a/webkit/appcache/appcache_host_unittest.cc
+++ b/webkit/appcache/appcache_host_unittest.cc
@@ -235,7 +235,8 @@ TEST_F(AppCacheHostTest, SetSwappableCache) {
EXPECT_FALSE(host.swappable_cache_.get());
scoped_refptr<AppCacheGroup> group1 =
- new AppCacheGroup(&service_, GURL::EmptyGURL());
+ new AppCacheGroup(&service_, GURL::EmptyGURL(),
+ service_.storage()->NewGroupId());
host.SetSwappableCache(group1);
EXPECT_FALSE(host.swappable_cache_.get());
@@ -261,7 +262,8 @@ TEST_F(AppCacheHostTest, SetSwappableCache) {
EXPECT_EQ(cache2, host.swappable_cache_.get()); // updated to newest
scoped_refptr<AppCacheGroup> group2 =
- new AppCacheGroup(&service_, GURL("http://foo.com"));
+ new AppCacheGroup(&service_, GURL("http://foo.com"),
+ service_.storage()->NewGroupId());
AppCache* cache3 = new AppCache(&service_, 333);
cache3->set_complete(true);
group2->AddCache(cache3);