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

Unified Diff: chrome/browser/download/download_path_reservation_tracker_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: chrome/browser/download/download_path_reservation_tracker_unittest.cc
diff --git a/chrome/browser/download/download_path_reservation_tracker_unittest.cc b/chrome/browser/download/download_path_reservation_tracker_unittest.cc
index 5703da3ae849102286847c84285619ac017306f7..1a2728d51e68ee38b3bf858e828e33ed5aff32ed 100644
--- a/chrome/browser/download/download_path_reservation_tracker_unittest.cc
+++ b/chrome/browser/download/download_path_reservation_tracker_unittest.cc
@@ -281,9 +281,9 @@ TEST_F(DownloadPathReservationTrackerTest, ConflictingFiles) {
base::FilePath path1(
GetPathInDownloadsDirectory(FILE_PATH_LITERAL("foo (1).txt")));
// Create a file at |path|, and a .crdownload file at |path1|.
- ASSERT_EQ(0, file_util::WriteFile(path, "", 0));
+ ASSERT_EQ(0, base::WriteFile(path, "", 0));
ASSERT_EQ(0,
- file_util::WriteFile(
+ base::WriteFile(
DownloadTargetDeterminer::GetCrDownloadPath(path1), "", 0));
ASSERT_TRUE(IsPathInUse(path));
@@ -647,8 +647,8 @@ TEST_F(DownloadPathReservationTrackerTest, TruncationConflict) {
// "aaa...aaaaaaa.txt" (truncated path) and
// "aaa...aaa (1).txt" (truncated and first uniquification try) exists.
// "aaa...aaa (2).txt" should be used.
- ASSERT_EQ(0, file_util::WriteFile(path0, "", 0));
- ASSERT_EQ(0, file_util::WriteFile(path1, "", 0));
+ ASSERT_EQ(0, base::WriteFile(path0, "", 0));
+ ASSERT_EQ(0, base::WriteFile(path1, "", 0));
base::FilePath reserved_path;
bool verified = false;

Powered by Google App Engine
This is Rietveld 408576698