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

Unified Diff: ui/gfx/BUILD.gn

Issue 394963002: linux: Add tests for FontRenderParams on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix embarrassingly-broken comparison Created 6 years, 5 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: ui/gfx/BUILD.gn
diff --git a/ui/gfx/BUILD.gn b/ui/gfx/BUILD.gn
index 78c021199c7f3ceba5349915f39326846e513243..307e3d218135452156c57738a4b11fe090b3775c 100644
--- a/ui/gfx/BUILD.gn
+++ b/ui/gfx/BUILD.gn
@@ -360,6 +360,8 @@ component("gfx") {
source_set("gfx_test_support") {
sources = [
+ "test/fontconfig_util_linux.cc",
+ "test/fontconfig_util_linux.h",
"test/gfx_util.cc",
"test/gfx_util.h",
"test/ui_cocoa_test_helper.h",
@@ -380,10 +382,14 @@ source_set("gfx_test_support") {
"test/ui_cocoa_test_helper.mm",
]
}
+ if (is_linux) {
+ configs += [ "//build/config/linux:fontconfig" ]
+ }
}
test("gfx_unittests") {
sources = [
+ "font_render_params_linux_unittest.cc",
"geometry/box_unittest.cc",
"geometry/cubic_bezier_unittest.cc",
"geometry/insets_unittest.cc",
@@ -409,6 +415,14 @@ test("gfx_unittests") {
"//ui/base",
"//ui/gfx/geometry",
]
+
+ if (use_pango) {
+ sources += [ "platform_font_pango_unittest.cc" ]
+ configs += [
+ "//build/config/linux:pangocairo",
+ "//build/config/linux:pangoft2",
+ ]
+ }
}
if (is_android) {
« no previous file with comments | « content/shell/app/webkit_test_platform_support_linux.cc ('k') | ui/gfx/font_render_params_linux_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698