From 37088fefa67704ad6f18e1e72e2e6292ba48ee1b Mon Sep 17 00:00:00 2001 From: "erikkay@google.com" Date: Fri, 15 Aug 2008 17:32:10 +0000 Subject: Part two of file_util porting. Almost all of the functionality has been ported, including the unit tests now. Some of this API isn't great, and should be cleaned up, but I'd like to hold off and do that in a followup changelist. More general code cleanup is likely needed here as well. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@944 0039d316-1c4b-4281-b951-d872f2087c98 --- base/base_paths_mac.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'base/base_paths_mac.mm') diff --git a/base/base_paths_mac.mm b/base/base_paths_mac.mm index c88a433..e5b0c65 100644 --- a/base/base_paths_mac.mm +++ b/base/base_paths_mac.mm @@ -31,7 +31,9 @@ #import +#include "base/file_util.h" #include "base/logging.h" +#include "base/path_service.h" #include "base/string_util.h" namespace base { @@ -61,6 +63,14 @@ bool PathProviderMac(int key, std::wstring* result) { [path cStringUsingEncoding:NSUTF32StringEncoding]); break; } + case base::DIR_SOURCE_ROOT: + // On the mac, unit tests execute three levels deep from the source root. + // For example: chrome/build/{Debug|Release}/ui_tests + PathService::Get(base::DIR_EXE, &cur); + file_util::UpOneDirectory(&cur); + file_util::UpOneDirectory(&cur); + file_util::UpOneDirectory(&cur); + break; default: return false; } -- cgit v1.1