OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "base/file_util.h" | 6 #include "base/file_util.h" |
7 #include "base/metrics/field_trial.h" | 7 #include "base/metrics/field_trial.h" |
8 #include "base/port.h" | 8 #include "base/port.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 3192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3203 TEST_F(DiskCacheBackendTest, SimpleDoomRecent) { | 3203 TEST_F(DiskCacheBackendTest, SimpleDoomRecent) { |
3204 SetSimpleCacheMode(); | 3204 SetSimpleCacheMode(); |
3205 BackendDoomRecent(); | 3205 BackendDoomRecent(); |
3206 } | 3206 } |
3207 | 3207 |
3208 TEST_F(DiskCacheBackendTest, SimpleDoomBetween) { | 3208 TEST_F(DiskCacheBackendTest, SimpleDoomBetween) { |
3209 SetSimpleCacheMode(); | 3209 SetSimpleCacheMode(); |
3210 BackendDoomBetween(); | 3210 BackendDoomBetween(); |
3211 } | 3211 } |
3212 | 3212 |
3213 // See http://crbug.com/237450. | 3213 TEST_F(DiskCacheBackendTest, SimpleCacheDoomAll) { |
3214 // TODO(gavinp): Consider enabling this test again when | |
3215 // https://codereview.chromium.org/23823002/ lands. | |
3216 TEST_F(DiskCacheBackendTest, DISABLED_SimpleCacheDoomAll) { | |
3217 SetSimpleCacheMode(); | 3214 SetSimpleCacheMode(); |
3218 BackendDoomAll(); | 3215 BackendDoomAll(); |
3219 } | 3216 } |
3220 | 3217 |
3221 TEST_F(DiskCacheBackendTest, FLAKY_SimpleCacheAppCacheOnlyDoomAll) { | 3218 TEST_F(DiskCacheBackendTest, FLAKY_SimpleCacheAppCacheOnlyDoomAll) { |
3222 SetCacheType(net::APP_CACHE); | 3219 SetCacheType(net::APP_CACHE); |
3223 SetSimpleCacheMode(); | 3220 SetSimpleCacheMode(); |
3224 BackendDoomAll(); | 3221 BackendDoomAll(); |
3225 } | 3222 } |
3226 | 3223 |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3467 void* iter = NULL; | 3464 void* iter = NULL; |
3468 size_t count = 0; | 3465 size_t count = 0; |
3469 ASSERT_TRUE(EnumerateAndMatchKeys(-1, &iter, &keys_to_match, &count)); | 3466 ASSERT_TRUE(EnumerateAndMatchKeys(-1, &iter, &keys_to_match, &count)); |
3470 cache_->EndEnumeration(&iter); | 3467 cache_->EndEnumeration(&iter); |
3471 | 3468 |
3472 EXPECT_EQ(key_pool.size(), count); | 3469 EXPECT_EQ(key_pool.size(), count); |
3473 EXPECT_TRUE(keys_to_match.empty()); | 3470 EXPECT_TRUE(keys_to_match.empty()); |
3474 } | 3471 } |
3475 | 3472 |
3476 #endif // !defined(OS_WIN) | 3473 #endif // !defined(OS_WIN) |
OLD | NEW |