summaryrefslogtreecommitdiffstats
path: root/core/tests
diff options
context:
space:
mode:
authorFred Quintana <fredq@google.com>2010-11-03 17:02:55 -0700
committerFred Quintana <fredq@google.com>2010-12-09 14:24:34 -0800
commit0c4d04ac2e8aa62560d8d767fa1c87e5361b0b08 (patch)
tree35abdc4bd85808b46663105491fa0d64bb07f0de /core/tests
parent6a843d03c7eaf4fa3c11798585626d68d81a9304 (diff)
downloadframeworks_base-0c4d04ac2e8aa62560d8d767fa1c87e5361b0b08.zip
frameworks_base-0c4d04ac2e8aa62560d8d767fa1c87e5361b0b08.tar.gz
frameworks_base-0c4d04ac2e8aa62560d8d767fa1c87e5361b0b08.tar.bz2
allow sync adapter authors to control more policies
- let the SyncManager know that the SyncAdapter can handle parallel syncs even within sync adapter types - allow indicating that the sync adapter should be auto initialized without requiring the sync adapter to run first. When this setting is used then setIsSyncable(1) is automatically called for the sync adapter. Change-Id: Ib40eba95c2556eaee4bb0fe715f379af1b72b84a
Diffstat (limited to 'core/tests')
-rw-r--r--core/tests/coretests/src/android/content/SyncOperationTest.java15
1 files changed, 10 insertions, 5 deletions
diff --git a/core/tests/coretests/src/android/content/SyncOperationTest.java b/core/tests/coretests/src/android/content/SyncOperationTest.java
index 57435e5..37e948d 100644
--- a/core/tests/coretests/src/android/content/SyncOperationTest.java
+++ b/core/tests/coretests/src/android/content/SyncOperationTest.java
@@ -47,7 +47,8 @@ public class SyncOperationTest extends AndroidTestCase {
b1,
100,
1000,
- 10000);
+ 10000,
+ false);
// Same as op1 but different time infos
SyncOperation op2 = new SyncOperation(account1,
@@ -56,7 +57,8 @@ public class SyncOperationTest extends AndroidTestCase {
b1,
200,
2000,
- 20000);
+ 20000,
+ false);
// Same as op1 but different authority
SyncOperation op3 = new SyncOperation(account1,
@@ -65,7 +67,8 @@ public class SyncOperationTest extends AndroidTestCase {
b1,
100,
1000,
- 10000);
+ 10000,
+ false);
// Same as op1 but different account
SyncOperation op4 = new SyncOperation(account2,
@@ -74,7 +77,8 @@ public class SyncOperationTest extends AndroidTestCase {
b1,
100,
1000,
- 10000);
+ 10000,
+ false);
// Same as op1 but different bundle
SyncOperation op5 = new SyncOperation(account1,
@@ -83,7 +87,8 @@ public class SyncOperationTest extends AndroidTestCase {
b2,
100,
1000,
- 10000);
+ 10000,
+ false);
assertEquals(op1.key, op2.key);
assertNotSame(op1.key, op3.key);