diff options
author | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-16 13:31:48 +0000 |
---|---|---|
committer | pliard@chromium.org <pliard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-16 13:31:48 +0000 |
commit | 18fc33bb74c62babf58f929ef217ae4812502c22 (patch) | |
tree | 283fb3df38b95d5d6c441d18b38ad72b3ab5a065 /net/disk_cache/backend_unittest.cc | |
parent | 5c01d9cdf1fea994b5393cb32dbff1c84a3575f3 (diff) | |
download | chromium_src-18fc33bb74c62babf58f929ef217ae4812502c22.zip chromium_src-18fc33bb74c62babf58f929ef217ae4812502c22.tar.gz chromium_src-18fc33bb74c62babf58f929ef217ae4812502c22.tar.bz2 |
Make simple cache not use optimistic operations for APP_CACHE.
This is needed as part of the default disk backend -> simple backend migration
for app cache (on Android).
This CL also enables a few unit tests in app cache mode with the simple
backend.
BUG=257616
R=gavinp@chromium.org
Review URL: https://codereview.chromium.org/18392005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/backend_unittest.cc')
-rw-r--r-- | net/disk_cache/backend_unittest.cc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/net/disk_cache/backend_unittest.cc b/net/disk_cache/backend_unittest.cc index 91b9a14..ff8df1f 100644 --- a/net/disk_cache/backend_unittest.cc +++ b/net/disk_cache/backend_unittest.cc @@ -2886,11 +2886,22 @@ TEST_F(DiskCacheBackendTest, SimpleCacheBasics) { BackendBasics(); } +TEST_F(DiskCacheBackendTest, SimpleCacheAppCacheBasics) { + SetCacheType(net::APP_CACHE); + SetSimpleCacheMode(); + BackendBasics(); +} + TEST_F(DiskCacheBackendTest, SimpleCacheKeying) { SetSimpleCacheMode(); BackendKeying(); } +TEST_F(DiskCacheBackendTest, SimpleCacheAppCacheKeying) { + SetSimpleCacheMode(); + SetCacheType(net::APP_CACHE); + BackendKeying(); +} TEST_F(DiskCacheBackendTest, DISABLED_SimpleCacheSetSize) { SetSimpleCacheMode(); @@ -2910,6 +2921,25 @@ TEST_F(DiskCacheBackendTest, MAYBE_SimpleCacheLoad) { BackendLoad(); } +TEST_F(DiskCacheBackendTest, SimpleCacheAppCacheLoad) { + SetCacheType(net::APP_CACHE); + SetSimpleCacheMode(); + SetMaxSize(0x100000); + BackendLoad(); +} + +TEST_F(DiskCacheBackendTest, SimpleCacheAppCacheChain) { + SetCacheType(net::APP_CACHE); + SetSimpleCacheMode(); + BackendChain(); +} + +TEST_F(DiskCacheBackendTest, SimpleCacheAppCacheEnumerations2) { + SetCacheType(net::APP_CACHE); + SetSimpleCacheMode(); + BackendEnumerations2(); +} + TEST_F(DiskCacheBackendTest, SimpleDoomRecent) { SetSimpleCacheMode(); BackendDoomRecent(); @@ -2926,6 +2956,12 @@ TEST_F(DiskCacheBackendTest, FLAKY_SimpleCacheDoomAll) { BackendDoomAll(); } +TEST_F(DiskCacheBackendTest, SimpleCacheAppCacheOnlyDoomAll) { + SetCacheType(net::APP_CACHE); + SetSimpleCacheMode(); + BackendDoomAll(); +} + TEST_F(DiskCacheBackendTest, SimpleCacheTracingBackendBasics) { SetSimpleCacheMode(); TracingBackendBasics(); |