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

Skip to content
Commit fc59bf75 authored by Jeff Davidson's avatar Jeff Davidson
Browse files

Fix EuiccControllerTest's dependency on activity manager internals.

verifyIntentSent() can't directly verify a call to
PendingIntent#send() using Mockito as PendingIntent is final. The
previous solution to this mocked out the highest level part of
PendingIntent's implementation which isn't final, but this part is an
implementation detail that is subject to breakage, so depending on it
is brittle. Instead, we can stub out the call to send() manually and
capture/verify the inputs in the test.

Test: bit FrameworksTelephonyTests:com.android.internal.telephony.euicc.EuiccControllerTest
Change-Id: I79a2213a4edf12b3359ba7425006694362a57854
parent aee8f8fe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment