Package org.robolectric.shadows
Class ShadowCallLogCalls
java.lang.Object
org.robolectric.shadows.ShadowCallLogCalls
Shadow for the system's CallLog.Call class that allows tests to configure the most recent call.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
getLastOutgoingCall
(Context context) Gets the last outgoing call String set bysetLastOutgoingCall(String)
.static void
reset()
static void
setLastOutgoingCall
(String lastCall) Sets a last outgoing call that can later be retrieved bygetLastOutgoingCall(Context)
.
-
Constructor Details
-
ShadowCallLogCalls
public ShadowCallLogCalls()
-
-
Method Details
-
getLastOutgoingCall
Gets the last outgoing call String set bysetLastOutgoingCall(String)
.- Parameters:
context
- A Context object not used- Returns:
- The last outgoing call set by
setLastOutgoingCall(String)
-
setLastOutgoingCall
Sets a last outgoing call that can later be retrieved bygetLastOutgoingCall(Context)
.- Parameters:
lastCall
- The last outgoing call String.
-
reset
-