summaryrefslogtreecommitdiffstats
path: root/test-runner/src/android/test/ProviderTestCase2.java
diff options
context:
space:
mode:
Diffstat (limited to 'test-runner/src/android/test/ProviderTestCase2.java')
-rw-r--r--test-runner/src/android/test/ProviderTestCase2.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-runner/src/android/test/ProviderTestCase2.java b/test-runner/src/android/test/ProviderTestCase2.java
index f7c4e03..dcd089d 100644
--- a/test-runner/src/android/test/ProviderTestCase2.java
+++ b/test-runner/src/android/test/ProviderTestCase2.java
@@ -140,7 +140,7 @@ public abstract class ProviderTestCase2<T extends ContentProvider> extends Andro
mProviderContext = new IsolatedContext(mResolver, targetContextWrapper);
mProvider = mProviderClass.newInstance();
- mProvider.attachInfo(mProviderContext, null);
+ mProvider.attachInfoForTesting(mProviderContext, null);
assertNotNull(mProvider);
mResolver.addProvider(mProviderAuthority, getProvider());
}
@@ -219,7 +219,7 @@ public abstract class ProviderTestCase2<T extends ContentProvider> extends Andro
DatabaseUtils.createDbFromSqlStatements(context, databaseName, databaseVersion, sql);
T provider = providerClass.newInstance();
- provider.attachInfo(context, null);
+ provider.attachInfoForTesting(context, null);
resolver.addProvider(authority, provider);
return resolver;