From 8881d8794f13bf12d8ed7ce93fd163b9992aeb28 Mon Sep 17 00:00:00 2001 From: "erg@google.com" Date: Fri, 14 Nov 2008 00:11:06 +0000 Subject: Unfork test_shell_main_gtk back into test_shell_main. Still doesn't run layout tests, but it's unforked and runs. Review URL: http://codereview.chromium.org/10905 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5413 0039d316-1c4b-4281-b951-d872f2087c98 --- base/file_util_linux.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'base/file_util_linux.cc') diff --git a/base/file_util_linux.cc b/base/file_util_linux.cc index f776c91..945200a 100644 --- a/base/file_util_linux.cc +++ b/base/file_util_linux.cc @@ -26,6 +26,10 @@ bool GetTempDir(FilePath* path) { return true; } +FILE* OpenFile(const FilePath& filename, const char* mode) { + return fopen(filename.value().c_str(), mode); +} + bool CopyFile(const FilePath& from_path, const FilePath& to_path) { int infile = open(from_path.value().c_str(), O_RDONLY); if (infile < 0) -- cgit v1.1