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

Issue 1739193004: ozone/platform/wayland: Use more realistic event processing and request flushing in tests (Closed)

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

Description

ozone/platform/wayland: Use more realistic event processing and request flushing in tests Now, we use a MessageLoop and wait for idle to determine when the client has processed pending events. This uncovered a number of situations where Wayland platform was not flushing the connection. To resolve this, add a ScheduleFlush method to flush at some later time, and call it when we send requests. BUG=578890 Committed: https://crrev.com/5fb40e71b18c6c32dce4451821c7866fe80ea5e9 Cr-Commit-Position: refs/heads/master@{#380419}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Use watching_ instead of base::MessageLoopForUI::IsCurrent() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -32 lines) Patch
M ui/ozone/platform/wayland/fake_server.h View 1 chunk +3 lines, -2 lines 0 comments Download
M ui/ozone/platform/wayland/fake_server.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_display.h View 3 chunks +6 lines, -2 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_display.cc View 1 5 chunks +31 lines, -9 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_display_unittest.cc View 2 chunks +11 lines, -5 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_surface_factory.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/ozone/platform/wayland/wayland_test.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_test.cc View 2 chunks +16 lines, -4 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_window.cc View 4 chunks +6 lines, -0 lines 0 comments Download
M ui/ozone/platform/wayland/wayland_window_unittest.cc View 2 chunks +1 line, -5 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 12 (3 generated)
Michael Forney
4 years, 10 months ago (2016-02-27 00:02:54 UTC) #2
spang
https://codereview.chromium.org/1739193004/diff/1/ui/ozone/platform/wayland/wayland_display.cc File ui/ozone/platform/wayland/wayland_display.cc (right): https://codereview.chromium.org/1739193004/diff/1/ui/ozone/platform/wayland/wayland_display.cc#newcode82 ui/ozone/platform/wayland/wayland_display.cc:82: if (scheduled_flush_ || !base::MessageLoopForUI::IsCurrent()) I strongly disagree with making ...
4 years, 9 months ago (2016-03-01 21:40:49 UTC) #3
Michael Forney
https://codereview.chromium.org/1739193004/diff/1/ui/ozone/platform/wayland/wayland_display.cc File ui/ozone/platform/wayland/wayland_display.cc (right): https://codereview.chromium.org/1739193004/diff/1/ui/ozone/platform/wayland/wayland_display.cc#newcode82 ui/ozone/platform/wayland/wayland_display.cc:82: if (scheduled_flush_ || !base::MessageLoopForUI::IsCurrent()) On 2016/03/01 21:40:49, spang wrote: ...
4 years, 9 months ago (2016-03-03 09:47:16 UTC) #4
spang
On 2016/03/03 09:47:16, Michael Forney wrote: > https://codereview.chromium.org/1739193004/diff/1/ui/ozone/platform/wayland/wayland_display.cc > File ui/ozone/platform/wayland/wayland_display.cc (right): > > https://codereview.chromium.org/1739193004/diff/1/ui/ozone/platform/wayland/wayland_display.cc#newcode82 ...
4 years, 9 months ago (2016-03-03 21:05:23 UTC) #5
Michael Forney
On 2016/03/03 21:05:23, spang wrote: > Checking a boolean instead SGTM. You already have watching_. ...
4 years, 9 months ago (2016-03-10 15:23:05 UTC) #6
spang
lgtm
4 years, 9 months ago (2016-03-10 15:59:39 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1739193004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1739193004/20001
4 years, 9 months ago (2016-03-10 16:07:26 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-10 16:41:34 UTC) #10
commit-bot: I haz the power
4 years, 9 months ago (2016-03-10 16:44:03 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/5fb40e71b18c6c32dce4451821c7866fe80ea5e9
Cr-Commit-Position: refs/heads/master@{#380419}

Powered by Google App Engine
This is Rietveld 408576698