diff options
author | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-04 21:00:46 +0000 |
---|---|---|
committer | dkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-04 21:00:46 +0000 |
commit | eac0709a26a824381291cbf78440c969a846b1ab (patch) | |
tree | 98255561598331f85ab1e519c2fba40c16da67e6 /base/file_util.cc | |
parent | 379979b98bbc0af3e1f3eebacda613c771b2d104 (diff) | |
download | chromium_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.cc')
-rw-r--r-- | base/file_util.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index dd00d00..f4d0504 100644 --- a/base/file_util.cc +++ b/base/file_util.cc @@ -289,7 +289,7 @@ bool ReadFileToString(const std::wstring& path, std::string* contents) { return true; } -bool GetFileSize(const std::wstring& file_path, int64* file_size) { +bool GetFileSize(const FilePath& file_path, int64* file_size) { FileInfo info; if (!GetFileInfo(file_path, &info)) return false; @@ -350,6 +350,12 @@ bool GetCurrentDirectory(std::wstring* path_str) { *path_str = path.ToWStringHack(); return true; } +bool GetFileInfo(const std::wstring& file_path, FileInfo* results) { + return GetFileInfo(FilePath::FromWStringHack(file_path), results); +} +bool GetFileSize(const std::wstring& file_path, int64* file_size) { + return GetFileSize(FilePath::FromWStringHack(file_path), file_size); +} bool GetTempDir(std::wstring* path_str) { FilePath path; if (!GetTempDir(&path)) |