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

Issue 299893002: Fix PPAPINaClNewlibTest.PostMessage flakiness (Closed)

Created:
6 years, 7 months ago by raymes
Modified:
6 years, 7 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fix PPAPINaClNewlibTest.PostMessage flakiness Previously PPAPINaClNewlibTest.PostMessage SendInInit was flaking. The problem seems to be that the messages that are sent in Init() may be replied to and handled in HandleMessage() before RunTests() is run (Init() and RunTests() are called asynchronously). When this is the case, WaitForMessages() can return 0, even though the message from Init() is properly received, because the value of message_data_.size() is 1 before and after the function returns. There is actually no need to check the return value of this function, checking the size of message_data_.size() (which we already do) should be sufficient. BUG=372630 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272542

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -9 lines) Patch
M chrome/test/ppapi/ppapi_browsertest.cc View 1 chunk +2 lines, -8 lines 0 comments Download
M ppapi/tests/test_post_message.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
raymes
6 years, 7 months ago (2014-05-23 06:09:59 UTC) #1
dmichael (off chromium)
lgtm, nice catch!
6 years, 7 months ago (2014-05-23 15:29:22 UTC) #2
dmichael (off chromium)
lgtm, nice catch!
6 years, 7 months ago (2014-05-23 15:29:23 UTC) #3
dmichael (off chromium)
The CQ bit was checked by dmichael@chromium.org
6 years, 7 months ago (2014-05-23 15:29:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/299893002/1
6 years, 7 months ago (2014-05-23 15:30:37 UTC) #5
commit-bot: I haz the power
Change committed as 272542
6 years, 7 months ago (2014-05-23 15:56:04 UTC) #6
raymes
6 years, 7 months ago (2014-05-26 01:00:08 UTC) #7
Thanks for landing!


On Sat, May 24, 2014 at 1:56 AM, <commit-bot@chromium.org> wrote:

> Change committed as 272542
>
> https://codereview.chromium.org/299893002/
>

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