Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(377)

Unified Diff: webkit/appcache/mock_appcache_service.h

Issue 7031065: AppCache + Quota integration (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/appcache/appcache_storage_unittest.cc ('k') | webkit/appcache/mock_appcache_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/appcache/mock_appcache_service.h
===================================================================
--- webkit/appcache/mock_appcache_service.h (revision 88615)
+++ webkit/appcache/mock_appcache_service.h (working copy)
@@ -15,13 +15,30 @@
// For use by unit tests.
class MockAppCacheService : public AppCacheService {
public:
- MockAppCacheService() : AppCacheService(NULL) {
+ MockAppCacheService()
+ : AppCacheService(NULL),
+ mock_delete_appcaches_for_origin_result_(net::OK),
+ delete_called_count_(0) {
storage_.reset(new MockAppCacheStorage(this));
}
+ // Just returns a canned completion code without actually
+ // removing groups and caches in our mock storage instance.
+ virtual void DeleteAppCachesForOrigin(const GURL& origin,
+ net::CompletionCallback* callback);
+
void set_quota_manager_proxy(quota::QuotaManagerProxy* proxy) {
quota_manager_proxy_ = proxy;
}
+
+ void set_mock_delete_appcaches_for_origin_result(int rv) {
+ mock_delete_appcaches_for_origin_result_ = rv;
+ }
+
+ int delete_called_count() const { return delete_called_count_; }
+ private:
+ int mock_delete_appcaches_for_origin_result_;
+ int delete_called_count_;
};
} // namespace appcache
« no previous file with comments | « webkit/appcache/appcache_storage_unittest.cc ('k') | webkit/appcache/mock_appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698