Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c1c8b4dd authored by Shai Barack's avatar Shai Barack
Browse files

Improve TestLooperManager check on execute()

Looper.isCurrentThread() does exactly what we need.

Checking the same condition via a side effect on
Looper.myLooper() is harder to read.
It's also less reliable, because I caught some (terrible)
tests manipulating ThreadLocals.

Bug: 379472827
Change-Id: Id67eddcb57329cb42b5b4ba6b09595ec720f6cdb
Flag: android.os.message_queue_testability
Test: android.os.cts.TestLooperManagerTest
parent b1843033
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment