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

Unified Diff: webkit/browser/fileapi/sandbox_prioritized_origin_database_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
« no previous file with comments | « webkit/browser/fileapi/local_file_stream_writer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/sandbox_prioritized_origin_database_unittest.cc
diff --git a/webkit/browser/fileapi/sandbox_prioritized_origin_database_unittest.cc b/webkit/browser/fileapi/sandbox_prioritized_origin_database_unittest.cc
index 3a290cf617854ef5cacd8a224c3bdc64c5f739ae..c93b8393af957e54f89e8a53f9eb1ecbf31e5371 100644
--- a/webkit/browser/fileapi/sandbox_prioritized_origin_database_unittest.cc
+++ b/webkit/browser/fileapi/sandbox_prioritized_origin_database_unittest.cc
@@ -123,8 +123,7 @@ TEST(SandboxPrioritizedOriginDatabaseTest, LostPrimaryOriginFileTest) {
EXPECT_TRUE(database.GetPathForOrigin(kOrigin1, &path));
// Corrupt the primary origin file.
- file_util::WriteFile(
- database.primary_origin_file(), kData.data(), kData.size());
+ base::WriteFile(database.primary_origin_file(), kData.data(), kData.size());
// Reset the database.
database.DropDatabase();
@@ -164,15 +163,15 @@ TEST(SandboxPrioritizedOriginDatabaseTest, MigrationTest) {
old_dir_db_path1 = dir.path().Append(path1);
ASSERT_TRUE(base::CreateDirectory(old_dir_db_path1));
EXPECT_EQ(static_cast<int>(kFakeDirectoryData1.size()),
- file_util::WriteFile(old_dir_db_path1.AppendASCII("dummy"),
- kFakeDirectoryData1.data(),
- kFakeDirectoryData1.size()));
+ base::WriteFile(old_dir_db_path1.AppendASCII("dummy"),
+ kFakeDirectoryData1.data(),
+ kFakeDirectoryData1.size()));
old_dir_db_path2 = dir.path().Append(path2);
ASSERT_TRUE(base::CreateDirectory(old_dir_db_path2));
EXPECT_EQ(static_cast<int>(kFakeDirectoryData2.size()),
- file_util::WriteFile(old_dir_db_path2.AppendASCII("dummy"),
- kFakeDirectoryData2.data(),
- kFakeDirectoryData2.size()));
+ base::WriteFile(old_dir_db_path2.AppendASCII("dummy"),
+ kFakeDirectoryData2.data(),
+ kFakeDirectoryData2.size()));
}
// Re-open the directory using sandboxPrioritizedOriginDatabase.
« no previous file with comments | « webkit/browser/fileapi/local_file_stream_writer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698