Package org.robolectric.shadows
Class ShadowCallLogCalls
java.lang.Object
org.robolectric.shadows.ShadowCallLogCalls
@Implements(android.provider.CallLog.Calls.class) public class ShadowCallLogCalls extends Object
Shadow for the system's CallLog.Call class that allows tests to configure the most recent call.
-
Constructor Summary
Constructors Constructor Description ShadowCallLogCalls() -
Method Summary
Modifier and Type Method Description protected static StringgetLastOutgoingCall(Context context)Gets the last outgoing call String set bysetLastOutgoingCall(String).static voidreset()static voidsetLastOutgoingCall(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
-