• Trent Apted's avatar
    Deflake MediaAppIntegrationTest.HandleRawFiles. · 3857b3d3
    Trent Apted authored
    File loading and app initialization are interleaved. Because
    the test Exif file is small, the codepath taken when file loading
    "wins" is taken in about 10% of test runs. RAW files need a delegate
    to extract an image preview, and this wasn't being set on this codepath
    until app initialization. This could cause the test to attempt to load
    the RAW file as a JPEG, resulting in a "decode" error.
    
    To fix, ensure a delegate is set along with the file list to load during
    app initialization when that codepath is taken.
    
    Bug: 1152318
    Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome
    Change-Id: I12b37c3f6b6228c621fdb36f975200c74da5d227
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2562921Reviewed-by: default avatarBugs Nash <bugsnash@chromium.org>
    Commit-Queue: Trent Apted <tapted@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#832600}
    3857b3d3
receiver.js 9.98 KB