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.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'base/file_util.h') diff --git a/base/file_util.h b/base/file_util.h index 127afd0..2318ec7 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -267,6 +267,8 @@ bool CreateDirectory(const FilePath& full_path); bool CreateDirectory(const std::wstring& full_path); // Returns the file size. Returns true on success. +bool GetFileSize(const FilePath& file_path, int64* file_size); +// Deprecated temporary compatibility function. bool GetFileSize(const std::wstring& file_path, int64* file_size); // Used to hold information about a given file path. See GetFileInfo below. @@ -281,8 +283,11 @@ struct FileInfo { }; // Returns information about the given file path. +bool GetFileInfo(const FilePath& file_path, FileInfo* info); +// Deprecated temporary compatibility function. bool GetFileInfo(const std::wstring& file_path, FileInfo* info); + // Wrapper for fopen-like calls. Returns non-NULL FILE* on success. FILE* OpenFile(const FilePath& filename, const char* mode); // Deprecated temporary compatibility functions. -- cgit v1.1