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

Issue 291753002: Reland "Move a good set of gfx unit tests into gfx_unittests target." (Closed)

Created:
6 years, 7 months ago by tfarina
Modified:
6 years, 7 months ago
Reviewers:
danakj, sadrul
CC:
chromium-reviews, Ben Goodger (Google), Elliot Glaysher
Visibility:
Public.

Description

Reland "Move a good set of gfx unit tests into gfx_unittests target." It was reverted in r270600 because it broke compilation: lib/libgfx.so:error: undefined reference to 'XCreateRegion' lib/libgfx.so:error: undefined reference to 'XUnionRectWithRegion' lib/libgfx.so:error: undefined reference to 'XPolygonRegion' Original description: This requires to major changes: 1- It requires the introduction of GfxTestSuite to allow us to initialize the ResourceBundle which is required for some of these tests to pass. 2- It requires to split gfx_unittests target out of gfx.gyp, into gfx_tests.gyp. This is necessary because otherwise a circular dependency between ui_base.gyp and gfx.gyp would arise. The circular dependency is the form of: gfx.gyp -> ui_base.gyp -> gfx.gyp And is created because gfx_unittests now requires ResourceBundle to link which is in ui_base target. BUG=331829 TEST=ui_unittests,gfx_unittests R=sadrul@chromium.org, danakj@chromium.org TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272088

Patch Set 1 #

Total comments: 3

Patch Set 2 : move to gfx #

Total comments: 4

Patch Set 3 : change to use UI_TEST_PAK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+203 lines, -127 lines) Patch
M build/all.gyp View 1 10 chunks +10 lines, -10 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 3 chunks +1 line, -106 lines 0 comments Download
A ui/gfx/gfx_tests.gyp View 1 1 chunk +136 lines, -0 lines 0 comments Download
A ui/gfx/test/DEPS View 1 chunk +6 lines, -0 lines 0 comments Download
A ui/gfx/test/run_all_unittests.cc View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M ui/ui_unittests.gyp View 1 3 chunks +1 line, -11 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
tfarina
Elliot, Sadrul can I have an extra pair of more experienced Linux eyes to look ...
6 years, 7 months ago (2014-05-18 05:18:36 UTC) #1
tfarina
On 2014/05/18 05:18:36, tfarina wrote: > With this an -lX11 is added to the command ...
6 years, 7 months ago (2014-05-18 05:21:34 UTC) #2
sadrul
https://codereview.chromium.org/291753002/diff/1/ui/gfx/gfx.gyp File ui/gfx/gfx.gyp (right): https://codereview.chromium.org/291753002/diff/1/ui/gfx/gfx.gyp#newcode375 ui/gfx/gfx.gyp:375: 'x/gfx_x11.gyp:gfx_x11', path_x11.cc uses the XCreateRegion etc. functions. So perhaps ...
6 years, 7 months ago (2014-05-20 16:53:31 UTC) #3
tfarina
https://codereview.chromium.org/291753002/diff/1/ui/gfx/gfx.gyp File ui/gfx/gfx.gyp (right): https://codereview.chromium.org/291753002/diff/1/ui/gfx/gfx.gyp#newcode375 ui/gfx/gfx.gyp:375: 'x/gfx_x11.gyp:gfx_x11', On 2014/05/20 16:53:31, sadrul wrote: > path_x11.cc uses ...
6 years, 7 months ago (2014-05-20 21:08:59 UTC) #4
sadrul
https://codereview.chromium.org/291753002/diff/40001/ui/gfx/test/run_all_unittests.cc File ui/gfx/test/run_all_unittests.cc (right): https://codereview.chromium.org/291753002/diff/40001/ui/gfx/test/run_all_unittests.cc#newcode31 ui/gfx/test/run_all_unittests.cc:31: ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file); Does the gfx tests actually use anything from ...
6 years, 7 months ago (2014-05-21 18:49:10 UTC) #5
tfarina
https://codereview.chromium.org/291753002/diff/40001/ui/gfx/test/run_all_unittests.cc File ui/gfx/test/run_all_unittests.cc (right): https://codereview.chromium.org/291753002/diff/40001/ui/gfx/test/run_all_unittests.cc#newcode31 ui/gfx/test/run_all_unittests.cc:31: ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file); On 2014/05/21 18:49:10, sadrul wrote: > Does the ...
6 years, 7 months ago (2014-05-21 19:03:34 UTC) #6
sadrul
Do we need to update the BUILD.gn files? The x11 dep-change lgtm https://codereview.chromium.org/291753002/diff/40001/ui/gfx/test/run_all_unittests.cc File ui/gfx/test/run_all_unittests.cc ...
6 years, 7 months ago (2014-05-21 19:10:21 UTC) #7
tfarina
https://codereview.chromium.org/291753002/diff/40001/ui/gfx/test/run_all_unittests.cc File ui/gfx/test/run_all_unittests.cc (right): https://codereview.chromium.org/291753002/diff/40001/ui/gfx/test/run_all_unittests.cc#newcode31 ui/gfx/test/run_all_unittests.cc:31: ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file); On 2014/05/21 19:10:21, sadrul wrote: > On 2014/05/21 ...
6 years, 7 months ago (2014-05-21 19:28:53 UTC) #8
tfarina
I will do GN separately, as this change is already too risky. And I don't ...
6 years, 7 months ago (2014-05-21 19:38:14 UTC) #9
tfarina
6 years, 7 months ago (2014-05-22 04:11:30 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 manually as r272088 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698