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

Issue 8515014: Fix flaky PPAPITest.FlashClipboard. (Closed)

Created:
9 years, 1 month ago by yzshen1
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix flaky PPAPITest.FlashClipboard. BUG=None TEST=PPAPITest.FlashClipboard passes. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109724

Patch Set 1 #

Patch Set 2 : Do the same thing for IsFormatAvailable. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -29 lines) Patch
M chrome/test/ui/ppapi_uitest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/tests/test_core.cc View 1 chunk +1 line, -18 lines 0 comments Download
M ppapi/tests/test_flash_clipboard.cc View 1 1 chunk +30 lines, -9 lines 2 comments Download
M ppapi/tests/test_utils.h View 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/tests/test_utils.cc View 2 chunks +15 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
yzshen1
Hi, David. Would you please take a look? Thanks!
9 years, 1 month ago (2011-11-10 22:19:46 UTC) #1
dmichael (off chromium)
lgtm
9 years, 1 month ago (2011-11-10 22:57:07 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/8515014/3001
9 years, 1 month ago (2011-11-11 21:06:08 UTC) #3
commit-bot: I haz the power
Change committed as 109724
9 years, 1 month ago (2011-11-11 23:22:53 UTC) #4
Paweł Hajdan Jr.
Drive-by, FYI. http://codereview.chromium.org/8515014/diff/3001/ppapi/tests/test_flash_clipboard.cc File ppapi/tests/test_flash_clipboard.cc (right): http://codereview.chromium.org/8515014/diff/3001/ppapi/tests/test_flash_clipboard.cc#newcode38 ppapi/tests/test_flash_clipboard.cc:38: // or ReadPlainText() immediately. We need to ...
9 years, 1 month ago (2011-11-14 12:32:48 UTC) #5
dmichael (off chromium)
http://codereview.chromium.org/8515014/diff/3001/ppapi/tests/test_flash_clipboard.cc File ppapi/tests/test_flash_clipboard.cc (right): http://codereview.chromium.org/8515014/diff/3001/ppapi/tests/test_flash_clipboard.cc#newcode38 ppapi/tests/test_flash_clipboard.cc:38: // or ReadPlainText() immediately. We need to wait and ...
9 years, 1 month ago (2011-11-14 15:48:15 UTC) #6
yzshen1
On 2011/11/14 15:48:15, dmichael wrote: > http://codereview.chromium.org/8515014/diff/3001/ppapi/tests/test_flash_clipboard.cc > File ppapi/tests/test_flash_clipboard.cc (right): > > http://codereview.chromium.org/8515014/diff/3001/ppapi/tests/test_flash_clipboard.cc#newcode38 > ...
9 years, 1 month ago (2011-11-14 18:40:46 UTC) #7
dmichael(do not use this one)
On Mon, Nov 14, 2011 at 11:40 AM, <yzshen@chromium.org> wrote: > On 2011/11/14 15:48:15, dmichael ...
9 years, 1 month ago (2011-11-14 18:59:53 UTC) #8
yzshen1
9 years, 1 month ago (2011-11-14 19:05:09 UTC) #9
On 2011/11/14 18:59:53, dmichael(do not use this one) wrote:
> On Mon, Nov 14, 2011 at 11:40 AM, <mailto:yzshen@chromium.org> wrote:
> 
> > On 2011/11/14 15:48:15, dmichael wrote:
> >
> > http://codereview.chromium.**org/8515014/diff/3001/ppapi/**
> >
>
tests/test_flash_clipboard.cc<http://codereview.chromium.org/8515014/diff/3001/ppapi/tests/test_flash_clipboard.cc>
> >
> >> File ppapi/tests/test_flash_**clipboard.cc (right):
> >>
> >
> >
> > http://codereview.chromium.**org/8515014/diff/3001/ppapi/**
> >
>
tests/test_flash_clipboard.cc#**newcode38<http://codereview.chromium.org/8515014/diff/3001/ppapi/tests/test_flash_clipboard.cc#newcode38>
> >
> >> ppapi/tests/test_flash_**clipboard.cc:38: // or ReadPlainText()
> >> immediately. We
> >> need to wait and retry.
> >> On 2011/11/14 12:32:48, Paweł Hajdan Jr. wrote:
> >> > I'm not sure how well this will work. If you really want to fix
> >> flakiness,
> >> > please make it wait for an event instead of sleeping in a loop.
> >>
> > This operation sends an asyc request to the browser process, which is
> > completed
> > there and doesn't send back any ACK.
> > So there is no event to wait for, unless we added ACK from browser to
> > renderer
> > (and from renderer to plugin, in the OOP case).
> >
> >
> >  Oops, he is right. I wasn't looking carefully enough. You need to use
> >> PPB_Testing_Dev.RunMessageLoop below instead of sleeping. I'm kind of
> >>
> > surprised
> >
> >> the OOP test is working.
> >>
> > Would you please explain why?
> > I thought the completion of this operation doesn't rely on any incoming
> > message,
> > so it is okay to sleep instead of running the message loop.
> >
> >  I see, I was assuming a different implementation than what's really
> there. Since you're using a Sync IPC from plugin to host for ReadPlainText,
> what you have should work.

Thanks for explanation, David!

> 
> >
> >
>
http://codereview.chromium.**org/8515014/%3Chttp://codereview.chromium.org/85...>
> >

Powered by Google App Engine
This is Rietveld 408576698