summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Old paper clip asset is removed, which touches a test case here.James Lemieux2014-09-221-1/+1
| | | | Change-Id: Ie070eaeb7d3c4a3663da4cd4761328241ce6467f
* Changes to support smaller email tombstone apk sizePaul Westbrook2014-09-165-268/+6
| | | | | | | | | This reduces the tombstone down by 100K A follow-on cl will remove the unused resources from the tombstone build Bug: 17414014 Change-Id: I5d38811b17a5273ec726e750ab123e10e36cee04
* Remove unused resourcesPaul Westbrook2014-09-101-118/+0
| | | | | | | | | | Also remove broken & disabled tests that referenced otherwise unused resources Change resource names to prevent duplicate resources. Bug: 17414014 Change-Id: Iea9f9799ec19692707e2949473c6f97a3bd29f4b
* Clean up proguard test flags filePaul Westbrook2014-08-011-40/+0
| | | | Change-Id: I2db858b59e0b1c6ff199aa7b11b99ee6e019ea72
* Rename AccountSettings to EmailPreferenceActivityTony Mantler2014-07-141-4/+5
| | | | Change-Id: I972cdae394081b5ec028c38b9274e64ef5822d4a
* Remove direct entry points to AccountSettingsTony Mantler2014-07-111-2/+2
| | | | | b/16240332 Change-Id: I9bc3f9a2e0b7faa4d8875a9ac7d6d585a65d9733
* Fix build.Andrew Sapperstein2014-07-011-1/+1
| | | | Change-Id: I3c84b1ccb2171672857f523ed636de456fa7313a
* Merge "Unify settings activity" into ub-mail-masterTony Mantler2014-06-274-6/+12
|\
| * Unify settings activityTony Mantler2014-06-274-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/9566150 - Install PublicPreferenceActivity - Create AccountServerSettingsActivity to contain all the crazy logic we don't want in AccountSettings - Add restoreAccountWithAddress to Account - Refactor almost everything out of AccountSettings - Tidy the QuickResponse fragment - Majorly refactor the AccountSettingsFragment to decouple it from the activity, and make it save settings immediately instead of when pausing - Move login warning dialog to AccountSettingsFragment - Tweak HeadlessAccountSettingsLoader Change-Id: Ie69181d968b9c3e5940cfef9690b1f5c70e21aa8
* | Move over to the new AttachmentService.Anthony Lee2014-06-252-285/+3
|/ | | | Change-Id: I4a687b003884ea6a92a755fcbf394001bfc96a38
* Revamp logging & remove the threading around downloads.Anthony Lee2014-06-241-1/+1
| | | | | | | | | | There is no need to launch a new AsyncTask around adding an attachment to the queue of downloads. We can restore the attachment in the worker thread of AttachmentService instead. Also reworked the logging so we can trace the flow of the AttachmentService if we need to debug again in the future. Change-Id: I368ebb4322bc0af0f4cadedf102959d621e5ee80
* Unit Tests for serialization of Account and HostAuth objectsJames Lemieux2014-06-092-0/+185
| | | | | | | | | | b/14998528 These are particularly important since they are stored in JSON form within the Account Manager, so maintaining backward compatibility when future changes are introduced is crucial. Change-Id: I51333a364726a4c7e2fe88ee888e8c4cc11d962f
* Some more cleanup and code rearrangement & added unit testsAnthony Lee2014-06-051-55/+70
| | | | | | for ServiceCallback. Change-Id: I6017e50455df3dda9ef6ec54ffd4fbc4e9b1a2d9
* Disambiguate settings intentsTony Mantler2014-05-221-1/+1
| | | | | | b/13325901 Change-Id: I2843a6bfdac4acbabc758ddc44f1d980b7036aef
* Merge "Test encode/decode of attachments" into ub-mail-masterTony Mantler2014-05-211-0/+88
|\
| * Test encode/decode of attachmentsTony Mantler2014-05-211-0/+88
| | | | | | | | | | | | b/15089448 Change-Id: Ifd2afcfb36c9820c5d64ebbcc3230603b2a27089
* | Factored out Watchdog code and cleaned up other stuff.Anthony Lee2014-05-201-2/+94
|/ | | | | | | | Moved testing code to the bottom of the file. The next CL should be the removal of the DownloadSet. Also fixed b/15003801, so that the test will not fail. Change-Id: Ie8320782d6b292d5a367af95d7c58d70a4213ead
* Add test for HostAuth parcelingTony Mantler2014-05-151-0/+35
| | | | | b/14998526 Change-Id: Ic92424f6f2fc2eec261e2ce91158cc396eb24ffc
* Move account backup/restore to userdata in AccountManagerTony Mantler2014-05-143-124/+0
| | | | Change-Id: Iea9f2a1b1f2d87e07d63cbb1df5a0d6355ea4031
* Merge "Introduction of DownloadQueue and associated tests." into ub-mail-masterAnthony Lee2014-05-131-0/+390
|\
| * Introduction of DownloadQueue and associated tests.Anthony Lee2014-05-121-0/+390
| | | | | | | | | | | | Also a bit of cleanup around log tags and DownloadRequest. Change-Id: I33221f099ed691e5258e1741cf0a63381404f520
* | Clean up unused code and warnings in AccountTony Mantler2014-05-133-41/+0
|/ | | | Change-Id: I40475eb6c8afa6b7b28fd143b9ad4fd268ff4657
* Fetch email bodies using ContentResolver#openInputStreamTony Mantler2014-05-082-9/+10
| | | | | | | This brings us further along the path to storing email bodies outside of the database. Change-Id: I96296114ade0d561df724878ed92999306bcd176
* Handle attachment filenames with % charactersTony Mantler2014-05-061-2/+133
| | | | | | b/14571903 Change-Id: I3296bebfb4c6902750c68c9d3fb79ce644dbb137
* Parse abbreviated date fieldsJay Shrauner2014-05-021-1/+3
| | | | | | | | Add support for abbreviated dates with no timestamp (eg, "2009-01-02") to parseEmailDateTimeToMillis. Bug:14496986 Change-Id: Ifc77cb75fd9e23536b48c8f6ecefc0e2e8f1cc2c
* Fix Exchange crash when parsing abbreviated datesJay Shrauner2014-04-304-765/+73
| | | | | | | | | Detect fully qualified and abbreviated date/time stamps in parseDateTime. Previously parsed fully qualified forms like 20090211T180303Z; now also parses 20090211. Bug:14279251 Change-Id: I9a99ae16a5c1fe87b977fbebdba307baa653d539
* Continue purging the unused reply partsTony Mantler2014-04-184-155/+11
| | | | Change-Id: I47b5bbe50ba36e68ad7ba80647f401b992660ba1
* Clean up LegacyConversionsTony Mantler2014-04-181-15/+0
| | | | Change-Id: I9cb9bf8a08663004a497af9f52e3ab0647bd2168
* Fix some missed class renamesTony Mantler2014-04-152-26/+28
| | | | Change-Id: I82c9e21049096525cc55fa57e5cc307844014832
* Cleanup in EmailContentTony Mantler2014-04-141-4/+4
| | | | Change-Id: Ifa251eb206779f59ea003f99395d454c7e407bc2
* Fix some crashes and misbehavior with account settings screensTony Mantler2014-04-101-4/+1
| | | | | | b/13954490 Change-Id: Ic81b342495a46573cb1fe78cad1f4888fffc4ae8
* Replying to a Message with an encoded email address shows the encoded ↵James Lemieux2014-03-273-158/+199
| | | | | | | | | | | | | | | | address in the to field. b/11658428 As per Yu Ping's advice, we alter the storage of all email addresses (from, to, cc, bcc and replyto) to be stored in *decoded* format within our database. This makes them both human readable when inspecting the database manually and alleviates the need to repeatedly decode them before they are displayed anywhere in our UI layers. As part of this bugfix, I resurrected several tests related to the LegacyConversions class out of LegacyConversionsTests and into a new (not Suppressed) test class: LegacyConversionsTest Change-Id: Ie2e3264646e25c08c4ba74f60b3e1090c052e6c6
* Fix IMAP message upsync to include attachments.Tony Mantler2014-03-273-7/+6
| | | | | | | b/13138456 Change-Id: If16b619a650c640a37cb4563750a6327a5e601e6 (cherry picked from commit 0c8696c2ebd52c7f2a92fa7b6b8d5d2005c19d1c)
* Fix broken tests and remove dead codeTony Mantler2014-03-183-23/+6
| | | | Change-Id: I3ae31c604c86641622f997915dc7d86bf2c662a2
* Fix testsTony Mantler2014-02-282-3/+13
| | | | | | b/13244976 Change-Id: I8aa00e32b1a2155242ed30a61b27db16fe15b605
* Merge setup fragments under a single activityTony Mantler2014-02-264-53/+49
| | | | Change-Id: I10cf8bb9f6bc1a26ea97ae664f0196ae9e9493b5
* Fix testsTony Mantler2014-02-211-1/+1
| | | | Change-Id: I89370919dd5a8a129ea946f2d3429f0d4a056eb6
* Add a placeholder flaky test.Brett Chabot2014-02-201-0/+30
| | | | | | For fun and profit. Change-Id: Id9feb6bc89a66143f1220053fdf0e3fd25097229
* Convert Email tests to use android-support-testsBrett Chabot2014-02-203-43/+3
| | | | Change-Id: I173afa352504757e84f5cc48dca8b493957ff6a1
* Add @SmallTest annotation to test classes so they get run in continuousJerry Xie2014-02-1912-0/+26
| | | | Change-Id: Ieb0e3af146a6668c813ff16a718221eae61e8e01
* Fix some broken testsMartin Hibdon2014-02-191-3/+4
| | | | | | | | | b/13085182 You can't look up emailServiceInfo for smtp, we don't store that in services.xml. The thing is, if we're using outgoing settings, we're always using smtp, which allows oauth. Change-Id: I5c6032e8d5020ba83fa1c803666b83f134f87f75
* Merge "Mark otherwise unused method as @VisibleForTesting" into ub-mail-masterTony Mantler2014-02-191-3/+1
|\
| * Mark otherwise unused method as @VisibleForTestingTony Mantler2014-02-181-3/+1
| | | | | | | | | | | | | | | | Also fix spelling cancellAllInterrupt -> cancelAllInterrupt b/13082964 Change-Id: I2fef949bb351a536fdd0d7058b3df2b03eecb39e
* | Fix account setup testMartin Hibdon2014-02-181-3/+4
|/ | | | Change-Id: I7c1b785e5aa29cc7f47920d857441f1a09f05b21
* comment out broken unit tests in EmailAnthony Lee2014-02-071-1/+1
| | | | Change-Id: I74584344e31c38df4a57ae3d65a01a5bdd2c5a46
* Eliminate redundant methods in Address classJames Lemieux2014-01-222-12/+12
| | | | | | | | | | | | THIS DOES NOT CHANGE ANY EXISTING FUNCTIONALITY. Address.pack() has been removed and all calls replaced with its synonym Address.toHeader(). Address.unpack() has been renamed to Address.fromHeader() to follow the new naming convention. In days of yore, pack() and toHeader() used to do different things. Now they are identical and thus one is superfluous. We have standardized on toHeader() and fromHeader(). Change-Id: Iac91c966eb6c1477f8dba0dd2ae01c84b359e539
* Merge AccountSetupNames and AccountSetupOptionsTony Mantler2014-01-161-10/+7
| | | | Change-Id: I5946e90e56b1fc725522d41e2e33d8125900a871
* Deduplicate Address classTony Mantler2014-01-081-718/+0
| | | | Change-Id: I50a6a61c78935a7ecfb56be0a5eaed644dea9ed0
* Disable, suppress, remove broken and obsolete Email testsJerry Xie2013-12-1643-671/+223
| | | | Change-Id: Ia4dcba1c6966f23dd2a15e69324b7345aed8f944
* Convert SetupData into a retained fragmentTony Mantler2013-12-093-24/+26
| | | | | | This will keep it from being recreated quite as much while off-thread tasks are possibly mutating it. Change-Id: Ic9873489906339c33a76b8a600c0fc28016debc4