summaryrefslogtreecommitdiffstats
path: root/base/base_paths_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'base/base_paths_win.cc')
-rw-r--r--base/base_paths_win.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/base/base_paths_win.cc b/base/base_paths_win.cc
index 432bc90..0fe0101 100644
--- a/base/base_paths_win.cc
+++ b/base/base_paths_win.cc
@@ -124,6 +124,13 @@ bool PathProviderWin(int key, std::wstring* result) {
return false;
cur = system_buffer;
break;
+ case base::DIR_SOURCE_ROOT:
+ // On Windows, unit tests execute two levels deep from the source root.
+ // For example: chrome/{Debug|Release}/ui_tests.exe
+ PathProvider(base::DIR_EXE, &cur);
+ file_util::UpOneDirectory(&cur);
+ file_util::UpOneDirectory(&cur);
+ break;
default:
return false;
}