| Index: net/url_request/url_fetcher_impl_unittest.cc
|
| diff --git a/net/url_request/url_fetcher_impl_unittest.cc b/net/url_request/url_fetcher_impl_unittest.cc
|
| index d90d9f60753fcc81a48111d0904a094181a111eb..abb59f9a3a06804a5874c55283a1ef4ad6e58ce4 100644
|
| --- a/net/url_request/url_fetcher_impl_unittest.cc
|
| +++ b/net/url_request/url_fetcher_impl_unittest.cc
|
| @@ -1440,7 +1440,7 @@ TEST_F(URLFetcherTest, FileTestSmallGet) {
|
|
|
| base::ScopedTempDir temp_dir;
|
| ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
|
| - base::FilePath out_path = temp_dir.path().AppendASCII(kFileToFetch);
|
| + base::FilePath out_path = temp_dir.GetPath().AppendASCII(kFileToFetch);
|
| SaveFileTest(kFileToFetch, false, out_path, false);
|
| }
|
|
|
| @@ -1451,7 +1451,7 @@ TEST_F(URLFetcherTest, FileTestLargeGet) {
|
|
|
| base::ScopedTempDir temp_dir;
|
| ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
|
| - base::FilePath out_path = temp_dir.path().AppendASCII(kFileToFetch);
|
| + base::FilePath out_path = temp_dir.GetPath().AppendASCII(kFileToFetch);
|
| SaveFileTest(kFileToFetch, false, out_path, false);
|
| }
|
|
|
| @@ -1462,7 +1462,7 @@ TEST_F(URLFetcherTest, FileTestTakeOwnership) {
|
|
|
| base::ScopedTempDir temp_dir;
|
| ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
|
| - base::FilePath out_path = temp_dir.path().AppendASCII(kFileToFetch);
|
| + base::FilePath out_path = temp_dir.GetPath().AppendASCII(kFileToFetch);
|
| SaveFileTest(kFileToFetch, false, out_path, true);
|
| }
|
|
|
| @@ -1474,7 +1474,7 @@ TEST_F(URLFetcherTest, FileTestOverwriteExisting) {
|
| // Create a file before trying to fetch.
|
| const char kFileToFetch[] = "simple.html";
|
| std::string data(10000, '?'); // Meant to be larger than simple.html.
|
| - base::FilePath out_path = temp_dir.path().AppendASCII(kFileToFetch);
|
| + base::FilePath out_path = temp_dir.GetPath().AppendASCII(kFileToFetch);
|
| ASSERT_EQ(static_cast<int>(data.size()),
|
| base::WriteFile(out_path, data.data(), data.size()));
|
| ASSERT_TRUE(base::PathExists(out_path));
|
| @@ -1489,7 +1489,7 @@ TEST_F(URLFetcherTest, FileTestTryToOverwriteDirectory) {
|
|
|
| // Create a directory before trying to fetch.
|
| static const char kFileToFetch[] = "simple.html";
|
| - base::FilePath out_path = temp_dir.path().AppendASCII(kFileToFetch);
|
| + base::FilePath out_path = temp_dir.GetPath().AppendASCII(kFileToFetch);
|
| ASSERT_TRUE(base::CreateDirectory(out_path));
|
| ASSERT_TRUE(base::PathExists(out_path));
|
|
|
|
|