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

Unified Diff: net/url_request/url_fetcher_impl_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
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));
« no previous file with comments | « net/spdy/spdy_network_transaction_unittest.cc ('k') | net/url_request/url_fetcher_response_writer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698