summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/mock_appcache_service.h
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/appcache/mock_appcache_service.h')
-rw-r--r--webkit/appcache/mock_appcache_service.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/webkit/appcache/mock_appcache_service.h b/webkit/appcache/mock_appcache_service.h
new file mode 100644
index 0000000..705dc0e
--- /dev/null
+++ b/webkit/appcache/mock_appcache_service.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_APPCACHE_MOCK_APPCACHE_SERVICE_H_
+#define WEBKIT_APPCACHE_MOCK_APPCACHE_SERVICE_H_
+
+#include "base/compiler_specific.h"
+#include "webkit/appcache/appcache_service.h"
+#include "webkit/appcache/mock_appcache_storage.h"
+
+namespace appcache {
+
+// For use by unit tests.
+class MockAppCacheService : public AppCacheService {
+ public:
+ MockAppCacheService() {
+ storage_.reset(new MockAppCacheStorage(this));
+ }
+};
+
+} // namespace appcache
+
+#endif // WEBKIT_APPCACHE_MOCK_APPCACHE_SERVICE_H_