diff options
author | kkanetkar@chromium.org <kkanetkar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 03:14:37 +0000 |
---|---|---|
committer | kkanetkar@chromium.org <kkanetkar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-28 03:14:37 +0000 |
commit | ec5c192817606b55ad99edb256997b70eea41b85 (patch) | |
tree | 16e863d9b1fa02f029c050b028177b7c984da6eb /webkit/appcache/appcache_group_unittest.cc | |
parent | 16d35b25ec19b82c13dc7cd24f744951cc12fad0 (diff) | |
download | chromium_src-ec5c192817606b55ad99edb256997b70eea41b85.zip chromium_src-ec5c192817606b55ad99edb256997b70eea41b85.tar.gz chromium_src-ec5c192817606b55ad99edb256997b70eea41b85.tar.bz2 |
Chrome side of changes required to populate appcache resource list.
BUG = 2821005
TEST = Manually navigate.
Review URL: http://codereview.chromium.org/3009005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@53902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_group_unittest.cc')
-rw-r--r-- | webkit/appcache/appcache_group_unittest.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/webkit/appcache/appcache_group_unittest.cc b/webkit/appcache/appcache_group_unittest.cc index 2c6ed14..128fbc7 100644 --- a/webkit/appcache/appcache_group_unittest.cc +++ b/webkit/appcache/appcache_group_unittest.cc @@ -2,12 +2,15 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include <string> + #include "testing/gtest/include/gtest/gtest.h" #include "webkit/appcache/appcache.h" #include "webkit/appcache/appcache_group.h" #include "webkit/appcache/appcache_host.h" #include "webkit/appcache/mock_appcache_service.h" #include "webkit/appcache/appcache_update_job.h" +#include "webkit/appcache/appcache_interfaces.h" namespace { @@ -18,11 +21,11 @@ class TestAppCacheFrontend : public appcache::AppCacheFrontend { last_status_(appcache::OBSOLETE) { } - virtual void OnCacheSelected(int host_id, int64 cache_id , - appcache::Status status) { + virtual void OnCacheSelected( + int host_id, const appcache::AppCacheInfo& info) { last_host_id_ = host_id; - last_cache_id_ = cache_id; - last_status_ = status; + last_cache_id_ = info.cache_id; + last_status_ = info.status; } virtual void OnStatusChanged(const std::vector<int>& host_ids, |