Merge "Call new init function to use for testing, to turn off app ops." into jb-mr2-dev
diff --git a/tests/src/com/android/providers/contacts/ContactDirectoryManagerTest.java b/tests/src/com/android/providers/contacts/ContactDirectoryManagerTest.java
index 96cbb9b..be14f45 100644
--- a/tests/src/com/android/providers/contacts/ContactDirectoryManagerTest.java
+++ b/tests/src/com/android/providers/contacts/ContactDirectoryManagerTest.java
@@ -63,7 +63,7 @@
         private MatrixCursor mResponse;
 
         @Override
-        public void attachInfo(Context context, ProviderInfo info) {
+        public void attachInfoForTesting(Context context, ProviderInfo info) {
             mAuthority = info.authority;
         }
 
diff --git a/tests/src/com/android/providers/contacts/ContactsActor.java b/tests/src/com/android/providers/contacts/ContactsActor.java
index 7a30244..8da2800 100644
--- a/tests/src/com/android/providers/contacts/ContactsActor.java
+++ b/tests/src/com/android/providers/contacts/ContactsActor.java
@@ -199,7 +199,7 @@
         ContentProvider provider = providerClass.newInstance();
         ProviderInfo info = new ProviderInfo();
         info.authority = authority;
-        provider.attachInfo(mProviderContext, info);
+        provider.attachInfoForTesting(mProviderContext, info);
         resolver.addProvider(authority, provider);
         return provider;
     }