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

Unified Diff: base/files/file_util_proxy_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 | « base/files/file_path_watcher_browsertest.cc ('k') | base/json/json_file_value_serializer.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 30c77d39884c3ce82004bc78e6a9871f62f08936..8d8c8eb2708e287f963894902604bf306af2495f 100644
--- a/base/files/file_util_proxy_unittest.cc
+++ b/base/files/file_util_proxy_unittest.cc
@@ -132,7 +132,7 @@ TEST_F(FileUtilProxyTest, CreateOrOpen_Create) {
TEST_F(FileUtilProxyTest, CreateOrOpen_Open) {
// Creates a file.
- file_util::WriteFile(test_path(), NULL, 0);
+ WriteFile(test_path(), NULL, 0);
ASSERT_TRUE(PathExists(test_path()));
// Opens the created file.
@@ -223,7 +223,7 @@ TEST_F(FileUtilProxyTest, CreateTemporary) {
TEST_F(FileUtilProxyTest, GetFileInfo_File) {
// Setup.
- ASSERT_EQ(4, file_util::WriteFile(test_path(), "test", 4));
+ ASSERT_EQ(4, WriteFile(test_path(), "test", 4));
File::Info expected_info;
GetFileInfo(test_path(), &expected_info);
@@ -272,7 +272,7 @@ TEST_F(FileUtilProxyTest, Read) {
const char expected_data[] = "bleh";
int expected_bytes = arraysize(expected_data);
ASSERT_EQ(expected_bytes,
- file_util::WriteFile(test_path(), expected_data, expected_bytes));
+ WriteFile(test_path(), expected_data, expected_bytes));
// Run.
FileUtilProxy::Read(
@@ -354,7 +354,7 @@ TEST_F(FileUtilProxyTest, Touch) {
TEST_F(FileUtilProxyTest, Truncate_Shrink) {
// Setup.
const char kTestData[] = "0123456789";
- ASSERT_EQ(10, file_util::WriteFile(test_path(), kTestData, 10));
+ ASSERT_EQ(10, WriteFile(test_path(), kTestData, 10));
File::Info info;
GetFileInfo(test_path(), &info);
ASSERT_EQ(10, info.size);
@@ -381,7 +381,7 @@ TEST_F(FileUtilProxyTest, Truncate_Shrink) {
TEST_F(FileUtilProxyTest, Truncate_Expand) {
// Setup.
const char kTestData[] = "9876543210";
- ASSERT_EQ(10, file_util::WriteFile(test_path(), kTestData, 10));
+ ASSERT_EQ(10, WriteFile(test_path(), kTestData, 10));
File::Info info;
GetFileInfo(test_path(), &info);
ASSERT_EQ(10, info.size);
« no previous file with comments | « base/files/file_path_watcher_browsertest.cc ('k') | base/json/json_file_value_serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698