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

Issue 1673063002: ozone/platform/wayland: Add some tests (Closed)

Created:
4 years, 10 months ago by Michael Forney
Modified:
4 years, 10 months ago
Reviewers:
rjkroege, spang
CC:
chromium-reviews, kalyank, ozone-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ozone/platform/wayland: Add some tests BUG=578890 Committed: https://crrev.com/ee3223b8f37b4a7ad13a73808d7be8d59bf635d3 Cr-Commit-Position: refs/heads/master@{#375377}

Patch Set 1 #

Patch Set 2 : surface factory tests #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 13

Patch Set 5 : Fix test dependencies, add corresponding gyp rules #

Total comments: 11

Patch Set 6 : Address comments, mark several constructors as explicit #

Patch Set 7 : Server-owned mock objects, synchronization using WaitableEvent #

Patch Set 8 : Minor fixes #

Patch Set 9 : Use two WaitableEvents to prevent race, re-arrange some definitions, other minor test robustness fi… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+950 lines, -16 lines) Patch
M ui/ozone/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/wayland/BUILD.gn View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 0 comments Download
A ui/ozone/platform/wayland/fake_server.h View 1 2 3 4 5 6 7 8 1 chunk +189 lines, -0 lines 0 comments Download
A ui/ozone/platform/wayland/fake_server.cc View 1 2 3 4 5 6 7 8 1 chunk +350 lines, -0 lines 0 comments Download
A ui/ozone/platform/wayland/mock_platform_window_delegate.h View 1 1 chunk +32 lines, -0 lines 0 comments Download
A ui/ozone/platform/wayland/mock_platform_window_delegate.cc View 1 1 chunk +13 lines, -0 lines 0 comments Download
M ui/ozone/platform/wayland/wayland.gypi View 1 2 3 4 2 chunks +42 lines, -11 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_display.h View 1 2 3 4 2 chunks +4 lines, -2 lines 0 comments Download
A ui/ozone/platform/wayland/wayland_display_unittest.cc View 1 2 3 4 5 6 1 chunk +42 lines, -0 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_surface_factory.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ui/ozone/platform/wayland/wayland_surface_factory.cc View 1 1 chunk +1 line, -1 line 0 comments Download
A ui/ozone/platform/wayland/wayland_surface_factory_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +118 lines, -0 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_window.h View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download
A ui/ozone/platform/wayland/wayland_window_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +129 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (5 generated)
Michael Forney
https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/common/stub_client_native_pixmap_factory.h File ui/ozone/common/stub_client_native_pixmap_factory.h (right): https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/common/stub_client_native_pixmap_factory.h#newcode15 ui/ozone/common/stub_client_native_pixmap_factory.h:15: OZONE_EXPORT ClientNativePixmapFactory* CreateStubClientNativePixmapFactory(); This should probably go in a ...
4 years, 10 months ago (2016-02-08 22:45:48 UTC) #3
rjkroege
https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/BUILD.gn File ui/ozone/BUILD.gn (right): https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/BUILD.gn#newcode49 ui/ozone/BUILD.gn:49: ozone_platform_test_deps += [ "platform/wayland:wayland_unittests" ] I know that gn ...
4 years, 10 months ago (2016-02-09 01:30:40 UTC) #4
Michael Forney
https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/common/stub_client_native_pixmap_factory.h File ui/ozone/common/stub_client_native_pixmap_factory.h (right): https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/common/stub_client_native_pixmap_factory.h#newcode15 ui/ozone/common/stub_client_native_pixmap_factory.h:15: OZONE_EXPORT ClientNativePixmapFactory* CreateStubClientNativePixmapFactory(); On 2016/02/09 01:30:40, rjkroege wrote: > ...
4 years, 10 months ago (2016-02-09 01:50:18 UTC) #5
rjkroege
it's fine except for the missing gypi build? https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/common/stub_client_native_pixmap_factory.h File ui/ozone/common/stub_client_native_pixmap_factory.h (right): https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/common/stub_client_native_pixmap_factory.h#newcode15 ui/ozone/common/stub_client_native_pixmap_factory.h:15: OZONE_EXPORT ...
4 years, 10 months ago (2016-02-09 05:15:18 UTC) #6
spang
On 2016/02/09 05:15:18, rjkroege wrote: > it's fine except for the missing gypi build? > ...
4 years, 10 months ago (2016-02-09 19:12:21 UTC) #7
spang
https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/platform/wayland/BUILD.gn File ui/ozone/platform/wayland/BUILD.gn (right): https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/platform/wayland/BUILD.gn#newcode41 ui/ozone/platform/wayland/BUILD.gn:41: ":wayland", Remove this dependency.
4 years, 10 months ago (2016-02-09 19:14:24 UTC) #8
Michael Forney
On 2016/02/09 19:12:21, spang wrote: > Remove the ":wayland" source_set dependency to avoid linking a ...
4 years, 10 months ago (2016-02-09 19:47:16 UTC) #9
spang
On 2016/02/09 19:47:16, Michael Forney wrote: > On 2016/02/09 19:12:21, spang wrote: > > Remove ...
4 years, 10 months ago (2016-02-09 19:50:40 UTC) #10
Michael Forney
https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/BUILD.gn File ui/ozone/BUILD.gn (right): https://codereview.chromium.org/1673063002/diff/60001/ui/ozone/BUILD.gn#newcode49 ui/ozone/BUILD.gn:49: ozone_platform_test_deps += [ "platform/wayland:wayland_unittests" ] On 2016/02/09 01:30:40, rjkroege ...
4 years, 10 months ago (2016-02-10 02:01:00 UTC) #11
spang
https://codereview.chromium.org/1673063002/diff/80001/ui/ozone/platform/wayland/fake_server.cc File ui/ozone/platform/wayland/fake_server.cc (right): https://codereview.chromium.org/1673063002/diff/80001/ui/ozone/platform/wayland/fake_server.cc#newcode18 ui/ozone/platform/wayland/fake_server.cc:18: void Delete(wl_resource* resource) { DeleteResourceData? https://codereview.chromium.org/1673063002/diff/80001/ui/ozone/platform/wayland/fake_server.cc#newcode56 ui/ozone/platform/wayland/fake_server.cc:56: &DestroyResource, &Attach, ...
4 years, 10 months ago (2016-02-10 18:58:29 UTC) #12
Michael Forney
https://codereview.chromium.org/1673063002/diff/80001/ui/ozone/platform/wayland/fake_server.cc File ui/ozone/platform/wayland/fake_server.cc (right): https://codereview.chromium.org/1673063002/diff/80001/ui/ozone/platform/wayland/fake_server.cc#newcode56 ui/ozone/platform/wayland/fake_server.cc:56: &DestroyResource, &Attach, &Damage, On 2016/02/10 18:58:29, spang wrote: > ...
4 years, 10 months ago (2016-02-11 03:38:09 UTC) #13
spang
https://codereview.chromium.org/1673063002/diff/80001/ui/ozone/platform/wayland/fake_server.cc File ui/ozone/platform/wayland/fake_server.cc (right): https://codereview.chromium.org/1673063002/diff/80001/ui/ozone/platform/wayland/fake_server.cc#newcode88 ui/ozone/platform/wayland/fake_server.cc:88: if (obj->mock) On 2016/02/11 03:38:09, Michael Forney wrote: > ...
4 years, 10 months ago (2016-02-11 16:54:48 UTC) #14
Michael Forney
https://codereview.chromium.org/1673063002/diff/80001/ui/ozone/platform/wayland/fake_server.cc File ui/ozone/platform/wayland/fake_server.cc (right): https://codereview.chromium.org/1673063002/diff/80001/ui/ozone/platform/wayland/fake_server.cc#newcode88 ui/ozone/platform/wayland/fake_server.cc:88: if (obj->mock) On 2016/02/11 16:54:48, spang wrote: > On ...
4 years, 10 months ago (2016-02-12 00:49:58 UTC) #15
spang
On 2016/02/12 00:49:58, Michael Forney wrote: > https://codereview.chromium.org/1673063002/diff/80001/ui/ozone/platform/wayland/fake_server.cc > File ui/ozone/platform/wayland/fake_server.cc (right): > > https://codereview.chromium.org/1673063002/diff/80001/ui/ozone/platform/wayland/fake_server.cc#newcode88 ...
4 years, 10 months ago (2016-02-12 02:58:23 UTC) #16
Michael Forney
On 2016/02/12 02:58:23, spang wrote: > I do think you should create the mock in ...
4 years, 10 months ago (2016-02-12 04:14:09 UTC) #17
spang
On 2016/02/12 04:14:09, Michael Forney wrote: > On 2016/02/12 02:58:23, spang wrote: > > I ...
4 years, 10 months ago (2016-02-12 16:49:25 UTC) #18
Michael Forney
On 2016/02/12 16:49:25, spang wrote: > I'd be more concerned about the wl_client_get_object() call than ...
4 years, 10 months ago (2016-02-12 22:43:14 UTC) #19
spang
On 2016/02/12 22:43:14, Michael Forney wrote: > On 2016/02/12 16:49:25, spang wrote: > > I'd ...
4 years, 10 months ago (2016-02-13 04:01:00 UTC) #20
Michael Forney
Uploaded a new patch set after one final pass, and intentionally breaking various bits to ...
4 years, 10 months ago (2016-02-13 07:28:16 UTC) #21
spang
lgtm
4 years, 10 months ago (2016-02-13 11:34:04 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1673063002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1673063002/160001
4 years, 10 months ago (2016-02-14 02:15:47 UTC) #24
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 10 months ago (2016-02-14 02:55:23 UTC) #26
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:48:08 UTC) #28
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/ee3223b8f37b4a7ad13a73808d7be8d59bf635d3
Cr-Commit-Position: refs/heads/master@{#375377}

Powered by Google App Engine
This is Rietveld 408576698