Chromium Code Reviews| 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; |
|
wtc
2011/03/25 17:35:42
IMPORTANT: this seems like a bug fix. Since there
|
| file.open(filename.value().c_str()); |
| ASSERT_TRUE(file.is_open()); |
| file << contents; |