Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: net/disk_cache/simple/simple_index_file_unittest.cc

Issue 2319513003: //[chrome/browser/]net: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/disk_cache_test_base.cc ('k') | net/disk_cache/simple/simple_version_upgrade_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « net/disk_cache/disk_cache_test_base.cc ('k') | net/disk_cache/simple/simple_version_upgrade_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698