Home
last modified time | relevance | path

Searched refs:buildResponse (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapResponseTest.java33 assertTrue(buildResponse("a", false).isTagged()); in testIsTagged()
34 assertFalse(buildResponse(null, false).isTagged()); in testIsTagged()
38 assertTrue(buildResponse(null, false, new ImapSimpleString("OK")).isOk()); in testIsOk()
39 assertFalse(buildResponse(null, false, new ImapSimpleString("NO")).isOk()); in testIsOk()
43 final ImapResponse OK = buildResponse("tag", false, new ImapSimpleString("OK")); in testIsDataResponse()
44 final ImapResponse SEARCH = buildResponse(null, false, new ImapSimpleString("SEARCH"), in testIsDataResponse()
46 final ImapResponse EXISTS = buildResponse(null, false, new ImapSimpleString("3"), in testIsDataResponse()
49 final ImapResponse TAGGED_EXISTS = buildResponse("tag", false, new ImapSimpleString("1"), in testIsDataResponse()
68 buildResponse("tag", false, in testGetResponseCodeOrEmpty()
76 buildResponse("tag", false, in testGetResponseCodeOrEmpty()
[all …]
DImapResponseParserTest.java21 import static com.android.email.mail.store.imap.ImapTestUtils.buildResponse;
86 assertElement(buildResponse(null, false, in testBasic()
96 assertElement(buildResponse("100", false, in testBasic()
102 assertElement(buildResponse(null, true, in testBasic()
107 assertElement(buildResponse(null, false, in testBasic()
118 assertElement(buildResponse("101", false, in testBasic()
124 assertElement(buildResponse("102", false, in testBasic()
130 assertElement(buildResponse(null, false, in testBasic()
136 assertElement(buildResponse("103", false, in testBasic()
141 assertElement(buildResponse(null, false, in testBasic()
[all …]
DImapTestUtils.java75 public static final ImapResponse buildResponse(String tag, boolean isContinuationRequest, in buildResponse() method in ImapTestUtils
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DDownloadProviderFunctionalTest.java56 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testDownloadTextFile()
72 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testDownloadToCache()
84 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testRoaming()
85 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testRoaming()
106 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testCleartextTrafficPermittedFlagHonored()
107 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testCleartextTrafficPermittedFlagHonored()
DPublicApiFunctionalTest.java107 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testBasicRequest()
226 MockResponse response = buildResponse(status, FILE_CONTENT.substring(start, end)) in buildPartialResponse()
242 return buildResponse(HTTP_OK, STRING_1K) in buildContinuingResponse()
290 enqueueResponse(buildResponse(HTTP_OK, "small contents")); in testOrdering()
291 enqueueResponse(buildResponse(HTTP_OK, "large contents large contents")); in testOrdering()
350 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testDestination()
393 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testSizeLimitOverMobile()
394 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testSizeLimitOverMobile()
461 enqueueResponse(buildResponse(HTTP_OK, A.substring(0, 2)) in testEtagChanged()
577 enqueueResponse(buildResponse(HTTP_OK, FILE_CONTENT)); in testBasicConnectivityChanges()
DAbstractDownloadProviderFunctionalTest.java247 MockResponse buildResponse(int status, String body) { in buildResponse() method in AbstractDownloadProviderFunctionalTest
253 MockResponse buildResponse(int status, byte[] body) { in buildResponse() method in AbstractDownloadProviderFunctionalTest
260 return buildResponse(status, ""); in buildEmptyResponse()