OSDN Git Service

Add Executor to the TestLooper
authorEtan Cohen <etancohen@google.com>
Wed, 14 Feb 2018 19:44:13 +0000 (11:44 -0800)
committerEtan Cohen <etancohen@google.com>
Fri, 16 Feb 2018 18:13:26 +0000 (10:13 -0800)
commitcff2fe4f76af4f0d47f9ba35fe7c394b0501160d
tree85dee9fc7b93365c48c618d8dce1519c6933ec8f
parent4577b9b17c485fae7691203a86ff704381a2d60f
Add Executor to the TestLooper

Add a method to obtain an Executor from a TestLooper: the executor
executes on a new Handler on the test looper.

Bug: 73088768
Test: new unit test for executor
Change-Id: Ib0aa10011116a4d998f8d3a7434939338d9b516d
tests/utils/testutils/java/android/os/test/TestLooper.java
tests/utils/testutils/java/android/os/test/TestLooperTest.java