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

Unified Diff: trunk/src/content/browser/fileapi/file_system_operation_impl_unittest.cc

Issue 105823009: Revert 239280 "Move more file_util functions to base namespace." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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: trunk/src/content/browser/fileapi/file_system_operation_impl_unittest.cc
===================================================================
--- trunk/src/content/browser/fileapi/file_system_operation_impl_unittest.cc (revision 239399)
+++ trunk/src/content/browser/fileapi/file_system_operation_impl_unittest.cc (working copy)
@@ -689,8 +689,8 @@
// Compare contents of src and copied file.
char buffer[100];
- EXPECT_EQ(data_size, base::ReadFile(PlatformPath("dest/file"),
- buffer, data_size));
+ EXPECT_EQ(data_size, file_util::ReadFile(PlatformPath("dest/file"),
+ buffer, data_size));
for (int i = 0; i < data_size; ++i)
EXPECT_EQ(test_data[i], buffer[i]);
}
@@ -1009,7 +1009,7 @@
// data.
EXPECT_EQ(length, GetFileSize("file"));
char data[100];
- EXPECT_EQ(length, base::ReadFile(platform_path, data, length));
+ EXPECT_EQ(length, file_util::ReadFile(platform_path, data, length));
for (int i = 0; i < length; ++i) {
if (i < static_cast<int>(sizeof(test_data)))
EXPECT_EQ(test_data[i], data[i]);
@@ -1028,7 +1028,7 @@
// Check that its length is now 3 and that it contains only bits of test data.
EXPECT_EQ(length, GetFileSize("file"));
- EXPECT_EQ(length, base::ReadFile(platform_path, data, length));
+ EXPECT_EQ(length, file_util::ReadFile(platform_path, data, length));
for (int i = 0; i < length; ++i)
EXPECT_EQ(test_data[i], data[i]);

Powered by Google App Engine
This is Rietveld 408576698