Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6083)

Unified Diff: chrome/test/memory_test/memory_test.cc

Issue 192064: Hack to make tests work if out is a symlink: see if the current dir is the source root. (Closed)
Patch Set: use path.DirName().DirName() Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/base_paths_linux.cc ('k') | chrome/test/page_cycler/page_cycler_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/memory_test/memory_test.cc
diff --git a/chrome/test/memory_test/memory_test.cc b/chrome/test/memory_test/memory_test.cc
index 014d60128754ff267e6d8dcbb90d4a6988cbf0a5..63367d3176164bc08d08547271b7c58adf88f517 100644
--- a/chrome/test/memory_test/memory_test.cc
+++ b/chrome/test/memory_test/memory_test.cc
@@ -48,9 +48,7 @@ class MemoryTest : public UITest {
if (profile_dir.empty()) {
// Compute the user-data-dir which contains our test cache.
- PathService::Get(base::DIR_EXE, &profile_dir);
- profile_dir = profile_dir.DirName();
- profile_dir = profile_dir.DirName();
+ PathService::Get(base::DIR_SOURCE_ROOT, &profile_dir);
profile_dir = profile_dir.AppendASCII("data");
profile_dir = profile_dir.AppendASCII("memory_test");
profile_dir = profile_dir.AppendASCII("general_mix");
« no previous file with comments | « base/base_paths_linux.cc ('k') | chrome/test/page_cycler/page_cycler_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698