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

Unified Diff: webkit/tools/test_shell/test_shell_gtk.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 | « chrome/test/tab_switching/tab_switching_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_gtk.cc
diff --git a/webkit/tools/test_shell/test_shell_gtk.cc b/webkit/tools/test_shell/test_shell_gtk.cc
index 86ce5d616592a9ad7b31588d838e293566a5b4a3..10a00b14ecd1fc7af65e5f2d10a79863b7f629b4 100644
--- a/webkit/tools/test_shell/test_shell_gtk.cc
+++ b/webkit/tools/test_shell/test_shell_gtk.cc
@@ -629,8 +629,8 @@ std::string TestShell::RewriteLocalUrl(const std::string& url) {
std::string new_url(url);
if (url.compare(0, kPrefixLen, kPrefix, kPrefixLen) == 0) {
FilePath replace_path;
- PathService::Get(base::DIR_EXE, &replace_path);
- replace_path = replace_path.DirName().DirName().Append(
+ PathService::Get(base::DIR_SOURCE_ROOT, &replace_path);
+ replace_path = replace_path.Append(
"webkit/data/layout_tests/LayoutTests/");
new_url = std::string("file://") + replace_path.value() +
url.substr(kPrefixLen);
« no previous file with comments | « chrome/test/tab_switching/tab_switching_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698