DescriptionWebSocket Pepper API: fix data corruption at ReceiveMessage in NaCl
PpbWebSocketRpcServer::PPB_WebSocket_ReceiveMessage sometime gets unexpected
synchronous PP_OK result on PPBWebSocketInterface calling. Receiving data is
passed only in completion callbacks. Then, it causes data corruption.
This CL fix this issue and in order to reproduce this synchronous PP_OK situation,
add one stress test, StressedSendReceive.
This CL also fix CcInterface test flakiness on Mac.
BUG=111636
TEST=browser_tests --test_filter='PPAPI*Test.WebSocket_CcInterfaces'; browser_tests --test_filter='PPAPI*Test.WebSocket_StressedSendReceive'
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128890
Patch Set 1 #Patch Set 2 : Using RunCompletionCallback #Patch Set 3 : create non-optional callback #Patch Set 4 : remove flaky prefix #
Total comments: 1
Patch Set 5 : reset optional flag #
Total comments: 4
Patch Set 6 : reflects review comments #Patch Set 7 : rebase #
Messages
Total messages: 9 (0 generated)
|