• Jun Mukai's avatar
    Fix autotestPrivate.WaitForLauncherState in tablet mode. · d13d7807
    Jun Mukai authored
    On the failed case of ui.HotseatAnimation tast test, app-list
    is actually animating, and HomeLauncherStateWaiter is not used,
    thus the callback is never invoked.
    
    This CL cleans up the condition for HomeLauncherStateWaiter to
    be used.
    
    Note: this CL also adds a test case of autotestPrivate API.
    However, this new test case does NOT reproduce the reported
    problem -- it passes even without the change of
    autotest_private_api_utils.cc. I couldn't find the way to
    reproduce the reported problem within browser_tests. Still,
    I think it's better to have a basic test case of
    waitForLauncherState in tablet-mode, as its internal code
    path is significantly different.
    
    Bug: 1167225
    Test: ui.HotseatAnimation.non_overflow_shelf tast test
    Change-Id: I33352f216af795e20d651942ce219feb5c4f052a
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2640928
    Commit-Queue: Jun Mukai <mukai@chromium.org>
    Reviewed-by: default avatarToni Baržić <tbarzic@chromium.org>
    Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#846277}
    d13d7807
autotest_private_api_utils.cc 7.28 KB