Added implementation of getOpPackageName in the mock context class to fix text failure. am: a33855584d am: aa99f958c1 am: 484603d549
am: 9f95567926
Change-Id: I44eeb77a0f3d8f729cf608cf1dd20926eed4968d
diff --git a/tests/src/com/android/providers/blockednumber/MyMockContext.java b/tests/src/com/android/providers/blockednumber/MyMockContext.java
index 85617f3..2c998e5 100644
--- a/tests/src/com/android/providers/blockednumber/MyMockContext.java
+++ b/tests/src/com/android/providers/blockednumber/MyMockContext.java
@@ -61,6 +61,7 @@
private BlockedNumberProviderTestable mProvider;
private Context mRealTestContext;
final List<String> mIntentsBroadcasted = new ArrayList<>();
+ private final String packageName = "com.android.providers.blockednumber";
public MyMockContext(Context realTestContext) {
this.mRealTestContext = realTestContext;
@@ -144,6 +145,11 @@
CarrierConfigManager.class, Context.CARRIER_CONFIG_SERVICE);
}
+ @Override
+ public String getOpPackageName() {
+ return packageName;
+ }
+
public void shutdown() {
mProvider.shutdown();
}