• bsheedy's avatar
    Add test support for WebVR auto presentation · 8a3c2e92
    bsheedy authored
    Adds test utility code that allows Chrome to think it's received an intent
    from a trusted app. This allows us to test Chrome's ability to auto present
    WebVR content when given a link from a trusted app (or test its rejection
    if the app is not trusted). Also adds one test using the new code.
    
    Also contains a drive-by fix for flakiness in
    WebVrTransitionTest#testNfcFiresVrdisplayactivate caused by a race
    condition when adding the vrdisplayactivate listener.
    
    Bug: 746086
    Change-Id: Ic6b55df18d915a4e36b36ca43bd11f4c773f6d33
    Reviewed-on: https://chromium-review.googlesource.com/578527
    Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
    Reviewed-by: default avatarMichael Thiessen <mthiesse@chromium.org>
    Reviewed-by: default avatarAndrew Grieve <agrieve@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#488408}
    8a3c2e92
BUILD.gn 41.8 KB