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

Unified Diff: webkit/browser/appcache/appcache_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
Index: webkit/browser/appcache/appcache_database_unittest.cc
diff --git a/webkit/browser/appcache/appcache_database_unittest.cc b/webkit/browser/appcache/appcache_database_unittest.cc
index 641ab06561eaf53e8b1fc5b3cbb6ac9b60c14337..c4320664afced698cd3c14932d225f361c144e7d 100644
--- a/webkit/browser/appcache/appcache_database_unittest.cc
+++ b/webkit/browser/appcache/appcache_database_unittest.cc
@@ -57,7 +57,7 @@ TEST(AppCacheDatabaseTest, ReCreate) {
const base::FilePath kNestedDir = temp_dir.path().AppendASCII("nested");
const base::FilePath kOtherFile = kNestedDir.AppendASCII("other_file");
EXPECT_TRUE(base::CreateDirectory(kNestedDir));
- EXPECT_EQ(3, file_util::WriteFile(kOtherFile, "foo", 3));
+ EXPECT_EQ(3, base::WriteFile(kOtherFile, "foo", 3));
AppCacheDatabase db(kDbFile);
EXPECT_FALSE(db.LazyOpen(false));
@@ -90,7 +90,7 @@ TEST(AppCacheDatabaseTest, QuickIntegrityCheck) {
const base::FilePath kDbFile = mock_dir.AppendASCII("appcache.db");
const base::FilePath kOtherFile = mock_dir.AppendASCII("other_file");
- EXPECT_EQ(3, file_util::WriteFile(kOtherFile, "foo", 3));
+ EXPECT_EQ(3, base::WriteFile(kOtherFile, "foo", 3));
// First create a valid db file.
AppCacheDatabase db(kDbFile);
@@ -150,7 +150,7 @@ TEST(AppCacheDatabaseTest, ExperimentalFlags) {
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
const base::FilePath kDbFile = temp_dir.path().AppendASCII("appcache.db");
const base::FilePath kOtherFile = temp_dir.path().AppendASCII("other_file");
- EXPECT_EQ(3, file_util::WriteFile(kOtherFile, "foo", 3));
+ EXPECT_EQ(3, base::WriteFile(kOtherFile, "foo", 3));
EXPECT_TRUE(base::PathExists(kOtherFile));
AppCacheDatabase db(kDbFile);
« no previous file with comments | « ui/gfx/ozone/impl/file_surface_factory.cc ('k') | webkit/browser/appcache/appcache_storage_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698