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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontTest.cpp

Issue 2654933003: platform/testing/{URL|Unit}TestHelpers improvements (Closed)
Patch Set: header changes Created 3 years, 10 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
Index: third_party/WebKit/Source/platform/fonts/FontTest.cpp
diff --git a/third_party/WebKit/Source/platform/fonts/FontTest.cpp b/third_party/WebKit/Source/platform/fonts/FontTest.cpp
index 78a19e4b8a0ecba1f9d4738cd33daf1dd1f6fe4f..0e60067064b1af5b046cdb55b6dccd1d29b58f6e 100644
--- a/third_party/WebKit/Source/platform/fonts/FontTest.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontTest.cpp
@@ -14,13 +14,9 @@ using blink::testing::createTestFont;
namespace blink {
-static inline String fontPath(String relativePath) {
- return testing::blinkRootDir() + "/Source/platform/testing/data/" +
- relativePath;
-}
-
TEST(FontTest, TextIntercepts) {
- Font font = createTestFont("Ahem", fontPath("Ahem.woff"), 16);
+ Font font =
+ createTestFont("Ahem", testing::platformTestDataPath("Ahem.woff"), 16);
// A sequence of LATIN CAPITAL LETTER E WITH ACUTE and LATIN SMALL LETTER P
// characters. E ACUTES are squares above the baseline in Ahem, while p's
// are rectangles below the baseline.

Powered by Google App Engine
This is Rietveld 408576698