Index: base/files/file_util_unittest.cc |
diff --git a/base/files/file_util_unittest.cc b/base/files/file_util_unittest.cc |
index 47dec303f8e33d598203e2b0b1b774c9acf8854e..38fe868df3fab256012a29a802e10f8c4f90a1dc 100644 |
--- a/base/files/file_util_unittest.cc |
+++ b/base/files/file_util_unittest.cc |
@@ -1977,11 +1977,10 @@ TEST_F(FileUtilTest, AppendToFile) { |
FilePath foobar(data_dir.Append(FILE_PATH_LITERAL("foobar.txt"))); |
std::string data("hello"); |
- EXPECT_EQ(-1, AppendToFile(foobar, data.c_str(), data.length())); |
+ EXPECT_FALSE(AppendToFile(foobar, data.c_str(), data.size())); |
EXPECT_EQ(static_cast<int>(data.length()), |
WriteFile(foobar, data.c_str(), data.length())); |
- EXPECT_EQ(static_cast<int>(data.length()), |
- AppendToFile(foobar, data.c_str(), data.length())); |
+ EXPECT_TRUE(AppendToFile(foobar, data.c_str(), data.size())); |
const std::wstring read_content = ReadTextFile(foobar); |
EXPECT_EQ(L"hellohello", read_content); |