Commit c9d68e12 authored by Nigel Tao's avatar Nigel Tao Committed by Commit Bot

Run async callbacks in uninstall-app browser_test

This fixes `unit_tests --enable-features=AppServiceAsh
--gtest_filter="AppListClientSearchResultsBrowserTest.UninstallSearchResult"`.
It fails before and passes after this commit.

Note that `unit_tests
--gtest_filter="AppListClientSearchResultsBrowserTest.UninstallSearchResult"`,
without AppServiceAsh enabled, passes both before and after this commit.

BUG=826982

Change-Id: Ib6d1b8f2bf8d4bc1a7c4558618f2c49587f11144
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1657072Reviewed-by: default avatarXiyuan Xia <xiyuan@chromium.org>
Commit-Queue: Nigel Tao <nigeltao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#669071}
parent 79e93e12
......@@ -302,6 +302,9 @@ IN_PROC_BROWSER_TEST_F(AppListClientSearchResultsBrowserTest,
// Uninstall the extension.
UninstallExtension(extension->id());
// Allow async callbacks to run.
base::RunLoop().RunUntilIdle();
// We cannot find the extension any more.
EXPECT_FALSE(search_controller->GetResultByTitleForTest(title));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment