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/ContactsApplication.java b/src/com/android/contacts/ContactsApplication.java
index c925ec0..1c8c080 100644
--- a/src/com/android/contacts/ContactsApplication.java
+++ b/src/com/android/contacts/ContactsApplication.java
@@ -18,6 +18,7 @@
import com.android.contacts.model.AccountTypeManager;
import com.android.contacts.test.InjectedServices;
+import com.google.common.annotations.VisibleForTesting;
import android.app.Application;
import android.app.LoaderManager;
@@ -36,6 +37,7 @@
/**
* Overrides the system services with mocks for testing.
*/
+ @VisibleForTesting
public static void injectServices(InjectedServices services) {
sInjectedServices = services;
}