Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: net/disk_cache/backend_unittest.cc

Issue 1593001: Disabling the DiskCacheBackendTest.NewEvictionDisableFailure2 as it crashes o... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
1310 // http://code.google.com/p/chromium/issues/detail?id=38562 1310 // http://code.google.com/p/chromium/issues/detail?id=38562
1311 TEST_F(DiskCacheBackendTest, DISABLED_DisableFailure2) { 1311 TEST_F(DiskCacheBackendTest, DISABLED_DisableFailure2) {
1312 ASSERT_TRUE(CopyTestCache(L"list_loop")); 1312 ASSERT_TRUE(CopyTestCache(L"list_loop"));
1313 DisableFirstCleanup(); 1313 DisableFirstCleanup();
1314 SetDirectMode(); 1314 SetDirectMode();
1315 InitCache(); 1315 InitCache();
1316 SetTestMode(); // Fail cache reinitialization. 1316 SetTestMode(); // Fail cache reinitialization.
1317 BackendDisable2(); 1317 BackendDisable2();
1318 } 1318 }
1319 1319
1320 TEST_F(DiskCacheBackendTest, NewEvictionDisableFailure2) { 1320 // http://code.google.com/p/chromium/issues/detail?id=38562
1321 TEST_F(DiskCacheBackendTest, DISABLED_NewEvictionDisableFailure2) {
1321 ASSERT_TRUE(CopyTestCache(L"list_loop")); 1322 ASSERT_TRUE(CopyTestCache(L"list_loop"));
1322 DisableFirstCleanup(); 1323 DisableFirstCleanup();
1323 SetDirectMode(); 1324 SetDirectMode();
1324 SetNewEviction(); 1325 SetNewEviction();
1325 InitCache(); 1326 InitCache();
1326 SetTestMode(); // Fail cache reinitialization. 1327 SetTestMode(); // Fail cache reinitialization.
1327 BackendDisable2(); 1328 BackendDisable2();
1328 } 1329 }
1329 1330
1330 // If the index size changes when we disable the cache, we should not crash. 1331 // If the index size changes when we disable the cache, we should not crash.
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 EXPECT_EQ(kDefaultSize * 5 / 2, 1579 EXPECT_EQ(kDefaultSize * 5 / 2,
1579 disk_cache::PreferedCacheSize(large_size * 100 / 2)); 1580 disk_cache::PreferedCacheSize(large_size * 100 / 2));
1580 EXPECT_EQ(kDefaultSize * 5 / 2, 1581 EXPECT_EQ(kDefaultSize * 5 / 2,
1581 disk_cache::PreferedCacheSize(large_size * 500 / 2)); 1582 disk_cache::PreferedCacheSize(large_size * 500 / 2));
1582 1583
1583 EXPECT_EQ(kDefaultSize * 6 / 2, 1584 EXPECT_EQ(kDefaultSize * 6 / 2,
1584 disk_cache::PreferedCacheSize(large_size * 600 / 2)); 1585 disk_cache::PreferedCacheSize(large_size * 600 / 2));
1585 EXPECT_EQ(kDefaultSize * 7 / 2, 1586 EXPECT_EQ(kDefaultSize * 7 / 2,
1586 disk_cache::PreferedCacheSize(large_size * 700 / 2)); 1587 disk_cache::PreferedCacheSize(large_size * 700 / 2));
1587 } 1588 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698