diff options
author | Andrew Lee <anwlee@google.com> | 2015-06-04 19:22:15 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-06-04 19:22:15 +0000 |
commit | c219f9c6164028a2c51a50c6fba3a7028feed62b (patch) | |
tree | 927bf60358fa8f58974d33242fccfb97d63ab614 | |
parent | 2b31c82552f2cc9452c6657cf3187f30db87940a (diff) | |
parent | 40eebd3d4de76b3da1094d202fca9450153ceb79 (diff) |
am 40eebd3d: am 742a26ab: am 11412dc1: Merge "Fix VoicemailStatusHelper unit tests." into mnc-dev
* commit '40eebd3d4de76b3da1094d202fca9450153ceb79':
Fix VoicemailStatusHelper unit tests.
-rw-r--r-- | src/com/android/dialer/voicemail/VoicemailStatusHelper.java | 5 |
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); /** |