[GoogleSans] Fix AndroidFontLookupImplTest
After the AndroidFontLookup implementation was switched to using a PostTask to fetch the font, and an Executor to run the callback, these tests were only passing because the callback (checking assertions) wasn't being run at all in tests. This fixes that issue by initializing native to ensure PostTasks are run, and adding a runLoop to run the Executor tasks (the latter mirrors the Mojo ExecutorFactoryTest). Bug: 1111148 Change-Id: I71eda8b1ab20ed2aabf8810303a6435b5007aaa8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404073Reviewed-by:Sky Malice <skym@chromium.org> Commit-Queue: Natalie Chouinard <chouinard@chromium.org> Cr-Commit-Position: refs/heads/master@{#806267}
Showing
Please register or sign in to comment