Index: base/file_util_unittest.cc |
=================================================================== |
--- base/file_util_unittest.cc (revision 79303) |
+++ base/file_util_unittest.cc (working copy) |
@@ -162,7 +162,7 @@ |
// Simple function to dump some text into a new file. |
void CreateTextFile(const FilePath& filename, |
const std::wstring& contents) { |
- std::ofstream file; |
+ std::wofstream file; |
file.open(filename.value().c_str()); |
ASSERT_TRUE(file.is_open()); |
file << contents; |
@@ -175,7 +175,7 @@ |
std::wifstream file; |
file.open(filename.value().c_str()); |
EXPECT_TRUE(file.is_open()); |
- file.getline(contents, 64); |
+ file.getline(contents, arraysize(contents)); |
file.close(); |
return std::wstring(contents); |
} |