• kylechar's avatar
    Use TestGpuServiceHolder in more tests. · 818583c6
    kylechar authored
    Change InProcessContextProvider to use TestGpuServiceHolder instead of
    GetTestGpuThreadHolder(). Both provide a working GPU thread but
    TestGpuServiceProvider has a working GpuServiceImpl which is required
    for SkiaRenderer.
    
    A few test suites need mojo initialized for this to work.
    NativeWindowOcclusionTrackerTest is a special case of tests that aren't
    browser test based and don't get mojo initialized. We can safely
    initialize mojo at the start of each test as all interactive_ui_tests
    run in their own process.
    
    exo_unittests had a problem where GL was shutdown before the GPU
    service. Resetting the GPU service at the end of each test fixes this.
    
    Bug: 956144
    Change-Id: I0cba4b892e81f50e84b13a20324f7eacd5f3a45c
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1632913Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
    Reviewed-by: default avatarScott Violet <sky@chromium.org>
    Reviewed-by: default avatarJonathan Backer <backer@chromium.org>
    Commit-Queue: kylechar <kylechar@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#675619}
    818583c6
DEPS 117 Bytes