Deflake AwContentsClientFullScreenTest
Header's content length should be set in ResourceMultiBufferDataProvider::DidReceiveResponse() and copied to url_data_ such that MultibufferDataSource::StartCallback() later determines the success of the reading. Then why is this flaky? ResourceMultiBufferDataProvider::DidFinishLoading() also copies the url data, so depending on the timing, StartCallback() could pick up the correct url data length, and the test passes when this happens. The expected content length information seems missing in AndroidStreamReaderUrlLoader. Also, when the test fails, readyState doesn't seem to change from 0 to 4 in blink::WebMediaPlayerImpl. I'm not entirely sure if this is needed for all the tests that require media playback, but this seems to make it more obvious where it fails. Bug: 936757 Change-Id: I62245808876385a05c8e011882e2122622ff5c40 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1548579Reviewed-by:Tim Volodine <timvolodine@chromium.org> Reviewed-by:
Nate Fischer <ntfschr@chromium.org> Reviewed-by:
Bo <boliu@chromium.org> Commit-Queue: Changwan Ryu <changwan@chromium.org> Cr-Commit-Position: refs/heads/master@{#649630}
Showing
Please register or sign in to comment