• raymes@chromium.org's avatar
    Fix PPAPINaClNewlibTest.PostMessage flakiness · cdd86bc9
    raymes@chromium.org authored
    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
    
    Review URL: https://codereview.chromium.org/299893002
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272542 0039d316-1c4b-4281-b951-d872f2087c98
    cdd86bc9
test_post_message.cc 34.1 KB