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 3095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3106 SetSimpleCacheMode(); | 3106 SetSimpleCacheMode(); |
3107 BackendDoomRecent(); | 3107 BackendDoomRecent(); |
3108 } | 3108 } |
3109 | 3109 |
3110 TEST_F(DiskCacheBackendTest, SimpleDoomBetween) { | 3110 TEST_F(DiskCacheBackendTest, SimpleDoomBetween) { |
3111 SetSimpleCacheMode(); | 3111 SetSimpleCacheMode(); |
3112 BackendDoomBetween(); | 3112 BackendDoomBetween(); |
3113 } | 3113 } |
3114 | 3114 |
3115 // See http://crbug.com/237450. | 3115 // See http://crbug.com/237450. |
3116 TEST_F(DiskCacheBackendTest, FLAKY_SimpleCacheDoomAll) { | 3116 // TODO(gavinp): Consider enabling this test again when |
| 3117 // https://codereview.chromium.org/23823002/ lands. |
| 3118 TEST_F(DiskCacheBackendTest, DISABLED_SimpleCacheDoomAll) { |
3117 SetSimpleCacheMode(); | 3119 SetSimpleCacheMode(); |
3118 BackendDoomAll(); | 3120 BackendDoomAll(); |
3119 } | 3121 } |
3120 | 3122 |
3121 TEST_F(DiskCacheBackendTest, FLAKY_SimpleCacheAppCacheOnlyDoomAll) { | 3123 TEST_F(DiskCacheBackendTest, FLAKY_SimpleCacheAppCacheOnlyDoomAll) { |
3122 SetCacheType(net::APP_CACHE); | 3124 SetCacheType(net::APP_CACHE); |
3123 SetSimpleCacheMode(); | 3125 SetSimpleCacheMode(); |
3124 BackendDoomAll(); | 3126 BackendDoomAll(); |
3125 } | 3127 } |
3126 | 3128 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3407 void* iter = NULL; | 3409 void* iter = NULL; |
3408 size_t count = 0; | 3410 size_t count = 0; |
3409 ASSERT_TRUE(EnumerateAndMatchKeys(-1, &iter, &keys_to_match, &count)); | 3411 ASSERT_TRUE(EnumerateAndMatchKeys(-1, &iter, &keys_to_match, &count)); |
3410 cache_->EndEnumeration(&iter); | 3412 cache_->EndEnumeration(&iter); |
3411 | 3413 |
3412 EXPECT_EQ(key_pool.size(), count); | 3414 EXPECT_EQ(key_pool.size(), count); |
3413 EXPECT_TRUE(keys_to_match.empty()); | 3415 EXPECT_TRUE(keys_to_match.empty()); |
3414 } | 3416 } |
3415 | 3417 |
3416 #endif // !defined(OS_WIN) | 3418 #endif // !defined(OS_WIN) |
OLD | NEW |