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

Issue 280973003: 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
CC:
chromium-reviews
Visibility:
Public.

Description

Move a good set of gfx unit tests into gfx_unittests target. 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=danakj@chromium.org TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=270586

Patch Set 1 : #

Patch Set 2 : rm gl dependency - gfx_unittests does not need it to run #

Total comments: 2

Patch Set 3 : rm gl exception from DEPS file #

Patch Set 4 : REBASE #

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

Messages

Total messages: 26 (0 generated)
tfarina
This needs a real review. ptal. thanks
6 years, 7 months ago (2014-05-14 03:17:00 UTC) #1
danakj
LGTM https://codereview.chromium.org/280973003/diff/60001/ui/gfx/test/DEPS File ui/gfx/test/DEPS (right): https://codereview.chromium.org/280973003/diff/60001/ui/gfx/test/DEPS#newcode5 ui/gfx/test/DEPS:5: "+ui/gl/gl_surface.h", this isn't used in the run_all_unittests.cc file. ...
6 years, 7 months ago (2014-05-14 14:16:02 UTC) #2
tfarina
https://codereview.chromium.org/280973003/diff/60001/ui/gfx/test/DEPS File ui/gfx/test/DEPS (right): https://codereview.chromium.org/280973003/diff/60001/ui/gfx/test/DEPS#newcode5 ui/gfx/test/DEPS:5: "+ui/gl/gl_surface.h", On 2014/05/14 14:16:03, danakj wrote: > this isn't ...
6 years, 7 months ago (2014-05-14 17:16:19 UTC) #3
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 7 months ago (2014-05-14 17:17:15 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/280973003/80001
6 years, 7 months ago (2014-05-14 17:17:40 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 19:03:41 UTC) #6
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 19:18:40 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/31391)
6 years, 7 months ago (2014-05-14 19:18:40 UTC) #8
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 7 months ago (2014-05-14 19:23:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/280973003/80001
6 years, 7 months ago (2014-05-14 19:24:16 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 19:44:10 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-14 19:58:44 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_rel/builds/31420)
6 years, 7 months ago (2014-05-14 19:58:44 UTC) #13
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 7 months ago (2014-05-14 20:24:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/280973003/80001
6 years, 7 months ago (2014-05-14 20:26:42 UTC) #15
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-14 20:43:49 UTC) #16
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 7 months ago (2014-05-14 20:49:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/280973003/100001
6 years, 7 months ago (2014-05-14 20:50:52 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-15 00:31:24 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 00:36:37 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/16643)
6 years, 7 months ago (2014-05-15 00:36:37 UTC) #21
tfarina
The CQ bit was checked by tfarina@chromium.org
6 years, 7 months ago (2014-05-15 00:50:33 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tfarina@chromium.org/280973003/100001
6 years, 7 months ago (2014-05-15 00:51:36 UTC) #23
tfarina
Committed patchset #4 manually as r270586 (presubmit successful).
6 years, 7 months ago (2014-05-15 05:58:15 UTC) #24
vabr (Chromium)
A revert of this CL has been created in https://codereview.chromium.org/290453002/ by vabr@chromium.org. The reason for ...
6 years, 7 months ago (2014-05-15 06:34:54 UTC) #25
tfarina
6 years, 7 months ago (2014-05-15 06:51:31 UTC) #26
On Thu, May 15, 2014 at 3:34 AM, <vabr@chromium.org> wrote:

> A revert of this CL has been created in
> https://codereview.chromium.org/290453002/ by vabr@chromium.org.
>
> The reason for reverting is: Speculative revert: Compilation appears
> broken on
> http://chromegw.corp.google.com/i/chromium.linux/builders/
> Linux%20Builder%20%28dbg%29
> after this CL, with libgfx-related errors:
>
> FAILED: /b/build/goma/gomacc c++ -Wl,-z,now -Wl,-z,relro
> -Wl,--fatal-warnings
> -pthread -Wl,-z,noexecstack -fPIC
> -B/b/build/slave/Linux_Builder__dbg_/build/src/third_
> party/binutils/Linux_x64/Release/bin
> -Wl,--disable-new-dtags -L. -Wl,-uIsHeapProfilerRunning,-uProfilerStart
> -Wl,-u_Z21InitialMallocHook_NewPKvj,-u_Z22InitialMallocHook_
> MMapPKvS0_jiiix,-u_Z22InitialMallocHook_SbrkPKvi
> -Wl,-u_Z21InitialMallocHook_NewPKvm,-u_Z22InitialMallocHook_
> MMapPKvS0_miiil,-u_Z22InitialMallocHook_SbrkPKvl
> -Wl,-u_ZN15HeapLeakChecker12IgnoreObjectEPKv,-u_
> ZN15HeapLeakChecker14UnIgnoreObjectEPKv
> -m64 -Wl,--icf=none -Wl,-rpath=\$ORIGIN/lib/ -Wl,-rpath-link=lib/ -o
> gfx_unittests -Wl,--start-group obj/ui/gfx/gfx_unittests.font_unittest.o
> obj/ui/gfx/image/gfx_unittests.image_family_unittest.o
> obj/ui/gfx/image/gfx_unittests.image_skia_unittest.o
> obj/ui/gfx/image/gfx_unittests.image_unittest.o
> obj/ui/gfx/image/gfx_unittests.image_unittest_util.o
> obj/ui/gfx/test/gfx_unittests.run_all_unittests.o
> obj/ui/gfx/gfx_unittests.text_elider_unittest.o
> obj/ui/gfx/gfx_unittests.text_utils_unittest.o
> obj/ui/gfx/animation/gfx_unittests.animation_container_unittest.o
> obj/ui/gfx/animation/gfx_unittests.animation_unittest.o
> obj/ui/gfx/animation/gfx_unittests.multi_animation_unittest.o
> obj/ui/gfx/animation/gfx_unittests.slide_animation_unittest.o
> obj/ui/gfx/animation/gfx_unittests.tween_unittest.o
> obj/ui/gfx/gfx_unittests.blit_unittest.o
> obj/ui/gfx/gfx_unittests.break_list_unittest.o
> obj/ui/gfx/codec/gfx_unittests.jpeg_codec_unittest.o
> obj/ui/gfx/codec/gfx_unittests.png_codec_unittest.o
> obj/ui/gfx/gfx_unittests.color_analysis_unittest.o
> obj/ui/gfx/gfx_unittests.color_utils_unittest.o
> obj/ui/gfx/gfx_unittests.display_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.box_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.cubic_bezier_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.insets_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.matrix3_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.point_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.point3_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.quad_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.r_tree_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.rect_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.safe_integer_conversions_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.size_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.vector2d_unittest.o
> obj/ui/gfx/geometry/gfx_unittests.vector3d_unittest.o
> obj/ui/gfx/image/gfx_unittests.image_util_unittest.o
> obj/ui/gfx/range/gfx_unittests.range_unittest.o
> obj/ui/gfx/gfx_unittests.sequential_id_generator_unittest.o
> obj/ui/gfx/gfx_unittests.shadow_value_unittest.o
> obj/ui/gfx/gfx_unittests.skbitmap_operations_unittest.o
> obj/ui/gfx/gfx_unittests.skrect_conversion_unittest.o
> obj/ui/gfx/gfx_unittests.transform_util_unittest.o
> obj/ui/gfx/gfx_unittests.utf16_indexing_unittest.o
> obj/ui/gfx/gfx_unittests.transform_unittest.o
> obj/ui/gfx/gfx_unittests.interpolated_transform_unittest.o
> obj/ui/gfx/gfx_unittests.platform_font_pango_unittest.o
> obj/base/libtest_support_base.a obj/testing/libgtest.a
> obj/third_party/libpng/libpng.a obj/ui/gfx/libgfx_test_support.a
> obj/base/allocator/liballocator.a obj/base/libbase_static.a
> obj/testing/libgmock.a obj/third_party/libxml/libxml2.a
> obj/third_party/zlib/libchrome_zlib.a
> obj/base/third_party/dynamic_annotations/libdynamic_annotations.a
> lib/libui_base.so lib/libgfx.so lib/libicuuc.so lib/libskia.so
> lib/libbase.so
> lib/libgfx_geometry.so lib/libbase_i18n.so

here we need libgfx_11.so. Where is it?


> -Wl,--end-group -lrt -ldl
> -lfontconfig -lpangocairo-1.0 -lcairo -lpangoft2-1.0 -lpango-1.0 -lfreetype
> -lgobject-2.0 -lglib-2.0
> lib/libgfx.so:error: undefined reference to 'XCreateRegion'
> lib/libgfx.so:error: undefined reference to 'XUnionRectWithRegion'
> lib/libgfx.so:error: undefined reference to 'XPolygonRegion'
> collect2: ld returned 1 exit status.
>
> Those functions are only called in path_x11.cc.

I don't know yet how my patch broke that. I need some sleep.

Sadrul, could you help me here?


> https://codereview.chromium.org/280973003/
>



-- 
Thiago Farina

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698