diff options
author | Beverly <beverlyt@google.com> | 2020-02-18 13:31:29 -0500 |
---|---|---|
committer | Beverly Tai <beverlyt@google.com> | 2020-02-18 19:46:01 +0000 |
commit | 1467c9e39310fde5cc606f369e6f2a3976eadd22 (patch) | |
tree | 00b447f102476401086017a421fcfe9f0905c60b /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 46d77cf71c4091daa2aba353afdfe9f4f718ba48 (diff) |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions