| commit | 2705b4102db0fe009f50ca3c25b9fd651efedd20 | [log] [tgz] |
|---|---|---|
| author | Steven Moreland <smoreland@google.com> | Tue Oct 11 23:37:51 2022 +0000 |
| committer | Steven Moreland <smoreland@google.com> | Tue Oct 11 23:37:51 2022 +0000 |
| tree | fa2531fcaef1fbd5a6b531ec1e28e26ffad99126 | |
| parent | f9a1e3c91361fbc1c1a81fc964484aa5f74aa9f4 [diff] |
Handle JavaBBinderHolder not init w/ mockito
Some mockito users mocking binders like:
doReturn(...).when(...).asBinder()
Aren't seeing this field initialized when they are making transactions
on this binder object. This causes obtain(IBinder) to fail.
Bug: 252888512
Test: ServiceStateTrackerTest
Change-Id: Ib65948b86cf91f053e26af35629aa3f7d6062c51