Index: net/disk_cache/mapped_file_unittest.cc |
diff --git a/net/disk_cache/mapped_file_unittest.cc b/net/disk_cache/mapped_file_unittest.cc |
index 8b01a7d4d8488ae15ab11afa04c1c3fb56ab4e04..4404be6f402faf1b023753ede8cf0560d73f2627 100644 |
--- a/net/disk_cache/mapped_file_unittest.cc |
+++ b/net/disk_cache/mapped_file_unittest.cc |
@@ -61,7 +61,9 @@ void WaitForCallbacks(int expected) { |
} // namespace |
TEST_F(DiskCacheTest, MappedFile_SyncIO) { |
- FilePath filename = GetCacheFilePath().AppendASCII("a_test"); |
+ ScopedTestCache test_cache; |
+ FilePath filename = test_cache.path().AppendASCII("a_test"); |
+ |
scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); |
ASSERT_TRUE(CreateCacheTestFile(filename)); |
ASSERT_TRUE(file->Init(filename, 8192)); |
@@ -76,7 +78,9 @@ TEST_F(DiskCacheTest, MappedFile_SyncIO) { |
} |
TEST_F(DiskCacheTest, MappedFile_AsyncIO) { |
- FilePath filename = GetCacheFilePath().AppendASCII("a_test"); |
+ ScopedTestCache test_cache; |
+ FilePath filename = test_cache.path().AppendASCII("a_test"); |
+ |
scoped_refptr<disk_cache::MappedFile> file(new disk_cache::MappedFile); |
ASSERT_TRUE(CreateCacheTestFile(filename)); |
ASSERT_TRUE(file->Init(filename, 8192)); |