summaryrefslogtreecommitdiff
path: root/tests/src/com/android/email/MessagingControllerUnitTests.java
Commit message (Collapse)AuthorAgeFilesLines
* Revert to old Email appMarc Blank2012-04-251-0/+85
| | | | | | * These are the last sources in the ICS-MR1 tree Change-Id: Ida4651bddd92a06a518d00f3e1f275ab3a80c8ae
* Convert POP3 to serviceMarc Blank2012-02-161-85/+0
| | | | | | * Remove MessagingController and (almost all of) MailService Change-Id: I8953b58b237de6a71fda770f1727bd94081fec55
* Move Account into its own top-level classMarc Blank2011-06-131-4/+4
| | | | Change-Id: Ide7c991b7d4d418dbe17164421425bf898ba64ee
* Email split, part six: EmailContentMarc Blank2011-02-101-1/+1
| | | | | | * Moved EmailContent to emailcommon Change-Id: Ib3db1bfcfe74554c0e5afd3cfce6d72f26e9aeb9
* Email split, part quatre: Move along, nothing to see hereMarc Blank2011-02-101-1/+1
| | | | | | | | | | * No code was harmed, er, changed in the making of this CL * All that's happened is that code that is needed by both Email and Exchange have been moved into emailcommon * This required import changes to many files, which explains the length of the CL Change-Id: I4e12455ba057a4a8054fdbd0b578c73afa411c8a
* Cleanup: Add @OverrideMakoto Onuki2010-05-071-0/+1
| | | | | | (Note it's for froyo-plus-asop) Change-Id: Ic4211c08586e33c44d5d6267c0c9d37f8c7cdc85
* Clean out old mailbox names logic and fix a couple of bugs.Andrew Stadler2009-09-211-69/+0
| | | | | | | | | | | | | | | * Get rid of old Account.getxxxFolderName() calls. * Clean up any call sites to them * Properly rename the existing special folder name identifiers * Use a hash table in MessagingController to improve identification of special folders for IMAP accounts * Fix a bug in Controller, which was creating new server-side folders using localized names. * Fix a bunch of code in Controller that was using mContext, instead of using mProviderContext to support testability. * Fix broken unit tests in ControllerProviderOpsTests Fixes bug 1904373
* Remove saveOrUpdate from EmailContent to prevent stale writesAndrew Stadler2009-07-221-1/+1
| | | | | | | | | | | | | | | | | | | * Numerous classes modified to deal with this change * Fixes bugs 1993292 and 1994671 * Renamed various setter and getter methods to reflect the underlying field names * Renamed syncFrequency to syncInterval in Account and Mailbox * Convenience method added to AccountSettings to save only user settings * Calls to content.update(context, content.toContentValues()), which save all fields, should be double-checked for correctness, making sure that content has current data and will not conflict with other threads that might modify that data * Ran all unit tests to confirm proper function NOTE: The logic to enforce single default account no longer works, because that logic is in Account.save() and does not run via Account.update(). I have patched out a small section of the relevant unit test and will file a bug to come back for this fix.
* Refactored EmailStore, EmailContent, EmailProviderMarc Blank2009-06-151-8/+8
| | | | | EmailStore goes away, replaced by EmailContent All database activity is moved to EmailProvider
* Convert remainder of app to use provider-based accountsAndrew Stadler2009-06-081-27/+30
| | | | | | | | | | | | | | | | | What works: * Unit tests, except for com.android.email.activity.setup.* * Editing existing accounts * Create new accounts * Checking account settings against server * Mail sync using accounts * Viewing mailboxes What breaks (in approx order of planned fixes) * Unit tests in com.android.email.activity.setup.* * Viewing messages * Composing messages * Some details of account editing * Import of existing accounts
* AI 147868: Fix CL 146360 which didn't make the changes persistent. ChangedAndy Stadler2009-04-271-20/+25
| | | | | | | | MessagingController to accept and track a Context, instead of the unnecessary Application object, which makes this fix more testable. BUG=1790798 Automated import of CL 147868
* AI 146360: Provide an API by which the server (or store) can tag someAndy Stadler2009-04-151-0/+145
of the role-specific folders such as Drafts, Sent, or Trash. This allows us to properly target these folders even on systems where they have different names. I capture the tagged names into the existing columns in the account data, where they are used elsewhere in the code (no changes necessary). Use default implementations on POP3 and IMAP for now - no change from original behavior. The new code is primarily to support EAS (for now). BUG=1790798 Automated import of CL 146360