/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 212 private static void assertEmailContentEqual(String caller, EmailContent expect, in assertEmailContentEqual() argument 214 if (expect == actual) { in assertEmailContentEqual() 218 assertEquals(caller + " mId", expect.mId, actual.mId); in assertEmailContentEqual() 219 assertEquals(caller + " mBaseUri", expect.mBaseUri, actual.mBaseUri); in assertEmailContentEqual() 227 public static void assertAccountEqual(String caller, Account expect, Account actual) { in assertAccountEqual() argument 228 if (expect == actual) { in assertAccountEqual() 232 assertEmailContentEqual(caller, expect, actual); in assertAccountEqual() 233 assertEquals(caller + " mDisplayName", expect.mDisplayName, actual.mDisplayName); in assertAccountEqual() 234 assertEquals(caller + " mEmailAddress", expect.mEmailAddress, actual.mEmailAddress); in assertAccountEqual() 235 assertEquals(caller + " mSyncKey", expect.mSyncKey, actual.mSyncKey); in assertAccountEqual() [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/transport/ |
D | SmtpSenderUnitTests.java | 125 mockTransport.expect("Content-Type: text/plain; charset=utf-8"); in testSendMessageWithBody() 126 mockTransport.expect("Content-Transfer-Encoding: base64"); in testSendMessageWithBody() 127 mockTransport.expect(""); in testSendMessageWithBody() 128 mockTransport.expect(TEST_STRING_BASE64); in testSendMessageWithBody() 129 mockTransport.expect("\r\n\\.", "250 2.0.0 kv2f1a00C02Rf8w3Vv mail accepted for delivery"); in testSendMessageWithBody() 153 mockTransport.expect("Content-Type: multipart/mixed; boundary=\".*"); in testSendMessageWithEmptyAttachment() 154 mockTransport.expect(""); in testSendMessageWithEmptyAttachment() 155 mockTransport.expect("----.*"); in testSendMessageWithEmptyAttachment() 157 mockTransport.expect(""); in testSendMessageWithEmptyAttachment() 158 mockTransport.expect("----.*--"); in testSendMessageWithEmptyAttachment() [all …]
|
D | MockTransport.java | 103 public void expect(String pattern) { in expect() method in MockTransport 104 expect(pattern, (String[])null); in expect() 112 public void expect(String pattern, String response) { in expect() method in MockTransport 113 expect(pattern, (response == null) ? null : new String[] { response }); in expect() 121 public void expect(String pattern, String[] responses) { in expect() method in MockTransport 131 expect("^" + Pattern.quote(literal) + "$", responses); in expectLiterally() 198 Transaction expect = mPairs.remove(0); in close() local 199 if (expect.mAction == Transaction.ACTION_CLIENT_CLOSE) { in close() 305 Transaction expect = mPairs.remove(0); in reopenTls() local 306 SmtpSenderUnitTests.assertTrue(expect.mAction == Transaction.ACTION_START_TLS); in reopenTls()
|
/packages/apps/Email/tests/src/com/android/email/ |
D | LegacyConversionsTests.java | 515 private void checkProviderMessage(String tag, Message expect, EmailContent.Message actual) in checkProviderMessage() argument 517 assertEquals(tag, expect.getUid(), actual.mServerId); in checkProviderMessage() 518 assertEquals(tag, expect.getSubject(), actual.mSubject); in checkProviderMessage() 519 assertEquals(tag, Address.pack(expect.getFrom()), actual.mFrom); in checkProviderMessage() 520 assertEquals(tag, expect.getSentDate().getTime(), actual.mTimeStamp); in checkProviderMessage() 521 assertEquals(tag, Address.pack(expect.getRecipients(RecipientType.TO)), actual.mTo); in checkProviderMessage() 522 assertEquals(tag, Address.pack(expect.getRecipients(RecipientType.CC)), actual.mCc); in checkProviderMessage() 523 assertEquals(tag, ((MimeMessage)expect).getMessageId(), actual.mMessageId); in checkProviderMessage() 524 assertEquals(tag, expect.isSet(Flag.SEEN), actual.mFlagRead); in checkProviderMessage() 525 assertEquals(tag, expect.isSet(Flag.FLAGGED), actual.mFlagFavorite); in checkProviderMessage() [all …]
|
D | UtilityUnitTests.java | 60 String expect, name; in testGetDisplayName() local 61 expect = context.getString(R.string.mailbox_name_display_inbox); in testGetDisplayName() 63 assertEquals(expect, name); in testGetDisplayName() 64 expect = null; in testGetDisplayName() 66 assertEquals(expect, name); in testGetDisplayName() 67 expect = null; in testGetDisplayName() 69 assertEquals(expect, name); in testGetDisplayName() 70 expect = context.getString(R.string.mailbox_name_display_drafts); in testGetDisplayName() 72 assertEquals(expect, name); in testGetDisplayName() 73 expect = context.getString(R.string.mailbox_name_display_outbox); in testGetDisplayName() [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | Pop3StoreUnitTests.java | 187 mockTransport.expect("QUIT", ""); in testCheckSettings() 192 mockTransport.expect("QUIT", ""); in testCheckSettings() 198 mockTransport.expect("UIDL", "-ERR unsupported"); in testCheckSettings() 199 mockTransport.expect("QUIT", ""); in testCheckSettings() 217 mockTransport.expect(null, "-ERR from the Mock Transport."); in testCheckSettingsCapabilities() 231 mockTransport.expect("QUIT", ""); in testCheckSettingsCapabilities() 234 mockTransport.expect("QUIT", ""); in testCheckSettingsCapabilities() 448 mockTransport.expect("UIDL", "+OK sending UIDL list"); in testCatchClosed1b() 449 mockTransport.expect(null, "bad-data" + " " + "THE-UIDL"); in testCatchClosed1b() 450 mockTransport.expect(null, "."); in testCatchClosed1b() [all …]
|
D | ImapStoreUnitTests.java | 157 mockTransport.expect( in testTlsOpen() 484 mockTransport.expect( in setupOpenFolder() 508 mockTransport.expect(null, "* oK Imap 2000 Ready To Assist You"); in expectLogin() 514 mockTransport.expect(getNextTag(false) + " STARTTLS", in expectLogin() 528 mockTransport.expect(getNextTag(false) + " ID \\(.*\\)", imapIdResponse); in expectLogin() 533 mockTransport.expect(getNextTag(false) + " LOGIN user \"password\"", in expectLogin() 542 mockTransport.expect(getNextTag(false) + " CAPABILITY", new String[] { in expectCapability() 549 mockTransport.expect(getNextTag(false) + " NOOP", in expectNoop() 593 mock.expect( in testGetUnreadMessageCountWithQuotedString() 609 mock.expect( in testGetUnreadMessageCountWithLiteralString() [all …]
|
/packages/apps/Email/src/org/apache/james/mime4j/message/ |
D | Message.java | 104 private void expect(Class c) { in expect() method in Message.MessageBuilder 119 expect(Entity.class); in startMessage() 130 expect(Message.class); in endMessage() 145 expect(Header.class); in field() 153 expect(Header.class); in endHeader() 155 expect(Entity.class); in endHeader() 163 expect(Entity.class); in startMultipart() 175 expect(Entity.class); in body() 205 expect(Multipart.class); in startBodyPart() 216 expect(BodyPart.class); in endBodyPart() [all …]
|
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
D | ImapResponseParser.java | 212 /* package for test */ void expect(char expected) throws IOException { in expect() method in ImapResponseParser 241 expect('\n'); // TODO Should this really be error? in readUntilEol() 262 expect(' '); in parseResponse() 277 expect(' '); in parseResponse() 312 expect('\r'); in parseResponse() 313 expect('\n'); in parseResponse() 344 expect('\n'); // Should be followed by LF. in parseElement() 426 expect(opening); in parseList() 429 expect(closing); in parseList() 434 expect('{'); in parseLiteral() [all …]
|
/packages/apps/Email/src/com/android/email/mail/internet/ |
D | MimeMessage.java | 508 private void expect(Class c) { in expect() method in MimeMessage.MimeMessageBuilder 519 expect(Part.class); in startMessage() 531 expect(MimeMessage.class); in endMessage() 536 expect(Part.class); in startHeader() 540 expect(Part.class); in field() 550 expect(Part.class); in endHeader() 554 expect(Part.class); in startMultipart() 567 expect(Part.class); in body() 581 expect(MimeMultipart.class); in startBodyPart() 593 expect(BodyPart.class); in endBodyPart() [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
D | ImapResponseParserTest.java | 58 p.expect('a'); in testExpect() 59 p.expect('b'); in testExpect() 61 p.expect('C'); in testExpect()
|
/packages/apps/Email/tests/src/com/android/email/activity/ |
D | MessageComposeTests.java | 923 String expect = new String(before + (expectComma ? ", " : " ") + after); in checkCommaInsert() local 933 assertEquals(expect, result); in checkCommaInsert()
|