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;
67 .synReply(false, 1, headerEntries("a", "android")); in clientCreatesStreamAndServerReplies()
74 FramedStream stream = connection.newStream(headerEntries("b", "banana"), true, true); in clientCreatesStreamAndServerReplies()
75 assertEquals(headerEntries("a", "android"), stream.getResponseHeaders()); in clientCreatesStreamAndServerReplies()
90 assertEquals(headerEntries("b", "banana"), synStream.headerBlock); in clientCreatesStreamAndServerReplies()
99 peer.sendFrame().synReply(false, 1, headerEntries("b", "banana")); in headersOnlyStreamIsClosedAfterReplyHeaders()
105 FramedStream stream = connection.newStream(headerEntries("a", "android"), false, false); in headersOnlyStreamIsClosedAfterReplyHeaders()
108 assertEquals(headerEntries("b", "banana"), stream.getResponseHeaders()); in headersOnlyStreamIsClosedAfterReplyHeaders()
119 peer.sendFrame().synReply(true, 1, headerEntries("a", "android")); in clientCreatesStreamAndServerRepliesWithFin()
125 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);
192 FramedStream stream1 = connection.newStream(headerEntries("a", "android"), true, true);
193 FramedStream stream2 = connection.newStream(headerEntries("b", "banana"), true, true);
208 connection.newStream(headerEntries("c", "cola"), true, true);
240 peer.sendFrame().synReply(false, 3, headerEntries("a", "android"));
255 FramedStream stream = connection.newStream(headerEntries("b", "banana"), false, true);
257 assertEquals(headerEntries("a", "android"), stream.getResponseHeaders());
290 peer.sendFrame().synReply(false, 3, headerEntries("a", "android"));
296 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/grpc-grpc-java/okhttp/third_party/okhttp/test/java/io/grpc/okhttp/internal/framed/
DHpackTest.java37 private static List<Header> headerEntries(String... elements) { in headerEntries() method in HpackTest
64 List<Header> headerBlock = headerEntries("cookie", new String(value)); in largeHeaderValue()
92 assertEquals(headerEntries("custom-key", "custom-header"), hpackReader.getAndResetHeaderList()); in tooLargeToHPackIsStillEmitted()
108 assertEquals(headerEntries("custom-key", "custom-header"), hpackReader.getAndResetHeaderList()); in setMaxDynamicTableToZeroDoesNotClearHeaderList()
149 headerEntries( in testEviction()
212 assertEquals(headerEntries("custom-key", "custom-header"), hpackReader.getAndResetHeaderList()); in readLiteralHeaderFieldWithIndexing()
219 List<Header> headerBlock = headerEntries(":path", "/sample/path"); in literalHeaderFieldWithoutIndexingIndexedName()
237 List<Header> headerBlock = headerEntries("custom-key", "custom-header"); in literalHeaderFieldWithoutIndexingNewName()
266 assertEquals(headerEntries(":path", "/sample/path"), hpackReader.getAndResetHeaderList()); in literalHeaderFieldNeverIndexedIndexedName()
281 assertEquals(headerEntries("custom-key", "custom-header"), hpackReader.getAndResetHeaderList()); in literalHeaderFieldNeverIndexedNewName()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DHeadersTest.java31 import static com.squareup.okhttp.TestUtil.headerEntries;
38 List<Header> headerBlock = headerEntries( in parseNameValueBlock()
63 List<Header> headerBlock = headerEntries( in readNameValueBlockDropsForbiddenHeadersSpdy3()
74 List<Header> headerBlock = headerEntries( in readNameValueBlockDropsForbiddenHeadersHttp2()
95 List<Header> expected = headerEntries( in spdy3HeadersList()
113 List<Header> expected = headerEntries( in spdy3HeadersListDropsForbiddenHeadersSpdy3()
128 List<Header> expected = headerEntries( in http2HeadersListDropsForbiddenHeadersHttp2()
/external/llvm-project/lld/lib/ReaderWriter/MachO/
DCompactUnwindPass.cpp113 uint8_t *headerEntries = _contents.data(); in addHeader() local
115 write32(headerEntries, 1, _isBig); in addHeader()
117 write32(headerEntries + sizeof(uint32_t), _commonEncodingsOffset, _isBig); in addHeader()
119 write32(headerEntries + 2 * sizeof(uint32_t), numCommon, _isBig); in addHeader()
121 write32(headerEntries + 3 * sizeof(uint32_t), _personalityArrayOffset, in addHeader()
124 write32(headerEntries + 4 * sizeof(uint32_t), numPersonalities, _isBig); in addHeader()
126 write32(headerEntries + 5 * sizeof(uint32_t), _topLevelIndexOffset, _isBig); in addHeader()
128 write32(headerEntries + 6 * sizeof(uint32_t), numPages + 1, _isBig); in addHeader()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DTestUtil.java15 public static List<Header> headerEntries(String... elements) { in headerEntries() method in TestUtil