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
All Methods Static Methods Concrete Methods 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).
-
-
-
Method Detail
-
getLastOutgoingCall
@Implementation protected static String getLastOutgoingCall(Context context)
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
public static void setLastOutgoingCall(String lastCall)
Sets a last outgoing call that can later be retrieved bygetLastOutgoingCall(Context).- Parameters:
lastCall- The last outgoing call String.
-
reset
@Resetter public static void reset()
-
-