• Scott Violet's avatar
    aura: cleanup mus related test helper · a98c735e
    Scott Violet authored
    AuraTestHelper now always create a WindowTreeHost. This resulted in being
    able to remove some test code around configuring when to create the
    WindowTreeHost. The only ick that was needed to support this is in AxRemoteHost.
    AxRemoteHost assumed there was only one root, which isn't the case in test
    code anymore. I'm hoping that once we make AxRemoteHost support more than one
    root this code will go away.
    
    There was also some mild trickery around window ids. In particular
    WindowTreeClientPrivate has some functions that pass ids to WindowTreeClient.
    These ids are used in creating windows, and must be unique. Because
    AuraTestHelper now always triggers creating a WindowTreeHost, the id must be
    increased. I've hopefully done things so tests shouldn't have to worry about
    this.
    
    BUG=866634
    TEST=covered by tests
    
    Change-Id: Ia3d2cd757555478f3cce8929574bc8df8acb3af2
    Reviewed-on: https://chromium-review.googlesource.com/1153773
    Commit-Queue: Scott Violet <sky@chromium.org>
    Reviewed-by: default avatarMichael Wasserman <msw@chromium.org>
    Reviewed-by: default avatarJames Cook <jamescook@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#579531}
    a98c735e
window_tree_client_private.h 2.19 KB