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

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

Issue 1592002: Disabling the DiskCacheBackendTest.DisableFailure2 as it crashes at times on ... (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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
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