• bsheedy's avatar
    Add VR UiInputManagerForTesting · b3cc34d8
    bsheedy authored
    Adds a test-only UiInputManager that gets swapped with the real one
    anytime we're using the InputDelegateForTesting. Currently, the only
    difference is that the testing version always reports that the
    controller is not in the viewport.
    
    This is so that pixel diff tests are not flaky based on the initial
    orientation of the device - without this, the controller tooltips
    would remain visible if the device started pointed slightly down
    even though we lock the head pose forward.
    
    Bug: 904012
    Change-Id: Ia34944bd9d678c43480ef218b2d740928732f5ae
    Reviewed-on: https://chromium-review.googlesource.com/c/1334941
    Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
    Reviewed-by: default avatarChristopher Grant <cjgrant@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#608545}
    b3cc34d8
ui_input_manager_unittest.cc 24.4 KB