Index: base/base_paths.cc |
diff --git a/base/base_paths.cc b/base/base_paths.cc |
index 05a55af66b7439b834d4130b36920ec2a46d24b8..b90efba0fffb440a02ddeaf3cf05f229574d14ad 100644 |
--- a/base/base_paths.cc |
+++ b/base/base_paths.cc |
@@ -15,18 +15,27 @@ bool PathProvider(int key, FilePath* result) { |
FilePath cur; |
switch (key) { |
- case base::DIR_EXE: |
- PathService::Get(base::FILE_EXE, &cur); |
+ case DIR_EXE: |
+ PathService::Get(FILE_EXE, &cur); |
cur = cur.DirName(); |
break; |
- case base::DIR_MODULE: |
- PathService::Get(base::FILE_MODULE, &cur); |
+ case DIR_MODULE: |
+ PathService::Get(FILE_MODULE, &cur); |
cur = cur.DirName(); |
break; |
- case base::DIR_TEMP: |
+ case DIR_TEMP: |
if (!file_util::GetTempDir(&cur)) |
return false; |
break; |
+ case DIR_TEST_DATA: |
M-A Ruel
2013/04/04 14:48:06
This broke isolated testing. I'll send a follow up
|
+ if (!PathService::Get(DIR_SOURCE_ROOT, &cur)) |
+ return false; |
+ cur = cur.Append(FILE_PATH_LITERAL("base")); |
+ cur = cur.Append(FILE_PATH_LITERAL("test")); |
+ cur = cur.Append(FILE_PATH_LITERAL("data")); |
+ if (!file_util::PathExists(cur)) // We don't want to create this. |
+ return false; |
+ break; |
default: |
return false; |
} |