summaryrefslogtreecommitdiffstats
path: root/base/file_util_posix.cc
diff options
context:
space:
mode:
authordkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-04 21:00:46 +0000
committerdkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-04 21:00:46 +0000
commiteac0709a26a824381291cbf78440c969a846b1ab (patch)
tree98255561598331f85ab1e519c2fba40c16da67e6 /base/file_util_posix.cc
parent379979b98bbc0af3e1f3eebacda613c771b2d104 (diff)
downloadchromium_src-eac0709a26a824381291cbf78440c969a846b1ab.zip
chromium_src-eac0709a26a824381291cbf78440c969a846b1ab.tar.gz
chromium_src-eac0709a26a824381291cbf78440c969a846b1ab.tar.bz2
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
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r--base/file_util_posix.cc4
1 files changed, 2 insertions, 2 deletions
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;