Fixes tests on userdebug builds.
A number of tests are currently failing on userdebug builds because they
refer to methods that are used only in tests and proguard striped these
methods when building the application APK.
This change adds the VisibleForTesting annotation to all such methods.
Bug: 4901489
Bug: 4902483
Change-Id: Ic7c51ef5b77f4f2d2af39cdafbf8e2e37260644b
diff --git a/src/com/android/contacts/ContactLoader.java b/src/com/android/contacts/ContactLoader.java
index 4b0bbaa..2ec1cbf 100644
--- a/src/com/android/contacts/ContactLoader.java
+++ b/src/com/android/contacts/ContactLoader.java
@@ -17,6 +17,7 @@
package com.android.contacts;
import com.android.contacts.util.DataStatus;
+import com.google.common.annotations.VisibleForTesting;
import android.content.ContentResolver;
import android.content.ContentUris;
@@ -238,7 +239,8 @@
return mUri;
}
- public long getId() {
+ @VisibleForTesting
+ /*package*/ long getId() {
return mId;
}