• miu's avatar
    Mojo: Fix data pipe ALL_OR_NONE write capacity check. · 6e49b250
    miu authored
    Fixes a bug where ALL_OR_NONE writes to data pipes were checking the
    total capacity of the pipe, rather than the available capacity. The bug
    allowed ALL_OR_NONE writes to succeed (MOJO_RESULT_OK), but in actuality
    only a portion of the data was written.
    
    Updated unit test with a case that fails w/o the fix, but passes with
    the fix.
    
    Review-Url: https://codereview.chromium.org/2341633005
    Cr-Commit-Position: refs/heads/master@{#418929}
    6e49b250
data_pipe_unittest.cc 74.6 KB