commit | 46c3608b3967ff65e4d61a7e602c49834fcce511 | [log] [tgz] |
---|---|---|
author | Matthew Reynolds <matthewre@google.com> | Fri Sep 27 03:38:09 2024 +0000 |
committer | Matthew Reynolds <matthewre@google.com> | Tue Oct 01 20:03:08 2024 +0000 |
tree | 80ca33cb84e3c460c2388d8399dec0f1f72d9386 | |
parent | 88d879f655fb61d2f98bb508adfa376046345207 [diff] |
Explicit UiThreadTest, Rule to block @UiThreadTest The @UiThreadTest annotation wasn't working with AndroidJUnit, because AndroidJUnit4ClassRunner was replacing with FailOnTimeout. This rule will assert on the use of @UiThreadTest, and a utility to execute runnables on the UI thread explcitly, with associated tests. Bug: 369878945 Test: tested manually with atest Flag: TEST_ONLY Change-Id: I583bb0878b1dfe21fb17eec30dc600026ba482f4