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

Unified Diff: content/common/content_paths.cc

Issue 9820005: Move PathService's DIR_LAYOUT_TESTS from chrome to content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove indexed_db_uitest changes Created 8 years, 9 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 | « content/browser/in_process_webkit/dom_storage_uitest.cc ('k') | content/public/common/content_paths.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_paths.cc
diff --git a/content/common/content_paths.cc b/content/common/content_paths.cc
index 1c91d9ad7e94caba100e58d94bae820c82862b1f..6f828b858dd24c62c68b598dd5fae86e6502d3b3 100644
--- a/content/common/content_paths.cc
+++ b/content/common/content_paths.cc
@@ -37,6 +37,24 @@ bool PathProvider(int key, FilePath* result) {
return PathService::Get(base::DIR_MODULE, result);
#endif
}
+ case DIR_LAYOUT_TESTS: {
+ FilePath cur;
+ if (!PathService::Get(base::DIR_SOURCE_ROOT, &cur))
+ return false;
+ cur = cur.Append(FILE_PATH_LITERAL("third_party"));
+ cur = cur.Append(FILE_PATH_LITERAL("WebKit"));
+ cur = cur.Append(FILE_PATH_LITERAL("LayoutTests"));
+ if (file_util::DirectoryExists(cur)) {
+ *result = cur;
+ return true;
+ }
+ if (!PathService::Get(DIR_TEST_DATA, &cur))
+ return false;
+ cur = cur.Append(FILE_PATH_LITERAL("layout_tests"));
+ cur = cur.Append(FILE_PATH_LITERAL("LayoutTests"));
+ *result = cur;
+ return true;
+ }
default:
return false;
}
« no previous file with comments | « content/browser/in_process_webkit/dom_storage_uitest.cc ('k') | content/public/common/content_paths.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698