summaryrefslogtreecommitdiffstats
path: root/test-runner
diff options
context:
space:
mode:
authorFred Quintana <fredq@google.com>2009-05-15 15:10:40 -0700
committerFred Quintana <fredq@google.com>2009-05-22 14:17:48 -0700
commit8943737692169f564cd34a9c8d471f3a5d438712 (patch)
tree7b017cbed472235c15d32e694b1fa18c5446c751 /test-runner
parentfc5095f44ba46b57f4ef6179ee4d69ce3a7fe69a (diff)
downloadframeworks_base-8943737692169f564cd34a9c8d471f3a5d438712.zip
frameworks_base-8943737692169f564cd34a9c8d471f3a5d438712.tar.gz
frameworks_base-8943737692169f564cd34a9c8d471f3a5d438712.tar.bz2
add ipc support to batching
Diffstat (limited to 'test-runner')
-rw-r--r--test-runner/android/test/mock/MockContentProvider.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/test-runner/android/test/mock/MockContentProvider.java b/test-runner/android/test/mock/MockContentProvider.java
index fdba2e2..757c72d 100644
--- a/test-runner/android/test/mock/MockContentProvider.java
+++ b/test-runner/android/test/mock/MockContentProvider.java
@@ -20,6 +20,9 @@ import android.content.ContentValues;
import android.content.IContentProvider;
import android.content.Entity;
import android.content.EntityIterator;
+import android.content.ContentProviderResult;
+import android.content.ContentProviderOperation;
+import android.content.OperationApplicationException;
import android.content.res.AssetFileDescriptor;
import android.database.Cursor;
import android.database.CursorWindow;
@@ -49,7 +52,7 @@ public class MockContentProvider implements IContentProvider {
return 0;
}
- public Uri[] bulkInsertEntities(Uri uri, Entity[] entities) throws RemoteException {
+ public Uri insertEntity(Uri uri, Entity entities) throws RemoteException {
throw new UnsupportedOperationException("unimplemented mock method");
}
@@ -87,7 +90,11 @@ public class MockContentProvider implements IContentProvider {
throws FileNotFoundException {
throw new UnsupportedOperationException("unimplemented mock method");
}
-
+
+ public ContentProviderResult[] applyBatch(ContentProviderOperation[] operations) throws RemoteException, OperationApplicationException {
+ throw new UnsupportedOperationException("unimplemented mock method");
+ }
+
@SuppressWarnings("unused")
public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs,
String sortOrder) throws RemoteException {
@@ -105,7 +112,7 @@ public class MockContentProvider implements IContentProvider {
throw new UnsupportedOperationException("unimplemented mock method");
}
- public int[] bulkUpdateEntities(Uri uri, Entity[] entities) throws RemoteException {
+ public int updateEntity(Uri uri, Entity entity) throws RemoteException {
throw new UnsupportedOperationException("unimplemented mock method");
}