diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-25 20:49:54 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-25 20:49:54 +0000 |
commit | 76c551c6fe7dcfc664b9261eaec812a1966d1984 (patch) | |
tree | 59eec5f979c75ec69bf83ecd8eb1472ee244278f /base/file_util_unittest.cc | |
parent | 2e92354c702a1e9d8ba029d824261915abddecc4 (diff) | |
download | chromium_src-76c551c6fe7dcfc664b9261eaec812a1966d1984.zip chromium_src-76c551c6fe7dcfc664b9261eaec812a1966d1984.tar.gz chromium_src-76c551c6fe7dcfc664b9261eaec812a1966d1984.tar.bz2 |
Base unit tests: Small fix for two incorrect utility
functions of file_util_unittests
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6747006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_unittest.cc')
-rw-r--r-- | base/file_util_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/file_util_unittest.cc b/base/file_util_unittest.cc index ea29df5..85b650a 100644 --- a/base/file_util_unittest.cc +++ b/base/file_util_unittest.cc @@ -162,7 +162,7 @@ class FindResultCollector { // 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::wstring ReadTextFile(const FilePath& filename) { 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); } |