Home
last modified time | relevance | path

Searched refs:setBody (Results 1 – 25 of 159) sorted by relevance

1234567

/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java188 .setBody("ABCDE") in assertCached()
235 transferKind.setBody(mockResponse, "I love puppies but hate spiders", 1); in testResponseCaching()
263 .setBody("ABC")); in secureResponseCaching()
298 .setBody("ABC")); in responseCachingAndRedirects()
300 .setBody("DEF")); in responseCachingAndRedirects()
312 .setBody("ABC")); in redirectToCachedResult()
317 .setBody("DEF")); in redirectToCachedResult()
346 .setBody("ABC")); in secureResponseCachingAndRedirects()
348 .setBody("DEF")); in secureResponseCachingAndRedirects()
378 .setBody("ABC")); in secureResponseCachingAndProtocolRedirects()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheTest.java162 .setBody("ABCDE") in assertCached()
170 mockResponse.setBody(""); // We forbid bodies for 204 and 205. in assertCached()
215 transferKind.setBody(mockResponse, "I love puppies but hate spiders", 1); in testResponseCaching()
251 .setBody("ABC")); in secureResponseCaching()
291 .setBody("ABC")); in responseCachingAndRedirects()
293 .setBody("DEF")); in responseCachingAndRedirects()
310 .setBody("ABC")); in redirectToCachedResult()
315 .setBody("DEF")); in redirectToCachedResult()
350 .setBody("ABC")); in secureResponseCachingAndRedirects()
352 .setBody("DEF")); in secureResponseCachingAndRedirects()
[all …]
DConnectionReuseTest.java41 server.enqueue(new MockResponse().setBody("a")); in connectionsAreReused()
42 server.enqueue(new MockResponse().setBody("b")); in connectionsAreReused()
52 server.enqueue(new MockResponse().setBody("a")); in connectionsAreReusedWithHttp2()
53 server.enqueue(new MockResponse().setBody("b")); in connectionsAreReusedWithHttp2()
62 server.enqueue(new MockResponse().setBody("a")); in connectionsAreNotReusedWithRequestConnectionClose()
63 server.enqueue(new MockResponse().setBody("b")); in connectionsAreNotReusedWithRequestConnectionClose()
78 .setBody("a")); in connectionsAreNotReusedWithResponseConnectionClose()
79 server.enqueue(new MockResponse().setBody("b")); in connectionsAreNotReusedWithResponseConnectionClose()
92 .setBody("a") in connectionsAreNotReusedWithUnknownLengthResponseBody()
95 server.enqueue(new MockResponse().setBody("b")); in connectionsAreNotReusedWithUnknownLengthResponseBody()
[all …]
DURLConnectionTest.java303 server.enqueue(new MockResponse().setBody("abc")); in testRequestBodySurvivesRetries()
321 server.enqueue(new MockResponse().setBody("A")); in getErrorStreamOnSuccessfulRequest()
328 server.enqueue(new MockResponse().setResponseCode(404).setBody("A")); in getErrorStreamOnUnsuccessfulRequest()
359 MockResponse response = new MockResponse().setBody("ABCDEFGHIJKLMNOPQR"); in connectionsArePooled()
412 server.enqueue(new MockResponse().setBody("This connection won't pool properly") in testServerClosesOutput()
414 MockResponse responseAfter = new MockResponse().setBody("This comes after a busted connection"); in testServerClosesOutput()
514 server.enqueue(new MockResponse().setBody("this response comes via HTTPS")); in connectViaHttps()
557 server.enqueue(new MockResponse().setBody("this response comes via HTTPS")); in connectViaHttpsReusingConnections()
558 server.enqueue(new MockResponse().setBody("another response via HTTPS")); in connectViaHttpsReusingConnections()
579 server.enqueue(new MockResponse().setBody("this response comes via HTTPS")); in connectViaHttpsReusingConnectionsDifferentFactories()
[all …]
DCallTest.java111 server.enqueue(new MockResponse().setBody("abc").addHeader("Content-Type: text/plain")); in get()
265 server.enqueue(new MockResponse().setBody("abc")); in post()
299 server.enqueue(new MockResponse().setBody("abc")); in postZeroLength()
401 server.enqueue(new MockResponse().setBody("Success!")); in attemptAuthorization20Times()
429 server.enqueue(new MockResponse().setBody("abc")); in delete()
463 server.enqueue(new MockResponse().setBody("abc")); in deleteWithRequestBody()
480 server.enqueue(new MockResponse().setBody("abc")); in put()
514 server.enqueue(new MockResponse().setBody("abc")); in patch()
565 .setBody("abc") in illegalToExecuteTwice()
596 .setBody("abc") in illegalToExecuteTwice_Async()
[all …]
DSocksProxyTest.java48 server.enqueue(new MockResponse().setBody("abc")); in proxy()
49 server.enqueue(new MockResponse().setBody("def")); in proxy()
67 server.enqueue(new MockResponse().setBody("abc")); in proxySelector()
91 server.enqueue(new MockResponse().setBody("abc")); in checkRemoteDNSResolve()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java171 .setBody("ABCDE") in assertCached()
219 transferKind.setBody(response, "I love puppies but hate spiders", 1); in testResponseCaching()
252 .setBody("ABC")); in secureResponseCaching()
289 .setBody("ABC")); in responseCachingAndRedirects()
290 server.enqueue(new MockResponse().setBody("DEF")); in responseCachingAndRedirects()
304 server.enqueue(new MockResponse().addHeader("Cache-Control: max-age=60").setBody("ABC")); in redirectToCachedResult()
307 server.enqueue(new MockResponse().setBody("DEF")); in redirectToCachedResult()
334 .setBody("ABC")); in secureResponseCachingAndRedirects()
335 server.enqueue(new MockResponse().setBody("DEF")); in secureResponseCachingAndRedirects()
366 .setBody("ABC")); in secureResponseCachingAndProtocolRedirects()
[all …]
DOkUrlFactoryTest.java66 server.enqueue(new MockResponse().setBody("Isla Sorna")); in networkResponseSourceHeader()
85 .setBody("Isla Nublar")); in conditionalCacheHitResponseSourceHeaders()
101 .setBody("Isla Nublar")); in conditionalCacheMissResponseSourceHeaders()
102 server.enqueue(new MockResponse().setBody("Isla Sorna")); in conditionalCacheMissResponseSourceHeaders()
116 .setBody("Isla Nublar")); in cacheResponseSourceHeaders()
128 server.enqueue(new MockResponse().setBody("Isla Nublar")); in noneResponseSourceHeaders()
144 .setBody("A")); in setInstanceFollowRedirectsFalse()
146 .setBody("B")); in setInstanceFollowRedirectsFalse()
157 .setBody("B")); in testURLFilter()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java97 MockResponse response = new MockResponse().setBody("ABCDE").setStatus("HTTP/1.1 200 Sweet"); in get()
121 server.enqueue(new MockResponse().setBody("ABCDE")); in noDefaultContentLengthOnStreamingPost()
136 server.enqueue(new MockResponse().setBody("ABCDE")); in userSuppliedContentLengthHeader()
151 server.enqueue(new MockResponse().setBody("ABCDE")); in closeAfterFlush()
168 server.enqueue(new MockResponse().setBody("ABCDE")); in setFixedLengthStreamingModeSetsContentLength()
183 server.enqueue(new MockResponse().setBody("ABCDEF")); in spdyConnectionReuse()
184 server.enqueue(new MockResponse().setBody("GHIJKL")); in spdyConnectionReuse()
197 server.enqueue(new MockResponse().setBody("A")); in synchronousSpdyRequest()
198 server.enqueue(new MockResponse().setBody("A")); in synchronousSpdyRequest()
211 new MockResponse().addHeader("Content-Encoding: gzip").setBody(gzip("ABCABCABC"))); in gzippedResponseBody()
[all …]
DHttpOverHttp2Test.java37 new MockResponse().setBody("bar").setStatus("HTTP/1.1 200 Sweet")); in serverSendsPushPromise_GET()
39 .setBody("ABCDE") in serverSendsPushPromise_GET()
63 .setBody("ABCDE") in serverSendsPushPromise_HEAD()
96 server.enqueue(new MockResponse().setBody("ABC")); in settingsLimitsMaxConcurrentStreams()
97 server.enqueue(new MockResponse().setBody("DEF")); in settingsLimitsMaxConcurrentStreams()
98 server.enqueue(new MockResponse().setBody("GHI")); in settingsLimitsMaxConcurrentStreams()
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DMockWebServerTest.java76 MockResponse response = new MockResponse().setBody("ABC"); in testSetBodyAdjustsHeaders()
107 server.enqueue(new MockResponse().setBody("hello world")); in testRegularResponse()
128 .setBody("This page has moved!")); in testRedirect()
129 server.enqueue(new MockResponse().setBody("This is the new location!")); in testRedirect()
155 server.enqueue(new MockResponse().setBody("enqueued in the background")); in testDispatchBlocksWaitingForEnqueue()
167 .setBody("G\r\nxxxxxxxxxxxxxxxx\r\n0\r\n\r\n") in testNonHexadecimalChunkSize()
183 .setBody("ABC") in testResponseTimeout()
187 .setBody("DEF")); in testResponseTimeout()
228 server.enqueue(new MockResponse().setBody(responseBody, 3)); in testStreamingResponseBody()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/
Dcom_github_javaparser_ast_stmt_ForeachStmt.txt3 …Line 50) setBody(body) ==> com.github.javaparser.ast.stmt.ForeachStmt.setBody(com.github.javaparse…
6 …Line 59) setBody(body) ==> com.github.javaparser.ast.stmt.ForeachStmt.setBody(com.github.javaparse…
9 …Line 72) setBody(body) ==> com.github.javaparser.ast.stmt.ForeachStmt.setBody(com.github.javaparse…
Dcom_github_javaparser_ast_stmt_DoStmt.txt1 …Line 43) setBody(body) ==> com.github.javaparser.ast.stmt.DoStmt.setBody(com.github.javaparser.ast…
3 …Line 49) setBody(body) ==> com.github.javaparser.ast.stmt.DoStmt.setBody(com.github.javaparser.ast…
Dcom_github_javaparser_ast_stmt_WhileStmt.txt2 …Line 44) setBody(body) ==> com.github.javaparser.ast.stmt.WhileStmt.setBody(com.github.javaparser.…
4 …Line 50) setBody(body) ==> com.github.javaparser.ast.stmt.WhileStmt.setBody(com.github.javaparser.…
Dcom_github_javaparser_ast_stmt_CatchClause.txt2 …Line 53) setBody(catchBlock) ==> com.github.javaparser.ast.stmt.CatchClause.setBody(com.github.jav…
4 …Line 64) setBody(catchBlock) ==> com.github.javaparser.ast.stmt.CatchClause.setBody(com.github.jav…
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DMockWebServerTest.java59 MockResponse response = new MockResponse().setBody("ABC"); in setBodyAdjustsHeaders()
84 server.enqueue(new MockResponse().setBody("hello world")); in regularResponse()
103 .setBody("This page has moved!")); in redirect()
104 server.enqueue(new MockResponse().setBody("This is the new location!")); in redirect()
128 server.enqueue(new MockResponse().setBody("enqueued in the background")); in dispatchBlocksWaitingForEnqueue()
140 .setBody("G\r\nxxxxxxxxxxxxxxxx\r\n0\r\n\r\n") in nonHexadecimalChunkSize()
155 .setBody("ABC") in responseTimeout()
158 server.enqueue(new MockResponse().setBody("DEF")); in responseTimeout()
221 .setBody("ABCDEF")
244 .setBody("ABCDEF")
[all …]
/external/grpc-grpc-java/interop-testing/src/main/java/io/grpc/testing/integration/
DAbstractInteropTest.java364 .setBody(ByteString.copyFromUtf8(String.valueOf(System.nanoTime())))) in cacheableUnary()
370 .setBody(ByteString.copyFromUtf8(String.valueOf(System.nanoTime())))) in cacheableUnary()
394 .setBody(ByteString.copyFrom(new byte[271828]))) in largeUnary()
399 .setBody(ByteString.copyFrom(new byte[314159]))) in largeUnary()
418 .setPayload(Payload.newBuilder().setBody(ByteString.copyFrom(new byte[271828]))) in clientCompressedUnary()
424 .setPayload(Payload.newBuilder().setBody(ByteString.copyFrom(new byte[271828]))) in clientCompressedUnary()
428 .setPayload(Payload.newBuilder().setBody(ByteString.copyFrom(new byte[314159]))) in clientCompressedUnary()
472 .setPayload(Payload.newBuilder().setBody(ByteString.copyFrom(new byte[271828]))) in serverCompressedUnary()
478 .setPayload(Payload.newBuilder().setBody(ByteString.copyFrom(new byte[271828]))) in serverCompressedUnary()
482 .setPayload(Payload.newBuilder().setBody(ByteString.copyFrom(new byte[314159]))) in serverCompressedUnary()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/stmt/
DForeachStmt.java50 setBody(body); in ForeachStmt()
59 setBody(body); in ForeachStmt()
72 setBody(body); in ForeachStmt()
99 public ForeachStmt setBody(final Statement body) { in setBody() method in ForeachStmt
DWhileStmt.java44 setBody(body); in WhileStmt()
50 setBody(body); in WhileStmt()
71 public WhileStmt setBody(final Statement body) { in setBody() method in WhileStmt
DDoStmt.java43 setBody(body); in DoStmt()
49 setBody(body); in DoStmt()
71 public DoStmt setBody(final Statement body) { in setBody() method in DoStmt
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java48 server.enqueue(new MockResponse().setBody("Hello, World!")); in success()
58 server.enqueue(new MockResponse().setBody("Hello, Redirect!")); in redirect()
150 server.enqueue(new MockResponse().setBody("<html><body><h1>Hello, World!</h1></body></html>") in contentType()
152 server.enqueue(new MockResponse().setBody("{\"Message\": { \"text\": \"Hello, World!\" } }") in contentType()
154 server.enqueue(new MockResponse().setBody("Hello, World!")); in contentType()
180 server.enqueue(new MockResponse().setBody("{\"Message\": { \"text\": \"Hello, World!\" } }") in contentTypeIsCaseInsensitive()
190 server.enqueue(new MockResponse().setBody(gzip(text)) in contentEncoding()
209 server.enqueue(new MockResponse().setBody(gzip(text)) in jsonGzipResponse()
236 server.enqueue(new MockResponse().setBody(gzip(text)) in jsonTransparentGzipResponse()
/external/mockwebserver/src/main/java/com/google/mockwebserver/
DMockResponse.java57 setBody(new byte[0]); in MockResponse()
157 public MockResponse setBody(byte[] body) { in setBody() method in MockResponse
164 public MockResponse setBody(InputStream bodyStream, long bodyLength) { in setBody() method in MockResponse
174 public MockResponse setBody(String body) { in setBody() method in MockResponse
176 return setBody(body.getBytes("UTF-8")); in setBody()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/stmt/
DWhileStmt.java42 setBody(body); in WhileStmt()
49 setBody(body); in WhileStmt()
68 public void setBody(final Statement body) { in setBody() method in WhileStmt
DDoStmt.java41 setBody(body); in DoStmt()
48 setBody(body); in DoStmt()
68 public void setBody(final Statement body) { in setBody() method in DoStmt
DForeachStmt.java47 setBody(body); in ForeachStmt()
57 setBody(body); in ForeachStmt()
82 public void setBody(final Statement body) { in setBody() method in ForeachStmt

1234567