diff options
Diffstat (limited to 'test-mock')
-rw-r--r-- | test-mock/src/android/test/mock/MockContentProvider.java | 13 | ||||
-rw-r--r-- | test-mock/src/android/test/mock/MockIContentProvider.java | 6 |
2 files changed, 9 insertions, 10 deletions
diff --git a/test-mock/src/android/test/mock/MockContentProvider.java b/test-mock/src/android/test/mock/MockContentProvider.java index 9d3e12050193..85e5916a63df 100644 --- a/test-mock/src/android/test/mock/MockContentProvider.java +++ b/test-mock/src/android/test/mock/MockContentProvider.java @@ -71,8 +71,8 @@ public class MockContentProvider extends ContentProvider { @Override public int delete(String callingPackage, @Nullable String featureId, Uri url, - String selection, String[] selectionArgs) throws RemoteException { - return MockContentProvider.this.delete(url, selection, selectionArgs); + Bundle extras) throws RemoteException { + return MockContentProvider.this.delete(url, extras); } @Override @@ -82,8 +82,8 @@ public class MockContentProvider extends ContentProvider { @Override public Uri insert(String callingPackage, @Nullable String featureId, Uri url, - ContentValues initialValues) throws RemoteException { - return MockContentProvider.this.insert(url, initialValues); + ContentValues initialValues, Bundle extras) throws RemoteException { + return MockContentProvider.this.insert(url, initialValues, extras); } @Override @@ -109,9 +109,8 @@ public class MockContentProvider extends ContentProvider { @Override public int update(String callingPackage, @Nullable String featureId, Uri url, - ContentValues values, String selection, String[] selectionArgs) - throws RemoteException { - return MockContentProvider.this.update(url, values, selection, selectionArgs); + ContentValues values, Bundle extras) throws RemoteException { + return MockContentProvider.this.update(url, values, extras); } @Override diff --git a/test-mock/src/android/test/mock/MockIContentProvider.java b/test-mock/src/android/test/mock/MockIContentProvider.java index e512b52643f3..464abfb1a514 100644 --- a/test-mock/src/android/test/mock/MockIContentProvider.java +++ b/test-mock/src/android/test/mock/MockIContentProvider.java @@ -51,7 +51,7 @@ public class MockIContentProvider implements IContentProvider { @Override @SuppressWarnings("unused") public int delete(String callingPackage, @Nullable String featureId, Uri url, - String selection, String[] selectionArgs) throws RemoteException { + Bundle extras) throws RemoteException { throw new UnsupportedOperationException("unimplemented mock method"); } @@ -63,7 +63,7 @@ public class MockIContentProvider implements IContentProvider { @Override @SuppressWarnings("unused") public Uri insert(String callingPackage, @Nullable String featureId, Uri url, - ContentValues initialValues) throws RemoteException { + ContentValues initialValues, Bundle extras) throws RemoteException { throw new UnsupportedOperationException("unimplemented mock method"); } @@ -99,7 +99,7 @@ public class MockIContentProvider implements IContentProvider { @Override public int update(String callingPackage, @Nullable String featureId, Uri url, - ContentValues values, String selection, String[] selectionArgs) throws RemoteException { + ContentValues values, Bundle extras) throws RemoteException { throw new UnsupportedOperationException("unimplemented mock method"); } |