summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell
diff options
context:
space:
mode:
authormichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-24 21:42:25 +0000
committermichaeln@google.com <michaeln@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-24 21:42:25 +0000
commit550890ec7f1cf968abc4544b170e97a67f919902 (patch)
tree632dec32bed5266837a2668a9225d303303e3160 /webkit/tools/test_shell
parented249ab7916d438b0bdb650a796aaf709f6ae1ae (diff)
downloadchromium_src-550890ec7f1cf968abc4544b170e97a67f919902.zip
chromium_src-550890ec7f1cf968abc4544b170e97a67f919902.tar.gz
chromium_src-550890ec7f1cf968abc4544b170e97a67f919902.tar.bz2
MockAppCacheStorage implemention
This is a quick and easy 'mock' implementation of the storage interface that doesn't put anything to disk. We simply add an extra reference to objects when they're put in storage, and remove the extra reference when they are removed from storage. Responses are never really removed from the in-memory disk cache. Delegate callbacks are made asyncly to appropiately mimic what will happen with a real disk-backed storage impl that involves IO on a background thread. This is for use in unit tests and to initially bring up the appcache related layout tests. TEST=mock_appcache_storage_unittest.cc BUG=none Review URL: http://codereview.chromium.org/300043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell')
-rw-r--r--webkit/tools/test_shell/test_shell.gyp1
1 files changed, 1 insertions, 0 deletions
diff --git a/webkit/tools/test_shell/test_shell.gyp b/webkit/tools/test_shell/test_shell.gyp
index 5c6e100..e33f443 100644
--- a/webkit/tools/test_shell/test_shell.gyp
+++ b/webkit/tools/test_shell/test_shell.gyp
@@ -372,6 +372,7 @@
'../../appcache/appcache_storage_unittest.cc',
'../../appcache/appcache_update_job_unittest.cc',
'../../appcache/mock_appcache_service.h',
+ '../../appcache/mock_appcache_storage_unittest.cc',
'../../glue/bookmarklet_unittest.cc',
'../../glue/context_menu_unittest.cc',
'../../glue/cpp_bound_class_unittest.cc',