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

Unified Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2745293005: Moving mojo/validation test into LayoutTests (Closed)
Patch Set: Added BUILD action to generate data files list Created 3 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 | « BUILD.gn ('k') | mojo/edk/js/tests/run_js_unittests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/renderer/layout_test/blink_test_runner.cc
diff --git a/content/shell/renderer/layout_test/blink_test_runner.cc b/content/shell/renderer/layout_test/blink_test_runner.cc
index 638313ee669c24a32577a5bdd0d4099dff73b1bd..96f9de14646914fc91a0f46832bbe85a32f61638 100644
--- a/content/shell/renderer/layout_test/blink_test_runner.cc
+++ b/content/shell/renderer/layout_test/blink_test_runner.cc
@@ -371,7 +371,11 @@ WebURL BlinkTestRunner::RewriteLayoutTestsURL(const std::string& utf8_url,
const char kPrefix[] = "file:///tmp/LayoutTests/";
const int kPrefixLen = arraysize(kPrefix) - 1;
- if (utf8_url.compare(0, kPrefixLen, kPrefix, kPrefixLen))
+ const char genPrefix[] = "file:///gen/LayoutTests/";
+ const int genPrefixLen = arraysize(genPrefix) - 1;
+
+ if (utf8_url.compare(0, kPrefixLen, kPrefix, kPrefixLen) &&
+ utf8_url.compare(0, genPrefixLen, genPrefix, genPrefixLen))
damargulis 2017/03/18 01:22:43 I was able to use the BUILD.gn file to generate a
return WebURL(GURL(utf8_url));
base::FilePath replace_path =
« no previous file with comments | « BUILD.gn ('k') | mojo/edk/js/tests/run_js_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698