Home
last modified time | relevance | path

Searched refs:mockTransport (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/mail/transport/
DSmtpSenderUnitTests.java84 MockTransport mockTransport = openAndInjectMockTransport(); in testSimpleLogin() local
87 setupOpen(mockTransport, null); in testSimpleLogin()
104 MockTransport mockTransport = openAndInjectMockTransport(); in testSendMessageWithBody() local
107 mockTransport.expectClose(); in testSendMessageWithBody()
108 setupOpen(mockTransport, null); in testSendMessageWithBody()
120 expectSimpleMessage(mockTransport); in testSendMessageWithBody()
121 mockTransport.expect("Content-Type: text/plain; charset=utf-8"); in testSendMessageWithBody()
122 mockTransport.expect("Content-Transfer-Encoding: base64"); in testSendMessageWithBody()
123 mockTransport.expect(""); in testSendMessageWithBody()
124 mockTransport.expect(TEST_STRING_BASE64); in testSendMessageWithBody()
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/
DPop3StoreUnitTests.java181 MockTransport mockTransport = openAndInjectMockTransport(); in testSimpleLogin() local
184 setupOpenFolder(mockTransport, 0, null); in testSimpleLogin()
201 MockTransport mockTransport = openAndInjectMockTransport(); in testCheckSettings() local
204 setupOpenFolder(mockTransport, 0, null); in testCheckSettings()
205 setupUidlSequence(mockTransport, 1); in testCheckSettings()
206 mockTransport.expect("QUIT", ""); in testCheckSettings()
210 setupOpenFolder(mockTransport, 0, "UIDL"); in testCheckSettings()
211 mockTransport.expect("QUIT", ""); in testCheckSettings()
216 setupOpenFolder(mockTransport, 0, null); in testCheckSettings()
217 mockTransport.expect("UIDL", "-ERR unsupported"); in testCheckSettings()
[all …]
DImapStoreUnitTests.java178 MockTransport mockTransport = openAndInjectMockTransport(); in testSimpleLogin() local
181 setupOpenFolder(mockTransport); in testSimpleLogin()
191 MockTransport mockTransport = openAndInjectMockTransport(); in testLoginFailure() local
192 expectLogin(mockTransport, false, false, false, new String[] {"* iD nIL", "oK"}, in testLoginFailure()
207 MockTransport mockTransport = openAndInjectMockTransport(Transport.CONNECTION_SECURITY_TLS, in testTlsOpen() local
211 expectLogin(mockTransport, true, false, false, in testTlsOpen()
213 mockTransport.expect( in testTlsOpen()
225 assertTrue(mockTransport.isTlsStarted()); in testTlsOpen()
410 MockTransport mockTransport = openAndInjectMockTransport(); in testServerId() local
413 setupOpenFolder(mockTransport, new String[] { in testServerId()
[all …]