From eac0709a26a824381291cbf78440c969a846b1ab Mon Sep 17 00:00:00 2001 From: "dkegel@google.com" Date: Tue, 4 Nov 2008 21:00:46 +0000 Subject: Port more of url_request_unittest.cc. Also do a little bit of the FilePath rewrite as it pertains to this test. Review URL: http://codereview.chromium.org/9074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4652 0039d316-1c4b-4281-b951-d872f2087c98 --- base/file_util_posix.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/file_util_posix.cc') diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index d48ae2a..fd012b4 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -311,9 +311,9 @@ bool CreateDirectory(const FilePath& full_path) { return true; } -bool GetFileInfo(const std::wstring& file_path, FileInfo* results) { +bool GetFileInfo(const FilePath& file_path, FileInfo* results) { struct stat64 file_info; - if (stat64(WideToUTF8(file_path).c_str(), &file_info) != 0) + if (stat64(file_path.value().c_str(), &file_info) != 0) return false; results->is_directory = S_ISDIR(file_info.st_mode); results->size = file_info.st_size; -- cgit v1.1