summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-06-04 18:11:08 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-04 18:11:09 +0000
commit11412dc1a83fdc4133385c173e44175dc15e5b86 (patch)
treec91d993efd20fbfd880e72854f06c27108b31ef5 /src
parentbdf60d080ccab765e659b0e27b1fdb7122f5d008 (diff)
parentcdec41fd4165d2fc6d20a70101706a8e4c70b777 (diff)
Merge "Fix VoicemailStatusHelper unit tests." into mnc-dev
Diffstat (limited to 'src')
-rw-r--r--src/com/android/dialer/voicemail/VoicemailStatusHelper.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/dialer/voicemail/VoicemailStatusHelper.java b/src/com/android/dialer/voicemail/VoicemailStatusHelper.java
index 545691ec9..d790b7764 100644
--- a/src/com/android/dialer/voicemail/VoicemailStatusHelper.java
+++ b/src/com/android/dialer/voicemail/VoicemailStatusHelper.java
@@ -20,6 +20,8 @@ import android.database.Cursor;
import android.net.Uri;
import android.provider.VoicemailContract.Status;
+import com.google.common.annotations.VisibleForTesting;
+
import java.util.List;
/**
@@ -32,6 +34,7 @@ import java.util.List;
* this class to check if any message needs to be shown.
*/
public interface VoicemailStatusHelper {
+ @VisibleForTesting
public class StatusMessage {
/** Package of the source on behalf of which this message has to be shown.*/
public final String sourcePackage;
@@ -49,6 +52,7 @@ public interface VoicemailStatusHelper {
public final int actionMessageId;
/** URI for the corrective action, where applicable. Null if no action URI is available. */
public final Uri actionUri;
+
public StatusMessage(String sourcePackage, int callLogMessageId, int callDetailsMessageId,
int actionMessageId, Uri actionUri) {
this.sourcePackage = sourcePackage;
@@ -75,6 +79,7 @@ public interface VoicemailStatusHelper {
* @param cursor The cursor pointing to the query on {@link Status#CONTENT_URI}. The projection
* to be used is defined by the implementation class of this interface.
*/
+ @VisibleForTesting
public List<StatusMessage> getStatusMessages(Cursor cursor);
/**