Home
last modified time | relevance | path

Searched refs:headerEntries (Results 1 – 8 of 8) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DSpdy3ConnectionTest.java39 import static com.squareup.okhttp.TestUtil.headerEntries;
71 .synReply(false, 1, headerEntries("a", "android")); in clientCreatesStreamAndServerReplies()
78 FramedStream stream = connection.newStream(headerEntries("b", "banana"), true, true); in clientCreatesStreamAndServerReplies()
79 assertEquals(headerEntries("a", "android"), stream.getResponseHeaders()); in clientCreatesStreamAndServerReplies()
94 assertEquals(headerEntries("b", "banana"), synStream.headerBlock); in clientCreatesStreamAndServerReplies()
101 peer.sendFrame().synReply(false, 1, headerEntries("b", "banana")); in headersOnlyStreamIsClosedAfterReplyHeaders()
107 FramedStream stream = connection.newStream(headerEntries("a", "android"), false, false); in headersOnlyStreamIsClosedAfterReplyHeaders()
109 assertEquals(headerEntries("b", "banana"), stream.getResponseHeaders()); in headersOnlyStreamIsClosedAfterReplyHeaders()
118 peer.sendFrame().synReply(true, 1, headerEntries("a", "android")); in clientCreatesStreamAndServerRepliesWithFin()
124 connection.newStream(headerEntries("b", "banana"), false, true); in clientCreatesStreamAndServerRepliesWithFin()
[all …]
DHttp2ConnectionTest.java33 import static com.squareup.okhttp.TestUtil.headerEntries;
131 FramedStream stream = connection.newStream(headerEntries("a", "android"), false, true);
190 FramedStream stream1 = connection.newStream(headerEntries("a", "android"), true, true);
191 FramedStream stream2 = connection.newStream(headerEntries("b", "banana"), true, true);
206 connection.newStream(headerEntries("c", "cola"), true, true);
236 peer.sendFrame().synReply(false, 3, headerEntries("a", "android"));
251 FramedStream stream = connection.newStream(headerEntries("b", "banana"), false, true);
253 assertEquals(headerEntries("a", "android"), stream.getResponseHeaders());
284 peer.sendFrame().synReply(false, 3, headerEntries("a", "android"));
290 FramedStream client = connection.newStream(headerEntries("b", "banana"), false, true);
[all …]
DHpackTest.java26 import static com.squareup.okhttp.TestUtil.headerEntries;
52 List<Header> headerBlock = headerEntries("cookie", new String(value)); in largeHeaderValue()
80 assertEquals(headerEntries("custom-key", "custom-header"), hpackReader.getAndResetHeaderList()); in tooLargeToHPackIsStillEmitted()
121 headerEntries( in testEviction()
184 assertEquals(headerEntries("custom-key", "custom-header"), hpackReader.getAndResetHeaderList()); in readLiteralHeaderFieldWithIndexing()
191 List<Header> headerBlock = headerEntries(":path", "/sample/path"); in literalHeaderFieldWithoutIndexingIndexedName()
209 List<Header> headerBlock = headerEntries("custom-key", "custom-header"); in literalHeaderFieldWithoutIndexingNewName()
238 assertEquals(headerEntries(":path", "/sample/path"), hpackReader.getAndResetHeaderList()); in literalHeaderFieldNeverIndexedIndexedName()
253 assertEquals(headerEntries("custom-key", "custom-header"), hpackReader.getAndResetHeaderList()); in literalHeaderFieldNeverIndexedNewName()
267 assertEquals(headerEntries(":method", "GET"), hpackReader.getAndResetHeaderList()); in staticHeaderIsNotCopiedIntoTheIndexedTable()
[all …]
DHttp2Test.java30 import static com.squareup.okhttp.TestUtil.headerEntries;
58 final List<Header> sentHeaders = headerEntries("name", "value"); in onlyOneLiteralHeadersFrame()
84 final List<Header> sentHeaders = headerEntries("name", "value"); in headersWithPriority()
464 Buffer headerBlock = literalHeaders(headerEntries("foo", "barrr", "baz", "qux")); in readPaddedHeadersFrame()
478 Buffer headerBlock = literalHeaders(headerEntries("foo", "barrr", "baz", "qux")); in readPaddedHeadersFrameZeroPadding()
496 Buffer headerBlock = literalHeaders(headerEntries("foo", "barrr", "baz", "qux")); in readPaddedHeadersFrameThenContinuation()
701 assertEquals(headerEntries("foo", "barrr", "baz", "qux"), headerBlock); in assertHeaderBlock()
736 return headerEntries(nameValues);
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DHeadersTest.java32 import static com.squareup.okhttp.TestUtil.headerEntries;
39 List<Header> headerBlock = headerEntries( in parseNameValueBlock()
68 List<Header> headerBlock = headerEntries( in readNameValueBlockDropsForbiddenHeadersSpdy3()
82 List<Header> headerBlock = headerEntries( in readNameValueBlockDropsForbiddenHeadersHttp2()
105 List<Header> expected = headerEntries( in toNameValueBlock()
123 List<Header> expected = headerEntries( in toNameValueBlockDropsForbiddenHeadersSpdy3()
138 List<Header> expected = headerEntries( in toNameValueBlockDropsForbiddenHeadersHttp2()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DTestUtil.java15 public static List<Header> headerEntries(String... elements) { in headerEntries() method in TestUtil
/external/robolectric/v3/runtime/
Dandroid-all-5.1.1_r9-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-5.0.0_r2-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...