Skip to content
Commit 1467c9e3 authored by Beverly's avatar Beverly Committed by Beverly Tai
Browse files

Allow TestableLooper to be asserted as main looper

Tests are run from the TestableLooper, but we still want to pass
Assert.isMainThread calls. Therefore, allow SysUI tests to assert the Testable
Looper is the main looper.

We cannot set sMainLooper to TestableLooper because there may still be
messages in the MainLooper's queue that will get evaluated in the
future.

Test: atest SystemUITests
Fixes: 149740127
Change-Id: I0c76763766f5ed4a85d99aea64dbbd14dc1d711c
parent 46d77cf7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment