| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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/path_service.h" | 7 #include "base/path_service.h" |
| 8 #include "base/platform_thread.h" | 8 #include "base/platform_thread.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "net/base/io_buffer.h" | 10 #include "net/base/io_buffer.h" |
| (...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 | 1300 |
| 1301 TEST_F(DiskCacheBackendTest, NewEvictionDisableSuccess2) { | 1301 TEST_F(DiskCacheBackendTest, NewEvictionDisableSuccess2) { |
| 1302 ASSERT_TRUE(CopyTestCache(L"list_loop")); | 1302 ASSERT_TRUE(CopyTestCache(L"list_loop")); |
| 1303 DisableFirstCleanup(); | 1303 DisableFirstCleanup(); |
| 1304 SetNewEviction(); | 1304 SetNewEviction(); |
| 1305 SetDirectMode(); | 1305 SetDirectMode(); |
| 1306 InitCache(); | 1306 InitCache(); |
| 1307 BackendDisable2(); | 1307 BackendDisable2(); |
| 1308 } | 1308 } |
| 1309 | 1309 |
| 1310 TEST_F(DiskCacheBackendTest, DisableFailure2) { | 1310 // http://code.google.com/p/chromium/issues/detail?id=38562 |
| 1311 TEST_F(DiskCacheBackendTest, DISABLED_DisableFailure2) { |
| 1311 ASSERT_TRUE(CopyTestCache(L"list_loop")); | 1312 ASSERT_TRUE(CopyTestCache(L"list_loop")); |
| 1312 DisableFirstCleanup(); | 1313 DisableFirstCleanup(); |
| 1313 SetDirectMode(); | 1314 SetDirectMode(); |
| 1314 InitCache(); | 1315 InitCache(); |
| 1315 SetTestMode(); // Fail cache reinitialization. | 1316 SetTestMode(); // Fail cache reinitialization. |
| 1316 BackendDisable2(); | 1317 BackendDisable2(); |
| 1317 } | 1318 } |
| 1318 | 1319 |
| 1319 TEST_F(DiskCacheBackendTest, NewEvictionDisableFailure2) { | 1320 TEST_F(DiskCacheBackendTest, NewEvictionDisableFailure2) { |
| 1320 ASSERT_TRUE(CopyTestCache(L"list_loop")); | 1321 ASSERT_TRUE(CopyTestCache(L"list_loop")); |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1577 EXPECT_EQ(kDefaultSize * 5 / 2, | 1578 EXPECT_EQ(kDefaultSize * 5 / 2, |
| 1578 disk_cache::PreferedCacheSize(large_size * 100 / 2)); | 1579 disk_cache::PreferedCacheSize(large_size * 100 / 2)); |
| 1579 EXPECT_EQ(kDefaultSize * 5 / 2, | 1580 EXPECT_EQ(kDefaultSize * 5 / 2, |
| 1580 disk_cache::PreferedCacheSize(large_size * 500 / 2)); | 1581 disk_cache::PreferedCacheSize(large_size * 500 / 2)); |
| 1581 | 1582 |
| 1582 EXPECT_EQ(kDefaultSize * 6 / 2, | 1583 EXPECT_EQ(kDefaultSize * 6 / 2, |
| 1583 disk_cache::PreferedCacheSize(large_size * 600 / 2)); | 1584 disk_cache::PreferedCacheSize(large_size * 600 / 2)); |
| 1584 EXPECT_EQ(kDefaultSize * 7 / 2, | 1585 EXPECT_EQ(kDefaultSize * 7 / 2, |
| 1585 disk_cache::PreferedCacheSize(large_size * 700 / 2)); | 1586 disk_cache::PreferedCacheSize(large_size * 700 / 2)); |
| 1586 } | 1587 } |
| OLD | NEW |