summaryrefslogtreecommitdiffstats
path: root/core/tests/coretests
diff options
context:
space:
mode:
authorFred Quintana <fredq@google.com>2012-05-04 15:51:54 -0700
committerFred Quintana <fredq@google.com>2012-05-06 13:39:36 -0700
commitdc47556cb37b6f25faceb5eb97cef60d384b55fb (patch)
tree184dbb9d0576236d8b8ff5f463d82b0828e236b1 /core/tests/coretests
parentd0c66f6a8f15bb95648b4306d2583575d0bb9935 (diff)
downloadframeworks_base-dc47556cb37b6f25faceb5eb97cef60d384b55fb.zip
frameworks_base-dc47556cb37b6f25faceb5eb97cef60d384b55fb.tar.gz
frameworks_base-dc47556cb37b6f25faceb5eb97cef60d384b55fb.tar.bz2
fix expedited syncs. there were times when an expedited sync wouldn't
correctly preempt non-expedited syncs Change-Id: Ia88ce6504c06d7c8e50e40362e8bf2b85bd0934b
Diffstat (limited to 'core/tests/coretests')
-rw-r--r--core/tests/coretests/src/android/content/SyncStorageEngineTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/tests/coretests/src/android/content/SyncStorageEngineTest.java b/core/tests/coretests/src/android/content/SyncStorageEngineTest.java
index 96f313a..2add623 100644
--- a/core/tests/coretests/src/android/content/SyncStorageEngineTest.java
+++ b/core/tests/coretests/src/android/content/SyncStorageEngineTest.java
@@ -20,7 +20,6 @@ import com.android.internal.os.AtomicFile;
import android.accounts.Account;
import android.os.Bundle;
-import android.os.Debug;
import android.test.AndroidTestCase;
import android.test.RenamingDelegatingContext;
import android.test.mock.MockContentResolver;
@@ -57,7 +56,8 @@ public class SyncStorageEngineTest extends AndroidTestCase {
long time0 = 1000;
long historyId = engine.insertStartSyncEvent(
- account, 0, authority, time0, SyncStorageEngine.SOURCE_LOCAL);
+ account, 0, authority, time0, SyncStorageEngine.SOURCE_LOCAL,
+ false /* initialization */);
long time1 = time0 + SyncStorageEngine.MILLIS_IN_4WEEKS * 2;
engine.stopSyncEvent(historyId, time1 - time0, "yay", 0, 0);
}