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

Issue 2346733002: Cleanup render text tests to use RenderTextTestApi. (Closed)

Created:
4 years, 3 months ago by karandeepb
Modified:
4 years, 3 months ago
Reviewers:
msw
CC:
chromium-reviews, derat+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup render text tests to use RenderTextTestApi. Currently, the RenderText classes provide access to their private/protected members for tests using FRIEND_TEST_ALL_PREFIXES. This CL removes the need for these macros by adding helpers to RenderTextTestApi and the test fixture classes- RenderTextHarfBuzzTest and RenderTextMacTest. BUG=none Committed: https://crrev.com/77b028cf7da97d66d54e364b33b7274de69625c4 Cr-Commit-Position: refs/heads/master@{#419083}

Patch Set 1 #

Patch Set 2 : Fix compile. #

Total comments: 6

Patch Set 3 : Remove redundant headers. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -181 lines) Patch
M ui/gfx/render_text.h View 1 2 2 chunks +0 lines, -35 lines 0 comments Download
M ui/gfx/render_text_harfbuzz.h View 1 2 2 chunks +1 line, -25 lines 0 comments Download
M ui/gfx/render_text_mac.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M ui/gfx/render_text_unittest.cc View 1 41 chunks +177 lines, -119 lines 0 comments Download

Messages

Total messages: 20 (14 generated)
karandeepb
PTAL msw@. You had recommended doing this in http://crrev.com/2251893004.
4 years, 3 months ago (2016-09-15 04:39:37 UTC) #11
msw
Very nice! lgtm https://codereview.chromium.org/2346733002/diff/20001/ui/gfx/render_text.h File ui/gfx/render_text.h (right): https://codereview.chromium.org/2346733002/diff/20001/ui/gfx/render_text.h#newcode18 ui/gfx/render_text.h:18: #include "base/gtest_prod_util.h" nit: remove this now? ...
4 years, 3 months ago (2016-09-15 18:19:37 UTC) #12
karandeepb
https://codereview.chromium.org/2346733002/diff/20001/ui/gfx/render_text.h File ui/gfx/render_text.h (right): https://codereview.chromium.org/2346733002/diff/20001/ui/gfx/render_text.h#newcode18 ui/gfx/render_text.h:18: #include "base/gtest_prod_util.h" On 2016/09/15 18:19:37, msw wrote: > nit: ...
4 years, 3 months ago (2016-09-16 01:08:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2346733002/40001
4 years, 3 months ago (2016-09-16 01:10:24 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-16 02:53:42 UTC) #18
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 02:57:12 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/77b028cf7da97d66d54e364b33b7274de69625c4
Cr-Commit-Position: refs/heads/master@{#419083}

Powered by Google App Engine
This is Rietveld 408576698