diff options
author | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 00:09:21 +0000 |
---|---|---|
committer | michaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-09 00:09:21 +0000 |
commit | 3367fc1dd134eeaf9ab6e62397f05ad3964319fe (patch) | |
tree | 78fb4d7ac912bbaf47b64f0aaefef331906b5fca /webkit/appcache/mock_appcache_storage_unittest.cc | |
parent | 9f9e1fcbbd52267fa657b3b0b80ece683ceb6dd6 (diff) | |
download | chromium_src-3367fc1dd134eeaf9ab6e62397f05ad3964319fe.zip chromium_src-3367fc1dd134eeaf9ab6e62397f05ad3964319fe.tar.gz chromium_src-3367fc1dd134eeaf9ab6e62397f05ad3964319fe.tar.bz2 |
AppCache changes to the networking model. Added new classes AppCacheRequestHandler and AppCacheURLRequestJob.
TEST=appcache_url_request_job_unittest.cc, appcache_request_handler_unittest.cc
BUG=none
Review URL: http://codereview.chromium.org/338034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31411 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/mock_appcache_storage_unittest.cc')
-rw-r--r-- | webkit/appcache/mock_appcache_storage_unittest.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webkit/appcache/mock_appcache_storage_unittest.cc b/webkit/appcache/mock_appcache_storage_unittest.cc index 60cd801..911ec7c 100644 --- a/webkit/appcache/mock_appcache_storage_unittest.cc +++ b/webkit/appcache/mock_appcache_storage_unittest.cc @@ -42,9 +42,11 @@ class MockAppCacheStorageTest : public testing::Test { } void OnMainResponseFound(const GURL& url, const AppCacheEntry& entry, + const AppCacheEntry& fallback_entry, int64 cache_id, const GURL& manifest_url) { found_url_ = url; found_entry_ = entry; + found_fallback_entry_ = fallback_entry; found_cache_id_ = cache_id; found_manifest_url_ = manifest_url; } @@ -59,6 +61,7 @@ class MockAppCacheStorageTest : public testing::Test { bool obsoleted_success_; GURL found_url_; AppCacheEntry found_entry_; + AppCacheEntry found_fallback_entry_; int64 found_cache_id_; GURL found_manifest_url_; }; @@ -351,7 +354,9 @@ TEST_F(MockAppCacheStorageTest, FindNoMainResponse) { EXPECT_TRUE(delegate.found_manifest_url_.is_empty()); EXPECT_EQ(kNoCacheId, delegate.found_cache_id_); EXPECT_EQ(kNoResponseId, delegate.found_entry_.response_id()); + EXPECT_EQ(kNoResponseId, delegate.found_fallback_entry_.response_id()); EXPECT_EQ(0, delegate.found_entry_.types()); + EXPECT_EQ(0, delegate.found_fallback_entry_.types()); } } // namespace appcache |