summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/mapped_file_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/mapped_file_unittest.cc')
-rw-r--r--net/disk_cache/mapped_file_unittest.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/disk_cache/mapped_file_unittest.cc b/net/disk_cache/mapped_file_unittest.cc
index 8b01a7d..4404be6 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));