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

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

Issue 2654933003: platform/testing/{URL|Unit}TestHelpers improvements (Closed)
Patch Set: cleanup Created 3 years, 11 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 29a0f58d7b27cf66a0170e165d6e8d6883c7cacb..ef08fa418370a87828cabd124efa76e90405f07f 100644
--- a/third_party/WebKit/Source/platform/fonts/FontTest.cpp
+++ b/third_party/WebKit/Source/platform/fonts/FontTest.cpp
@@ -13,13 +13,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