From 061e58f33ff328a1f322e40f60354c1ca69a7239 Mon Sep 17 00:00:00 2001 From: "yfriedman@chromium.org" Date: Tue, 2 Jul 2013 01:30:18 +0000 Subject: [Android] Fix bug in sense of setting isSyncable. The API specifies that >0 means syncable is true. After https://codereview.chromium.org/16092014/ when Android sync settings change, we have to read-back values to make sure we have the right settings. This started causing tests to fail as we stored the wrong value. BUG=238506 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/18429002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209569 0039d316-1c4b-4281-b951-d872f2087c98 --- .../org/chromium/sync/test/util/MockSyncContentResolverDelegate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sync') diff --git a/sync/test/android/javatests/src/org/chromium/sync/test/util/MockSyncContentResolverDelegate.java b/sync/test/android/javatests/src/org/chromium/sync/test/util/MockSyncContentResolverDelegate.java index e201a63..e7fc33d 100644 --- a/sync/test/android/javatests/src/org/chromium/sync/test/util/MockSyncContentResolverDelegate.java +++ b/sync/test/android/javatests/src/org/chromium/sync/test/util/MockSyncContentResolverDelegate.java @@ -105,7 +105,7 @@ public class MockSyncContentResolverDelegate implements SyncContentResolverDeleg mSyncAutomaticallyMap.remove(createKey(account, authority)); break; case 1: - mSyncAutomaticallyMap.put(createKey(account, authority), false); + mSyncAutomaticallyMap.put(createKey(account, authority), true); break; default: throw new IllegalArgumentException("Unable to understand syncable argument: " + -- cgit v1.1