diff options
author | Marc Blank <mblank@google.com> | 2011-12-23 12:22:09 -0800 |
---|---|---|
committer | Marc Blank <mblank@google.com> | 2011-12-23 12:42:51 -0800 |
commit | 40ec3349edc749ca651ddaf0f546a9c98a265c7e (patch) | |
tree | 866603574f1f6ca43da1e612b396c884cdf40ac1 /tests/src | |
parent | a918e60df1d083238ed469c147d878b245f06bb6 (diff) | |
download | android_packages_apps_Exchange-40ec3349edc749ca651ddaf0f546a9c98a265c7e.tar.gz android_packages_apps_Exchange-40ec3349edc749ca651ddaf0f546a9c98a265c7e.tar.bz2 android_packages_apps_Exchange-40ec3349edc749ca651ddaf0f546a9c98a265c7e.zip |
Correct new mailbox parent fixup code
* Change poorly named cursor variable (the code is confusing as it
was)
* Fixup the parent of parentKey-less mailboxes so that all children
are properly updated
* Fix faulty unit test (that otherwise would have caught this issue!)
Bug: 5794371
Change-Id: Ie249617775ba11d9f2e10528019893d4f9d9f81e
Diffstat (limited to 'tests/src')
-rw-r--r-- | tests/src/com/android/exchange/provider/MailboxUtilitiesTests.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/exchange/provider/MailboxUtilitiesTests.java b/tests/src/com/android/exchange/provider/MailboxUtilitiesTests.java index 57b5fb9c..a7425d74 100644 --- a/tests/src/com/android/exchange/provider/MailboxUtilitiesTests.java +++ b/tests/src/com/android/exchange/provider/MailboxUtilitiesTests.java @@ -201,7 +201,7 @@ public class MailboxUtilitiesTests extends ExchangeTestCase { "box3", mAccount.mId, false, mProviderContext, Mailbox.TYPE_MAIL, box2); box3.mParentKey = Mailbox.PARENT_KEY_UNINITIALIZED; box3.save(mProviderContext); - simulateFolderSyncChangeHandling(accountSelector, box2 /*box3's parent*/); + simulateFolderSyncChangeHandling(accountSelector, box3 /*box3's parent*/); box1 = Mailbox.restoreMailboxWithId(mProviderContext, box1.mId); box2 = Mailbox.restoreMailboxWithId(mProviderContext, box2.mId); |