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

Unified Diff: net/base/file_stream_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 | « google_apis/drive/test_util.cc ('k') | net/base/upload_data_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/file_stream_unittest.cc
diff --git a/net/base/file_stream_unittest.cc b/net/base/file_stream_unittest.cc
index b055c78b5d1b981b4311c6819dcce09f46af41b1..d86010d28762256505440e7f5f38c11d89877cbd 100644
--- a/net/base/file_stream_unittest.cc
+++ b/net/base/file_stream_unittest.cc
@@ -47,7 +47,7 @@ class FileStreamTest : public PlatformTest {
PlatformTest::SetUp();
base::CreateTemporaryFile(&temp_file_path_);
- file_util::WriteFile(temp_file_path_, kTestData, kTestDataSize);
+ base::WriteFile(temp_file_path_, kTestData, kTestDataSize);
}
virtual void TearDown() {
EXPECT_TRUE(base::DeleteFile(temp_file_path_, false));
@@ -145,7 +145,7 @@ TEST_F(FileStreamTest, AsyncOpenExplicitCloseOrphaned) {
TEST_F(FileStreamTest, FileHandleNotLeftOpen) {
bool created = false;
ASSERT_EQ(kTestDataSize,
- file_util::WriteFile(temp_file_path(), kTestData, kTestDataSize));
+ base::WriteFile(temp_file_path(), kTestData, kTestDataSize));
int flags = base::PLATFORM_FILE_OPEN_ALWAYS | base::PLATFORM_FILE_READ;
base::PlatformFile file = base::CreatePlatformFile(
temp_file_path(), flags, &created, NULL);
@@ -169,7 +169,7 @@ TEST_F(FileStreamTest, UseFileHandle) {
// 1. Test reading with a file handle.
ASSERT_EQ(kTestDataSize,
- file_util::WriteFile(temp_file_path(), kTestData, kTestDataSize));
+ base::WriteFile(temp_file_path(), kTestData, kTestDataSize));
int flags = base::PLATFORM_FILE_OPEN_ALWAYS | base::PLATFORM_FILE_READ;
base::PlatformFile file = base::CreatePlatformFile(
temp_file_path(), flags, &created, NULL);
« no previous file with comments | « google_apis/drive/test_util.cc ('k') | net/base/upload_data_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698