| Index: net/disk_cache/simple/simple_index_file_unittest.cc
|
| diff --git a/net/disk_cache/simple/simple_index_file_unittest.cc b/net/disk_cache/simple/simple_index_file_unittest.cc
|
| index 4ed45e7e1aedc5eeba98bf7e893835926755cd8f..ab626b222df2f967655900d1dd4fed66c1bf4a19 100644
|
| --- a/net/disk_cache/simple/simple_index_file_unittest.cc
|
| +++ b/net/disk_cache/simple/simple_index_file_unittest.cc
|
| @@ -203,7 +203,7 @@ TEST_F(SimpleIndexFileTest, LegacyIsIndexFileStale) {
|
| base::ScopedTempDir cache_dir;
|
| ASSERT_TRUE(cache_dir.CreateUniqueTempDir());
|
| base::Time cache_mtime;
|
| - const base::FilePath cache_path = cache_dir.path();
|
| + const base::FilePath cache_path = cache_dir.GetPath();
|
|
|
| ASSERT_TRUE(simple_util::GetMTime(cache_path, &cache_mtime));
|
| WrappedSimpleIndexFile simple_index_file(cache_path);
|
| @@ -249,7 +249,7 @@ TEST_F(SimpleIndexFileTest, WriteThenLoadIndex) {
|
| const uint64_t kCacheSize = 456U;
|
| net::TestClosure closure;
|
| {
|
| - WrappedSimpleIndexFile simple_index_file(cache_dir.path());
|
| + WrappedSimpleIndexFile simple_index_file(cache_dir.GetPath());
|
| simple_index_file.WriteToDisk(SimpleIndex::INDEX_WRITE_REASON_SHUTDOWN,
|
| entries, kCacheSize, base::TimeTicks(), false,
|
| closure.closure());
|
| @@ -257,9 +257,9 @@ TEST_F(SimpleIndexFileTest, WriteThenLoadIndex) {
|
| EXPECT_TRUE(base::PathExists(simple_index_file.GetIndexFilePath()));
|
| }
|
|
|
| - WrappedSimpleIndexFile simple_index_file(cache_dir.path());
|
| + WrappedSimpleIndexFile simple_index_file(cache_dir.GetPath());
|
| base::Time fake_cache_mtime;
|
| - ASSERT_TRUE(simple_util::GetMTime(cache_dir.path(), &fake_cache_mtime));
|
| + ASSERT_TRUE(simple_util::GetMTime(cache_dir.GetPath(), &fake_cache_mtime));
|
| SimpleIndexLoadResult load_index_result;
|
| simple_index_file.LoadIndexEntries(fake_cache_mtime, closure.closure(),
|
| &load_index_result);
|
| @@ -278,7 +278,7 @@ TEST_F(SimpleIndexFileTest, LoadCorruptIndex) {
|
| base::ScopedTempDir cache_dir;
|
| ASSERT_TRUE(cache_dir.CreateUniqueTempDir());
|
|
|
| - WrappedSimpleIndexFile simple_index_file(cache_dir.path());
|
| + WrappedSimpleIndexFile simple_index_file(cache_dir.GetPath());
|
| ASSERT_TRUE(simple_index_file.CreateIndexFileDirectory());
|
| const base::FilePath& index_path = simple_index_file.GetIndexFilePath();
|
| const std::string kDummyData = "nothing to be seen here";
|
| @@ -304,7 +304,7 @@ TEST_F(SimpleIndexFileTest, LoadCorruptIndex) {
|
| TEST_F(SimpleIndexFileTest, SimpleCacheUpgrade) {
|
| base::ScopedTempDir cache_dir;
|
| ASSERT_TRUE(cache_dir.CreateUniqueTempDir());
|
| - const base::FilePath cache_path = cache_dir.path();
|
| + const base::FilePath cache_path = cache_dir.GetPath();
|
|
|
| // Write an old fake index file.
|
| base::File file(cache_path.AppendASCII("index"),
|
| @@ -374,7 +374,7 @@ TEST_F(SimpleIndexFileTest, SimpleCacheUpgrade) {
|
| TEST_F(SimpleIndexFileTest, OverwritesStaleTempFile) {
|
| base::ScopedTempDir cache_dir;
|
| ASSERT_TRUE(cache_dir.CreateUniqueTempDir());
|
| - const base::FilePath cache_path = cache_dir.path();
|
| + const base::FilePath cache_path = cache_dir.GetPath();
|
| WrappedSimpleIndexFile simple_index_file(cache_path);
|
| ASSERT_TRUE(simple_index_file.CreateIndexFileDirectory());
|
|
|
|
|