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

Unified Diff: net/url_request/url_request_unittest.cc

Issue 99923002: Move temp file functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/url_request/url_fetcher_response_writer.cc ('k') | printing/backend/cups_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_unittest.cc
diff --git a/net/url_request/url_request_unittest.cc b/net/url_request/url_request_unittest.cc
index 327ffefe76d4a4725a58340c7d3c5fa2dcaf9ccd..9913fbc9294a594440a40a66bd69531adf29065f 100644
--- a/net/url_request/url_request_unittest.cc
+++ b/net/url_request/url_request_unittest.cc
@@ -742,7 +742,7 @@ TEST_F(URLRequestTest, FileTestFullSpecifiedRange) {
FillBuffer(buffer.get(), buffer_size);
base::FilePath temp_path;
- EXPECT_TRUE(file_util::CreateTemporaryFile(&temp_path));
+ EXPECT_TRUE(base::CreateTemporaryFile(&temp_path));
GURL temp_url = FilePathToFileURL(temp_path);
EXPECT_TRUE(file_util::WriteFile(temp_path, buffer.get(), buffer_size));
@@ -786,7 +786,7 @@ TEST_F(URLRequestTest, FileTestHalfSpecifiedRange) {
FillBuffer(buffer.get(), buffer_size);
base::FilePath temp_path;
- EXPECT_TRUE(file_util::CreateTemporaryFile(&temp_path));
+ EXPECT_TRUE(base::CreateTemporaryFile(&temp_path));
GURL temp_url = FilePathToFileURL(temp_path);
EXPECT_TRUE(file_util::WriteFile(temp_path, buffer.get(), buffer_size));
@@ -829,7 +829,7 @@ TEST_F(URLRequestTest, FileTestMultipleRanges) {
FillBuffer(buffer.get(), buffer_size);
base::FilePath temp_path;
- EXPECT_TRUE(file_util::CreateTemporaryFile(&temp_path));
+ EXPECT_TRUE(base::CreateTemporaryFile(&temp_path));
GURL temp_url = FilePathToFileURL(temp_path);
EXPECT_TRUE(file_util::WriteFile(temp_path, buffer.get(), buffer_size));
@@ -857,7 +857,7 @@ TEST_F(URLRequestTest, AllowFileURLs) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
base::FilePath test_file;
- ASSERT_TRUE(file_util::CreateTemporaryFileInDir(temp_dir.path(), &test_file));
+ ASSERT_TRUE(base::CreateTemporaryFileInDir(temp_dir.path(), &test_file));
std::string test_data("monkey");
file_util::WriteFile(test_file, test_data.data(), test_data.size());
GURL test_file_url = net::FilePathToFileURL(test_file);
« no previous file with comments | « net/url_request/url_fetcher_response_writer.cc ('k') | printing/backend/cups_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698