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

Unified Diff: content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc

Issue 184563006: Move WriteFile and WriteFileDescriptor from file_util to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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: content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
diff --git a/content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc b/content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
index e9fbfaef57df4561d67ca1d5b2ec4a086cfa6164..b9b4abcaa886088ce995d4c668d9cf05d497ae0c 100644
--- a/content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
+++ b/content/browser/fileapi/copy_or_move_operation_delegate_unittest.cc
@@ -719,12 +719,12 @@ TEST(LocalFileSystemCopyOrMoveOperationTest, StreamCopyHelper) {
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
base::FilePath source_path = temp_dir.path().AppendASCII("source");
const char kTestData[] = "abcdefghijklmnopqrstuvwxyz0123456789";
- file_util::WriteFile(source_path, kTestData,
- arraysize(kTestData) - 1); // Exclude trailing '\0'.
+ base::WriteFile(source_path, kTestData,
+ arraysize(kTestData) - 1); // Exclude trailing '\0'.
base::FilePath dest_path = temp_dir.path().AppendASCII("dest");
// LocalFileWriter requires the file exists. So create an empty file here.
- file_util::WriteFile(dest_path, "", 0);
+ base::WriteFile(dest_path, "", 0);
base::MessageLoopForIO message_loop;
base::Thread file_thread("file_thread");
@@ -777,12 +777,12 @@ TEST(LocalFileSystemCopyOrMoveOperationTest, StreamCopyHelperWithFlush) {
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
base::FilePath source_path = temp_dir.path().AppendASCII("source");
const char kTestData[] = "abcdefghijklmnopqrstuvwxyz0123456789";
- file_util::WriteFile(source_path, kTestData,
- arraysize(kTestData) - 1); // Exclude trailing '\0'.
+ base::WriteFile(source_path, kTestData,
+ arraysize(kTestData) - 1); // Exclude trailing '\0'.
base::FilePath dest_path = temp_dir.path().AppendASCII("dest");
// LocalFileWriter requires the file exists. So create an empty file here.
- file_util::WriteFile(dest_path, "", 0);
+ base::WriteFile(dest_path, "", 0);
base::MessageLoopForIO message_loop;
base::Thread file_thread("file_thread");
@@ -831,12 +831,12 @@ TEST(LocalFileSystemCopyOrMoveOperationTest, StreamCopyHelper_Cancel) {
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
base::FilePath source_path = temp_dir.path().AppendASCII("source");
const char kTestData[] = "abcdefghijklmnopqrstuvwxyz0123456789";
- file_util::WriteFile(source_path, kTestData,
- arraysize(kTestData) - 1); // Exclude trailing '\0'.
+ base::WriteFile(source_path, kTestData,
+ arraysize(kTestData) - 1); // Exclude trailing '\0'.
base::FilePath dest_path = temp_dir.path().AppendASCII("dest");
// LocalFileWriter requires the file exists. So create an empty file here.
- file_util::WriteFile(dest_path, "", 0);
+ base::WriteFile(dest_path, "", 0);
base::MessageLoopForIO message_loop;
base::Thread file_thread("file_thread");

Powered by Google App Engine
This is Rietveld 408576698