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

Unified Diff: chrome/browser/chromeos/drive/fileapi_worker_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
Index: chrome/browser/chromeos/drive/fileapi_worker_unittest.cc
diff --git a/chrome/browser/chromeos/drive/fileapi_worker_unittest.cc b/chrome/browser/chromeos/drive/fileapi_worker_unittest.cc
index 32c51f559298efac8e9b2f3f966cdfa1e44915ed..494c39b996c3bf1d9ff3201802fd8c5d7b19e080 100644
--- a/chrome/browser/chromeos/drive/fileapi_worker_unittest.cc
+++ b/chrome/browser/chromeos/drive/fileapi_worker_unittest.cc
@@ -170,7 +170,7 @@ TEST_F(FileApiWorkerTest, OpenFileForCreateWrite) {
const std::string kWriteData = "byebye";
base::FilePath temp_path;
- file_util::CreateTemporaryFile(&temp_path);
+ base::CreateTemporaryFile(&temp_path);
// CREATE => CREATE (fails if file existed.)
TestFileSystemForOpenFile file_system(temp_path, CREATE_FILE);
@@ -190,7 +190,7 @@ TEST_F(FileApiWorkerTest, OpenFileForOpenAlwaysWrite) {
const std::string kInitialData = "hello";
base::FilePath temp_path;
- file_util::CreateTemporaryFile(&temp_path);
+ base::CreateTemporaryFile(&temp_path);
google_apis::test_util::WriteStringToFile(temp_path, kInitialData);
// OPEN_ALWAYS => OPEN_OR_CREATE (success whether file exists or not.)
@@ -212,7 +212,7 @@ TEST_F(FileApiWorkerTest, OpenFileForOpenTruncatedWrite) {
const std::string kWriteData = "byebye";
base::FilePath temp_path;
- file_util::CreateTemporaryFile(&temp_path);
+ base::CreateTemporaryFile(&temp_path);
google_apis::test_util::WriteStringToFile(temp_path, kInitialData);
// OPEN_TRUNCATED => OPEN (failure when the file did not exist.)
@@ -234,7 +234,7 @@ TEST_F(FileApiWorkerTest, OpenFileForOpenCreateAlwaysWrite) {
const std::string kWriteData = "byebye";
base::FilePath temp_path;
- file_util::CreateTemporaryFile(&temp_path);
+ base::CreateTemporaryFile(&temp_path);
google_apis::test_util::WriteStringToFile(temp_path, kInitialData);
// CREATE_ALWAYS => OPEN_OR_CREATE (success whether file exists or not.)
@@ -255,7 +255,7 @@ TEST_F(FileApiWorkerTest, OpenFileForOpenRead) {
const std::string kInitialData = "hello";
base::FilePath temp_path;
- file_util::CreateTemporaryFile(&temp_path);
+ base::CreateTemporaryFile(&temp_path);
google_apis::test_util::WriteStringToFile(temp_path, kInitialData);
// OPEN => OPEN (failure when the file did not exist.)

Powered by Google App Engine
This is Rietveld 408576698