diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-30 00:27:49 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-30 00:27:49 +0000 |
commit | e030e767b4f0fef8ef1de21ebe977c2a4dec840b (patch) | |
tree | d08f21091a9290e53571d19512e7053e5ccf853a | |
parent | 5b006269bd8cc3ac184a3502a9910ef0e020e1db (diff) | |
download | chromium_src-e030e767b4f0fef8ef1de21ebe977c2a4dec840b.zip chromium_src-e030e767b4f0fef8ef1de21ebe977c2a4dec840b.tar.gz chromium_src-e030e767b4f0fef8ef1de21ebe977c2a4dec840b.tar.bz2 |
Disk cache: fix a unit test for Linux.
The name of a test file was not correct.
BUG=41563
TEST=unittest
Review URL: http://codereview.chromium.org/1792011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46020 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | net/disk_cache/backend_unittest.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/disk_cache/backend_unittest.cc b/net/disk_cache/backend_unittest.cc index 2c019b5..2430fc3 100644 --- a/net/disk_cache/backend_unittest.cc +++ b/net/disk_cache/backend_unittest.cc @@ -241,12 +241,10 @@ TEST_F(DiskCacheTest, ShutdownWithPendingIO) { MessageLoop::current()->RunAllPending(); } -#if defined(OS_WIN) || defined(OS_MACOSX) -// This test fails on linux. TODO(rvargas): Find out why (bug 41563). TEST_F(DiskCacheTest, TruncatedIndex) { FilePath path = GetCacheFilePath(); ASSERT_TRUE(DeleteCache(path)); - FilePath index = path.AppendASCII("Index"); + FilePath index = path.AppendASCII("index"); ASSERT_EQ(5, file_util::WriteFile(index, "hello", 5)); scoped_ptr<disk_cache::Backend> backend; backend.reset(disk_cache::BackendImpl::CreateBackend(path, false, 0, @@ -254,7 +252,6 @@ TEST_F(DiskCacheTest, TruncatedIndex) { disk_cache::kNone)); ASSERT_TRUE(backend.get() == NULL); } -#endif void DiskCacheBackendTest::BackendSetSize() { SetDirectMode(); |