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

Unified Diff: base/files/file_util_proxy_unittest.cc

Issue 109043002: Move more file_util functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « base/file_util_win.cc ('k') | base/memory/shared_memory_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/files/file_util_proxy_unittest.cc
diff --git a/base/files/file_util_proxy_unittest.cc b/base/files/file_util_proxy_unittest.cc
index fa4a78c8a0745b00252c4540b1c24922f7839b16..17c7a3f7cf55b5528cdf5eebf0c2435a7c8887c9 100644
--- a/base/files/file_util_proxy_unittest.cc
+++ b/base/files/file_util_proxy_unittest.cc
@@ -320,7 +320,7 @@ TEST_F(FileUtilProxyTest, WriteAndFlush) {
// Verify the written data.
char buffer[10];
- EXPECT_EQ(data_bytes, file_util::ReadFile(test_path(), buffer, data_bytes));
+ EXPECT_EQ(data_bytes, base::ReadFile(test_path(), buffer, data_bytes));
for (int i = 0; i < data_bytes; ++i) {
EXPECT_EQ(data[i], buffer[i]);
}
@@ -373,7 +373,7 @@ TEST_F(FileUtilProxyTest, Truncate_Shrink) {
ASSERT_EQ(7, info.size);
char buffer[7];
- EXPECT_EQ(7, file_util::ReadFile(test_path(), buffer, 7));
+ EXPECT_EQ(7, base::ReadFile(test_path(), buffer, 7));
int i = 0;
for (; i < 7; ++i)
EXPECT_EQ(kTestData[i], buffer[i]);
@@ -400,7 +400,7 @@ TEST_F(FileUtilProxyTest, Truncate_Expand) {
ASSERT_EQ(53, info.size);
char buffer[53];
- EXPECT_EQ(53, file_util::ReadFile(test_path(), buffer, 53));
+ EXPECT_EQ(53, base::ReadFile(test_path(), buffer, 53));
int i = 0;
for (; i < 10; ++i)
EXPECT_EQ(kTestData[i], buffer[i]);
« no previous file with comments | « base/file_util_win.cc ('k') | base/memory/shared_memory_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698