summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Removes the UI for snap headers from the settings UI.Michael Kaeser2014-07-171-17/+0
| | | | | Bug: 16234630 Change-Id: Ie2efe06e854f2a05f743bd75e5783e749ee5d554
* Delegate Account creation to builder class.Ray Chen2014-07-161-1/+1
| | | | | | | Account contructors are no longer public and clients need to use Account.builder().buildFrom(...) instead. Change-Id: I8f072e893b49b64d962fa7a075e5c15364c4c05f
* quantum change labels b/16054906Andrew Sapperstein2014-07-031-1/+1
| | | | Change-Id: Ieb8ef93f9ce6eb784a3f2c3343286e0666bb31de
* Add uses-sdk to UnifiedEmailTestsJerry Xie2014-07-021-0/+2
| | | | | | b/15937269 Change-Id: Ic4d1ecd9c0a1f598c9ee677a940033788f4d462e
* Message header ui update. b/15595931Andrew Sapperstein2014-07-011-2/+3
| | | | Change-Id: Ic3ce06409707e326e4dc2eef6bb8617f5f03d1b8
* Remove reference of nonexistent resource dir.Ying Wang2014-06-271-2/+0
| | | | | | | | Bug: 15850610 (cherry picked from commit de0c47dbfa41d0e8cd7d2589bb4bb6b6a06f4cba) Change-Id: I93621b0b8a3bd2cade8cd3c01b82e75c2f0ac0d3
* Create MailPreferenceActivityTony Mantler2014-06-191-39/+36
| | | | | | | | | | Enable test for GeneralPrefsFragment Add test instance support to MailPrefs Fix some values that weren't getting .apply()'d b/9566150 Change-Id: Ia636c748c67518b0a6e3d436c8bfd09620fda6fc
* Merge "Sort of port over tests for GeneralPrefsFragment" into ub-mail-masterTony Mantler2014-06-182-1/+101
|\
| * Sort of port over tests for GeneralPrefsFragmentTony Mantler2014-06-172-1/+101
| | | | | | | | | | | | b/9566150 Change-Id: Ifcbd0d36b6214cf9babe804a1fe1f379bd06865a
* | am 77b4c2c3: Minimum html support using Html class (no ol/ul)Jin Cao2014-06-182-4/+29
|\ \ | |/ |/| | | | | * commit '77b4c2c31d7601665c337ce5cbc9d84fb9332be8': Minimum html support using Html class (no ol/ul)
| * Minimum html support using Html class (no ol/ul)Jin Cao2014-06-172-4/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support basic html in ComposeActivity using Html and HtmlTree class. - Extended HtmlTree to take in any arbitrary html -> object converter so we can use it to convert html to spanned as well as plaintext. - Added custom SpannedConverter to feed into HtmlTree. - Added async task to load Utils.htmlToSpan in the background. - Moved ComposeActivity#sendOrSaveInternal to a handler thread in case Utils.spanToHtml takes a long time. Note that we only support a subset of the html tags. To see the full list of tags we currently support, refer to HtmlUtils#SpannedConverter. Performance: About 3x faster than using Html.fromHtml (yay!). Performance should not be an issue for >99% of the users. b/7406122 Change-Id: I484d7fc7d2f36c4724d9e4cb90fa1d65eadcb903
* | Handle surrogate pairs in HTML->Plaintext conversionTony Mantler2014-06-061-0/+50
| | | | | | | | | | | | | | | | Fixes sending emoji in plaintext emails b/15194631 Change-Id: I85aca13ddb0a8ebc95cda692226394f2cddf54f0
* | am 887a238c: Merge "Allow the debugger to be attached on the tests." into ↵Régis Décamps2014-06-021-1/+1
|\| | | | | | | | | | | | | ub-gmail-ur13-dev * commit '887a238c6574a156585837c1dca9143b48ac2d16': Allow the debugger to be attached on the tests.
| * Allow the debugger to be attached on the tests.Régis Décamps2014-05-291-1/+1
| | | | | | | | Change-Id: I26188bdad38f0cd03a91ae55f28b2c61db73b3b8
* | am c7587faa: Merge "Revert the CLs that updated the message headers." into ↵Andrew Sapperstein2014-05-221-0/+37
|\| | | | | | | | | | | | | ub-gmail-ur13-dev * commit 'c7587faa5ce3af11cd4a8401d0f2c4b3248d373a': Revert the CLs that updated the message headers.
| * Revert the CLs that updated the message headers.Andrew Sapperstein2014-05-211-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert "Remove padding for message details. b/13329913." This reverts commit 42c39c4026970508a536099085d5155196bbee42. Revert "Fix UI issues caused by new attachment asset." This reverts commit b6a6a5c2cd6d8b07e93c07b8a2cafa2276d9bec7. Revert "Redesign of message headers. b/12933316." This reverts commit 2ed8c0409cd7d8e64c58ada6f63a519517ddaf7d. Revert "Ensure expanded details always shows. b/13348592." This reverts commit bac524cc0575ff3cf54aa93247bf33c06edcdd9d. Change-Id: I1d70329504dd788e4b2879137bae43eb4c4167fe
* | Sanitize HTML bodies from .eml files and support quoted textJames Lemieux2014-05-211-0/+48
| | | | | | | | | | | | | | | | | | | | | | b/14567151 Sanitizes HTML email bodies on demand as they are parsed from .eml attachments. Adds the OWASP sanitizer to the license page Adds HTML translation to support quoted text collapsing for emails from Gmail, Yahoo and AOL. Change-Id: Ie710e63054539887f507437e2e4fa6ae8415a305
* | Sanitize HTML for Android Email and the EML viewerJames Lemieux2014-05-192-0/+1592
| | | | | | | | | | | | | | | | | | b/14567151 This check-in introduces the sanitizer class and the necessary build changes to compile it. A sibling checkin will actually call it. Change-Id: Ic01e44a5a1c6fcb919880f38a391d8475738886b
* | Fix invalid substring range parametersJay Shrauner2014-05-161-0/+18
|/ | | | | | | | | Fix the fix in decodeEncodedWords to do proper checking of -1 return values from String.indexOf, and make similar fixes in decodeEncodedWord. Add unit tests. Bug:15016488 Change-Id: I607c363bd2dcf76a95d233644e00de74b69770d2
* Fix some testsScott Kennedy2014-04-041-36/+1
| | | | | | The Proguard changes broke a few Change-Id: I7fb2caf7f9e3ceaf9fc14c54abf8a40d8d3ca9c1
* am 10ea28ab: Show "To:<Names>" in sent and outbox index viewsJames Lemieux2014-04-021-4/+4
|\ | | | | | | | | * commit '10ea28ab588d8e922c0f78f0f47fe479739ec2cf': Show "To:<Names>" in sent and outbox index views
| * Show "To:<Names>" in sent and outbox index viewsJames Lemieux2014-03-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/13304929 The solution being delivered introduces a new folder capability: UIProvider.FolderCapabilities.SHOW_RECIPIENTS which indicates a folder should display "To: " in front of its participants list because it is a folder containing outgoing mail or sent mail (thus viewing recipients is more useful than senders). This capability is returned for Drafts, Sent, and Outbox. Note that extra work was required to make this function properly in the widget we export to the launcher. See BaseWidgetProvider and friends for details. Change-Id: I2fa2394224ef3911992ab8d5cb67b05fdf5f3e85
* | Fixed bug with % encodingJin Cao2014-03-271-0/+53
|/ | | | | | | | | | | | | | | | | | | | | The app crashes when %25 exists in the body of mailto (actually also crashes if it's in the subject). This is caused by attempting to decode % encoding twice through getQueryParameters and URLDecoder.decode. e.g. body=Bye%25Bye, after getQueryParameters. the string turns into Bye%Bye, then passing that into URLDecoder.decode will throw error because %Bye is not a valid % encoding. To fix, we manually re-encode %, then run it through URLDecoder to get the correct message. Added unit tests to test full functionality of initFromMailTo with various inputs to make sure that they are displayed correctly. Tested original bug on phone, and % sign is rendered correctly with no crashes. b/12441256 Change-Id: I06b2a4378f11de58d59b4978db1af751928570c7
* Merge "Redesign of message headers. b/12933316." into ub-mail-masterAndy Huang2014-03-051-37/+0
|\
| * Redesign of message headers. b/12933316.Andrew Sapperstein2014-03-041-37/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pixel perfect. Re-architected a bunch of the layouts. Revised some of the string building for the new formatting. Removed unneeded references to some Views. Fixed a visual nit in SecureConversationView with the snap header. Removed a bunch of unnecessary BidiFormatter uses. Deleted dead assets. Removed padding around attachment icon and thus revised the margin/padding for it for both conversation list and conversation view. Aligned star when collapsed to top of date. Change-Id: I4b1fae35206e1f4713687c44a1c226e1257b13e4
* | RTL: properly align from addresses.Andrew Sapperstein2014-03-041-8/+6
|/ | | | | | | b/13082177 b/12687526 Change-Id: I88789a9b986fe0889de2b23c7e8acad5d4f0b0cf
* Get rid of Account#nameTony Mantler2014-03-032-9/+14
| | | | | | b/13249115 Change-Id: I5478b139cba9e3e37924c3af1c7a4f818a803fa3
* Convert tests to use android-support-test.Brett Chabot2014-02-202-3/+5
| | | | Change-Id: Ia1525904c8bd669305f72c6c1973cc0365ca1251
* Add test size annotation to test classes so they get run in continuousJerry Xie2014-02-193-1/+7
| | | | Change-Id: I58e8aa7ed455e9901abfc0a4d6b0874826013090
* comment out broken unit tests in UnifiedEmailAnthony Lee2014-02-071-3/+3
| | | | Change-Id: I41d1ea0e9df509b8cbd0fdbba026888b6bef8101
* Mail in Sent, Drafts and Outbox should show addressees, not sender.James Lemieux2014-02-051-86/+69
| | | | | | | | | | | | | | | | b/10847599 This is the second attempt at fixing this bug. The strategy has changed entirely to accommodate GMail as well as reuse formatting rules that squish the list of conversation participants into an abbreviated line for display in conversation lists. ConversationInfo used to include a List<MessageInfo> which was used to answer questions about which senders had read which messages in the thread. This has been removed and replaced with a List<ParticipantInfo>. The backend should populate that list with appropriate conversation participants (e.g. recipients of the last message in the case of Sent, Drafts or Outbox; senders for all other mailbox types) Change-Id: I834223c55296bcd2509fdf544634c155594739b0
* Merge "Eliminate redundant methods in Address class" into ub-mail-masterJames Lemieux2014-01-301-45/+44
|\
| * Eliminate redundant methods in Address classJames Lemieux2014-01-221-45/+44
| | | | | | | | | | | | | | | | | | | | | | | | 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: I199d7718e6816385c9433c3bd7201f80f2287f10
* | Merge "Add a test for EmlMessageLoader that loads an empty message" into ↵Tony Mantler2014-01-241-0/+97
|\ \ | | | | | | | | | ub-mail-master
| * | Add a test for EmlMessageLoader that loads an empty messageTony Mantler2014-01-241-0/+97
| |/ | | | | | | | | | | b/12717959 Change-Id: Iab83330142b6a01a94309150188ca2983530b167
* / RTL - properly align from address in compose.Andrew Sapperstein2014-01-231-6/+7
|/ | | | | | b/12687526. Change-Id: I5f09303674da08b7870a84ef6477d7bfac4015cd
* Fix a broken test case.James Lemieux2014-01-171-4/+4
| | | | Change-Id: I97c5b7b68df52008bd1ab1aa23cf3be227a7d7a5
* Merge "Recently, Account gained a field: senderName. When ↵James Lemieux2014-01-171-15/+40
|\ | | | | | | serializing/deserializing that field using JSON a bug was introduced where null is serialized in and "" is deserialized out. This checkin fixes the problem." into ub-mail-master
| * Recently, Account gained a field: senderName. When serializing/deserializing ↵James Lemieux2014-01-161-15/+40
| | | | | | | | | | | | | | | | | | that field using JSON a bug was introduced where null is serialized in and "" is deserialized out. This checkin fixes the problem. Change-Id: I66bd52b7d59ea7c3b447b86d776db52aea9b3089
* | Fix broken test cases.James Lemieux2014-01-161-6/+11
|/ | | | | | | HierarchicalFolderTruncationTests were all broken because the assertions were attempting to compare java.lang.Strings to android.text.SpannableStringBuilders. Change-Id: Ibf641cddbaf546b26af414087d0f2b84f4fe1ba4
* Fix build: Remove lingering usage of old Address classTony Mantler2014-01-091-1/+1
| | | | Change-Id: I23d37fe4565ca458ff118584c0cc3a0a323241d3
* Merge "Deduplicate Address class" into ub-mail-masterTony Mantler2014-01-092-27/+719
|\
| * Deduplicate Address classTony Mantler2014-01-082-27/+719
| | | | | | | | Change-Id: I4f6df51f5641475ffaf96b0189ccc00748880cc0
* | Fix test error in MessageHeaderViewTestTony Mantler2014-01-081-2/+6
|/ | | | | b/12122317 Change-Id: Id4eb38acdfe073913432a3ed4077cff73b9ffa4d
* am 0a2a346c: fix internal fancy mailtosAndy Huang2013-12-201-5/+42
|\ | | | | | | | | * commit '0a2a346c8f40ad256eef840338a75a3bdfbe8251': fix internal fancy mailtos
| * fix internal fancy mailtosAndy Huang2013-12-201-5/+42
| | | | | | | | | | | | | | | | | | | | Mailto: links that included anything other than a "to" address weren't handled correctly when a user clicked on one from within a message body. Pass the entire 'mailto' URL to ComposeActivity to ensure our normal mailto parsing code kicks in. Bug: 12137171 Change-Id: I0352ecc80b7c9cfadeb605f8e0b2a694387c9b03
* | Unit test for MailAsyncTaskLoaderTony Mantler2013-12-161-0/+85
|/ | | | | | b/11987449 Change-Id: Ib0d5aae5c51d744ce293ad97df49b368098cd031
* Merge "Divert mailto Uris directly to compose activity" into jb-ub-mail-ur10Tony Mantler2013-10-251-8/+43
|\
| * Divert mailto Uris directly to compose activityTony Mantler2013-10-241-8/+43
| | | | | | | | | | | | b/11329313 Change-Id: I9c255b2018b25669557b208e749e56e7fe1597b4
* | Normalize the whole email address when comparing.Tony Mantler2013-10-241-0/+27
|/ | | | | | b/11336576 Change-Id: I5e79c0d37337f848b385697799d45bf922f86ff1