summaryrefslogtreecommitdiffstats
path: root/base/file_util_linux.cc
diff options
context:
space:
mode:
authorevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 01:04:11 +0000
committerevanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-15 01:04:11 +0000
commit4c0040c49331c5cb5b88960ecec04ce8a5f0756a (patch)
treeeb20f932e07a7c3fcb5bf144cba675d48ca791af /base/file_util_linux.cc
parent1b3deed79fc638d3755ba5159108712238d8beb7 (diff)
downloadchromium_src-4c0040c49331c5cb5b88960ecec04ce8a5f0756a.zip
chromium_src-4c0040c49331c5cb5b88960ecec04ce8a5f0756a.tar.gz
chromium_src-4c0040c49331c5cb5b88960ecec04ce8a5f0756a.tar.bz2
To pass string_util_unittest, we need the ICU data file. To get the ICU data file, we need some of PathService, which brings along with it a bunch of other needed functions. So here are a bunch of stubs, along with another file's worth of passing tests. (Based on a patch from Dean.)
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_linux.cc')
-rw-r--r--base/file_util_linux.cc30
1 files changed, 29 insertions, 1 deletions
diff --git a/base/file_util_linux.cc b/base/file_util_linux.cc
index 1d1a628..0795460 100644
--- a/base/file_util_linux.cc
+++ b/base/file_util_linux.cc
@@ -32,9 +32,17 @@
#include <string>
#include "base/logging.h"
+#include "base/notimplemented.h"
#include "base/string_util.h"
namespace file_util {
+
+const wchar_t kPathSeparator = L'/';
+
+bool AbsolutePath(std::wstring* path) {
+ NOTIMPLEMENTED();
+ return false;
+}
bool GetTempDir(std::wstring* path) {
const char* tmp = getenv("TMPDIR");
@@ -47,7 +55,27 @@ bool GetTempDir(std::wstring* path) {
bool CopyFile(const std::wstring& from_path, const std::wstring& to_path) {
// TODO(erikkay): implement
- DCHECK(false);
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool PathExists(const std::wstring& path) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool GetCurrentDirectory(std::wstring* path) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool CreateDirectory(const std::wstring& full_path) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+bool SetCurrentDirectory(const std::wstring& current_directory) {
+ NOTIMPLEMENTED();
return false;
}