Home
last modified time | relevance | path

Searched refs:headers2 (Results 1 – 5 of 5) sorted by relevance

/external/curl/tests/libtest/
Dlib650.c59 struct curl_slist *headers, *headers2 = NULL; in test() local
77 headers2 = curl_slist_append(headers, "X-customheader-2: Header 2 data"); in test()
78 if(!headers2) { in test()
81 headers = headers2; in test()
82 headers2 = curl_slist_append(headers, "Content-Type: text/plain"); in test()
83 if(!headers2) { in test()
86 headers = headers2; in test()
/external/okhttp/okhttp-apache/src/test/java/com/squareup/okhttp/apache/
DOkApacheClientTest.java86 Header[] headers2 = response2.getHeaders("Foo"); in headers() local
87 assertEquals(2, headers2.length); in headers()
88 assertEquals("Bar", headers2[0].getValue()); in headers()
89 assertEquals("Baz", headers2[1].getValue()); in headers()
166 Header[] headers2 = response2.getHeaders("Content-Type"); in contentType() local
167 assertEquals(1, headers2.length); in contentType()
168 assertEquals("application/json", headers2[0].getValue()); in contentType()
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DDelayedClientTransportTest.java96 private final Metadata headers2 = new Metadata(); field in DelayedClientTransportTest
113 when(mockRealTransport2.newStream(same(method2), same(headers2), same(callOptions2))) in setUp()
310 method2, headers2, failFastCallOptions); in reprocessSemantics()
311 PickSubchannelArgsImpl ff2args = new PickSubchannelArgsImpl(method2, headers2, in reprocessSemantics()
318 method2, headers2, failFastCallOptions); in reprocessSemantics()
319 PickSubchannelArgsImpl ff4args = new PickSubchannelArgsImpl(method2, headers2, in reprocessSemantics()
329 method2, headers2, waitForReadyCallOptions); in reprocessSemantics()
330 PickSubchannelArgsImpl wfr2args = new PickSubchannelArgsImpl(method2, headers2, in reprocessSemantics()
339 method2, headers2, waitForReadyCallOptions); in reprocessSemantics()
340 PickSubchannelArgsImpl wfr4args = new PickSubchannelArgsImpl(method2, headers2, in reprocessSemantics()
[all …]
DManagedChannelImplTest.java434 Metadata headers2 = new Metadata(); in subtestCallsAndShutdown() local
448 when(mockTransport.newStream(same(method), same(headers2), same(CallOptions.DEFAULT))) in subtestCallsAndShutdown()
455 new PickSubchannelArgsImpl(method, headers2, CallOptions.DEFAULT))).thenReturn( in subtestCallsAndShutdown()
470 call2.start(mockCallListener2, headers2); in subtestCallsAndShutdown()
471 verify(mockTransport).newStream(same(method), same(headers2), same(CallOptions.DEFAULT)); in subtestCallsAndShutdown()
472 verify(mockTransport).newStream(same(method), same(headers2), same(CallOptions.DEFAULT)); in subtestCallsAndShutdown()
492 call3.start(mockCallListener3, headers2); in subtestCallsAndShutdown()
/external/grpc-grpc-java/grpclb/src/test/java/io/grpc/grpclb/
DGrpclbLoadBalancerTest.java318 Metadata headers2 = new Metadata(); in roundRobinPickerNoDrop() local
319 when(args2.getHeaders()).thenReturn(headers2); in roundRobinPickerNoDrop()
322 assertThat(headers2.getAll(GrpclbConstants.TOKEN_METADATA_KEY)).containsExactly("LBTOKEN0002"); in roundRobinPickerNoDrop()
360 Metadata headers2 = new Metadata(); in roundRobinPickerWithDrop() local
361 when(args2.getHeaders()).thenReturn(headers2); in roundRobinPickerWithDrop()