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

Issue 394963002: linux: Add tests for FontRenderParams on Linux. (Closed)

Created:
6 years, 5 months ago by Daniel Erat
Modified:
6 years, 5 months ago
CC:
chromium-reviews, jochen (gone - plz use gerrit), jam, willchan no longer on Chromium
Project:
chromium
Visibility:
Public.

Description

linux: Add tests for FontRenderParams on Linux. Add some tests for FontRenderParams's interactions with Fontconfig, which is used on desktop Linux and Chrome OS. Also re-add platform_font_pango_unittest.cc for gn. BUG=125235 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283969

Patch Set 1 #

Patch Set 2 : minor updates #

Total comments: 22

Patch Set 3 : refactor test-related code into a library #

Patch Set 4 : add pangocairo dependency to gn #

Patch Set 5 : remove net dependency #

Patch Set 6 : add pangoft2 to BUILD.gn #

Total comments: 10

Patch Set 7 : re-add gn pangocairo dependency for platform_font_pango_unittest #

Patch Set 8 : apply more review feedback #

Patch Set 9 : fix embarrassingly-broken comparison #

Unified diffs Side-by-side diffs Delta from patch set Stats (+393 lines, -124 lines) Patch
M build/config/linux/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
M content/shell/app/webkit_test_platform_support_linux.cc View 1 2 3 4 5 6 7 8 1 chunk +29 lines, -124 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 5 6 3 chunks +14 lines, -0 lines 0 comments Download
A ui/gfx/font_render_params_linux_unittest.cc View 1 2 3 4 5 6 7 1 chunk +134 lines, -0 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M ui/gfx/gfx_tests.gyp View 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A ui/gfx/test/fontconfig_util_linux.h View 1 2 3 4 5 6 7 1 chunk +59 lines, -0 lines 0 comments Download
A ui/gfx/test/fontconfig_util_linux.cc View 1 2 3 4 5 6 7 1 chunk +145 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
Daniel Erat
will, i'm just adding you for the net/base dependency. https://codereview.chromium.org/394963002/diff/20001/ui/gfx/font_render_params_linux_unittest.cc File ui/gfx/font_render_params_linux_unittest.cc (right): https://codereview.chromium.org/394963002/diff/20001/ui/gfx/font_render_params_linux_unittest.cc#newcode33 ui/gfx/font_render_params_linux_unittest.cc:33: ...
6 years, 5 months ago (2014-07-15 22:09:45 UTC) #1
Daniel Erat
https://codereview.chromium.org/394963002/diff/20001/ui/gfx/BUILD.gn File ui/gfx/BUILD.gn (right): https://codereview.chromium.org/394963002/diff/20001/ui/gfx/BUILD.gn#newcode417 ui/gfx/BUILD.gn:417: "platform_font_pango_unittest.cc", this looks like it got dropped in the ...
6 years, 5 months ago (2014-07-15 22:12:21 UTC) #2
msw
+CC jochen and jam for Fontconfig testing experience, as per r161351 (content/shell/app/webkit_test_platform_support_linux.cc) https://codereview.chromium.org/394963002/diff/20001/ui/gfx/BUILD.gn File ui/gfx/BUILD.gn ...
6 years, 5 months ago (2014-07-16 00:53:31 UTC) #3
willchan no longer on Chromium
https://codereview.chromium.org/394963002/diff/20001/ui/gfx/font_render_params_linux_unittest.cc File ui/gfx/font_render_params_linux_unittest.cc (right): https://codereview.chromium.org/394963002/diff/20001/ui/gfx/font_render_params_linux_unittest.cc#newcode71 ui/gfx/font_render_params_linux_unittest.cc:71: const std::string path = net::EscapeForHTML( On 2014/07/16 00:53:31, msw ...
6 years, 5 months ago (2014-07-16 01:35:39 UTC) #4
Daniel Erat
https://codereview.chromium.org/394963002/diff/20001/ui/gfx/font_render_params_linux_unittest.cc File ui/gfx/font_render_params_linux_unittest.cc (right): https://codereview.chromium.org/394963002/diff/20001/ui/gfx/font_render_params_linux_unittest.cc#newcode61 ui/gfx/font_render_params_linux_unittest.cc:61: FontRenderParamsTest() { On 2014/07/16 00:53:31, msw wrote: > Should ...
6 years, 5 months ago (2014-07-16 03:19:47 UTC) #5
willchan no longer on Chromium
lgtm then
6 years, 5 months ago (2014-07-16 04:04:40 UTC) #6
msw
lgtm as-is, but I can take another look if you change the font list pattern ...
6 years, 5 months ago (2014-07-16 17:15:23 UTC) #7
Daniel Erat
i've moved the code that's shared between content/ and my new test into ui/gfx/test/fontconfig_util_linux.{h,cc}. mind ...
6 years, 5 months ago (2014-07-16 19:37:44 UTC) #8
Daniel Erat
(moved will to cc since the net/ dependency is gone now)
6 years, 5 months ago (2014-07-16 19:38:16 UTC) #9
msw
lgtm with nits, but you may need additional owners. https://codereview.chromium.org/394963002/diff/100001/ui/gfx/test/fontconfig_util_linux.cc File ui/gfx/test/fontconfig_util_linux.cc (right): https://codereview.chromium.org/394963002/diff/100001/ui/gfx/test/fontconfig_util_linux.cc#newcode48 ui/gfx/test/fontconfig_util_linux.cc:48: ...
6 years, 5 months ago (2014-07-16 22:38:07 UTC) #10
Daniel Erat
+brettw for BUILD.gn and content/ https://codereview.chromium.org/394963002/diff/100001/ui/gfx/test/fontconfig_util_linux.cc File ui/gfx/test/fontconfig_util_linux.cc (right): https://codereview.chromium.org/394963002/diff/100001/ui/gfx/test/fontconfig_util_linux.cc#newcode48 ui/gfx/test/fontconfig_util_linux.cc:48: "/usr/share/fonts/truetype/kochi/kochi-gothic.ttf", On 2014/07/16 22:38:07, ...
6 years, 5 months ago (2014-07-16 23:10:19 UTC) #11
msw
still lgtm https://codereview.chromium.org/394963002/diff/100001/ui/gfx/test/fontconfig_util_linux.cc File ui/gfx/test/fontconfig_util_linux.cc (right): https://codereview.chromium.org/394963002/diff/100001/ui/gfx/test/fontconfig_util_linux.cc#newcode107 ui/gfx/test/fontconfig_util_linux.cc:107: bool LoadConfigDataIntoFontconfig(const base::FilePath& temp_dir, On 2014/07/16 23:10:18, ...
6 years, 5 months ago (2014-07-16 23:19:24 UTC) #12
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 5 months ago (2014-07-17 02:23:11 UTC) #13
Daniel Erat
The CQ bit was unchecked by derat@chromium.org
6 years, 5 months ago (2014-07-17 02:23:31 UTC) #14
brettw
build/config/linux LGTM
6 years, 5 months ago (2014-07-17 17:19:39 UTC) #15
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 5 months ago (2014-07-17 17:59:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/394963002/50008
6 years, 5 months ago (2014-07-17 18:00:10 UTC) #17
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 22:11:50 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-17 22:32:46 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/172176)
6 years, 5 months ago (2014-07-17 22:32:47 UTC) #20
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 5 months ago (2014-07-17 22:43:40 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/394963002/50008
6 years, 5 months ago (2014-07-17 22:47:20 UTC) #22
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-17 23:09:28 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-17 23:32:40 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/172176)
6 years, 5 months ago (2014-07-17 23:32:41 UTC) #25
Daniel Erat
The CQ bit was checked by derat@chromium.org
6 years, 5 months ago (2014-07-18 00:04:00 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/derat@chromium.org/394963002/50008
6 years, 5 months ago (2014-07-18 00:07:07 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium ...
6 years, 5 months ago (2014-07-18 00:34:54 UTC) #28
commit-bot: I haz the power
6 years, 5 months ago (2014-07-18 01:44:27 UTC) #29
Message was sent while issue was closed.
Change committed as 283969

Powered by Google App Engine
This is Rietveld 408576698