diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-14 00:15:59 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-14 00:15:59 +0000 |
commit | c3c9909ee8533061752628de4523786c383ce399 (patch) | |
tree | 546c3597a3aafb4f576dce1f30432c2b5da56af8 /net | |
parent | 7c846e1ee4ec7a8193abf9e4ba7d1460440943be (diff) | |
download | chromium_src-c3c9909ee8533061752628de4523786c383ce399.zip chromium_src-c3c9909ee8533061752628de4523786c383ce399.tar.gz chromium_src-c3c9909ee8533061752628de4523786c383ce399.tar.bz2 |
Disk cache: Re-enable DiskCacheEntryTest.CancelSparseIO
I still don't know why it failed, but the only difference
that I could see in this test between xp and vista is that
xp accepts a lot of small IOs before returning pending, so
this change results in similar behavior in both platforms
and a faster run on xp.
BUG=23862
TEST=none
Review URL: http://codereview.chromium.org/273024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r-- | net/disk_cache/entry_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/disk_cache/entry_unittest.cc b/net/disk_cache/entry_unittest.cc index 178bf00..f5d440f 100644 --- a/net/disk_cache/entry_unittest.cc +++ b/net/disk_cache/entry_unittest.cc @@ -1344,13 +1344,13 @@ TEST_F(DiskCacheEntryTest, CleanupSparseEntry) { EXPECT_EQ(3, cache_->GetEntryCount()); } -TEST_F(DiskCacheEntryTest, DISABLED_CancelSparseIO) { +TEST_F(DiskCacheEntryTest, CancelSparseIO) { InitCache(); std::string key("the first key"); disk_cache::Entry* entry; ASSERT_TRUE(cache_->CreateEntry(key, &entry)); - const int kSize = 4 * 1024; + const int kSize = 40 * 1024; scoped_refptr<net::IOBuffer> buf = new net::IOBuffer(kSize); CacheTestFillBuffer(buf->data(), kSize, false); |