• Wez's avatar
    Add POSIX-specific MessageLoopForIO unit-tests. · a7c13944
    Wez authored
    Each POSIX(ish) platform uses a different underlying MessagePumpForIO
    implementation, but all are required to implement a common interface
    to support asynchronous I/O on file descriptors.
    
    This CL adds a set of MessageLoopIoPosixTests, which exercise those
    functions to verify the semantics of all the implementations. These
    include existing tests moved from MessageLoopTest and
    MessagePumpLibeventTest, and a new test for mid-callback teardown.
    
    Bug: 
    Change-Id: I2b7071107342489530076dfc611738a7ec39065c
    Reviewed-on: https://chromium-review.googlesource.com/571518
    Commit-Queue: Wez <wez@chromium.org>
    Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#487337}
    a7c13944
message_loop_unittest.cc 33.8 KB