diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 20:42:30 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 20:42:30 +0000 |
commit | e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e (patch) | |
tree | 480bf91e3cf64d69f837a2f22f8fc868bf17dfdc /chrome/browser/download/download_path_reservation_tracker_unittest.cc | |
parent | 06b1d42b0ceadd4a70b7462c5c7e6adeb5a18ca4 (diff) | |
download | chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.zip chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.tar.gz chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.tar.bz2 |
Move WriteFile and WriteFileDescriptor from file_util to base namespace.
R=viettrungluu@chromium.org
TBR=viettrungluu
Review URL: https://codereview.chromium.org/184563006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255418 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download/download_path_reservation_tracker_unittest.cc')
-rw-r--r-- | chrome/browser/download/download_path_reservation_tracker_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/download/download_path_reservation_tracker_unittest.cc b/chrome/browser/download/download_path_reservation_tracker_unittest.cc index 5703da3..1a2728d 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; |