commit | 508b280a3e2090fcc49fe5953047d4122ce9ecbe | [log] [tgz] |
---|---|---|
author | Hall Liu <hallliu@google.com> | Wed Feb 17 17:31:43 2016 -0800 |
committer | Hall Liu <hallliu@google.com> | Wed Feb 17 17:31:43 2016 -0800 |
tree | 2f86b9e9542e2b204f35c4e7a84628ccf62b2630 | |
parent | b61df75bab6b67c132b44e6fafc69e5ccdb13ad6 [diff] |
Stub out getInitiatingUser for mCall Bug: 27229587 Change-Id: Ie40c693d996b9bc76607226b62ae03b7827905b5
diff --git a/tests/src/com/android/server/telecom/tests/NewOutgoingCallIntentBroadcasterTest.java b/tests/src/com/android/server/telecom/tests/NewOutgoingCallIntentBroadcasterTest.java index 17ca5b9..4428c34 100644 --- a/tests/src/com/android/server/telecom/tests/NewOutgoingCallIntentBroadcasterTest.java +++ b/tests/src/com/android/server/telecom/tests/NewOutgoingCallIntentBroadcasterTest.java
@@ -53,6 +53,7 @@ import static org.mockito.Mockito.never; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; public class NewOutgoingCallIntentBroadcasterTest extends TelecomTestCase { private static class ReceiverIntentPair { @@ -75,6 +76,7 @@ super.setUp(); mContext = mComponentContextFixture.getTestDouble().getApplicationContext(); mPhoneNumberUtilsAdapterSpy = spy(new PhoneNumberUtilsAdapterImpl()); + when(mCall.getInitiatingUser()).thenReturn(UserHandle.CURRENT); } @SmallTest