• Alex Cooper's avatar
    Add Tests for WebXR Tailored Consent · b62ef862
    Alex Cooper authored
    Adds four new tests around tailored consent/level scenarios:
    * TestConsentNotNeededForInline
    * TestConsentPersistsLowerLevel
    * TestConsentRepromptsHigherLevel
    * TestConsentRepromptsAfterReload
    
    Refactored WebXrVrConsentDialogBrowserTest methods into the base class
    and re-works how base class methods work.  The mock (which always
    accepts consent requests, but does not call out to display the dialog)
    is now used unless the fake consent manager has previously been set up.
    
    This allowed changing the consent tests to run on all runtimes rather
    than just the OpenVr Runtime.
    
    Renamed existing tests so that all test names fit a similar pattern.
    
    Bug: 987029,996454
    Change-Id: I9a4224fb169ee7df764a061fdb65038e42c05a8a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1767085
    Commit-Queue: Alexander Cooper <alcooper@chromium.org>
    Reviewed-by: default avatarBrian Sheedy <bsheedy@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#690024}
    b62ef862
webvr_browser_test.cc 1.85 KB