Searched refs:expectedHeaders (Results 1 – 6 of 6) sorted by relevance
/external/volley/src/test/java/com/android/volley/ |
D | NetworkResponseTest.java | 28 List<Header> expectedHeaders = new ArrayList<>(); in mapToList() local 29 expectedHeaders.add(new Header("key1", "value1")); in mapToList() 30 expectedHeaders.add(new Header("key2", "value2")); in mapToList() 32 assertThat(expectedHeaders, containsInAnyOrder(resp.allHeaders.toArray(new Header[0]))); in mapToList() 45 Map<String, String> expectedHeaders = new TreeMap<>(String.CASE_INSENSITIVE_ORDER); in listToMap() local 46 expectedHeaders.put("key1", "value1"); in listToMap() 47 expectedHeaders.put("key2", "value2"); in listToMap() 49 assertEquals(expectedHeaders, resp.headers); in listToMap()
|
/external/volley/src/test/java/com/android/volley/toolbox/ |
D | BasicNetworkTest.java | 115 List<Header> expectedHeaders = new ArrayList<>(); in notModified() local 117 expectedHeaders.add(new Header("ServerKeyA", "ServerValueA")); in notModified() 118 expectedHeaders.add(new Header("ServerKeyB", "ServerValueB")); in notModified() 119 expectedHeaders.add(new Header("SharedKey", "ServerValueShared")); in notModified() 120 expectedHeaders.add(new Header("sharedcaseinsensitivekey", "ServerValueShared1")); in notModified() 121 expectedHeaders.add(new Header("SharedCaseInsensitiveKey", "ServerValueShared2")); in notModified() 122 expectedHeaders.add(new Header("CachedKeyA", "CachedValueA")); in notModified() 123 expectedHeaders.add(new Header("CachedKeyB", "CachedValueB")); in notModified() 124 assertThat(expectedHeaders, containsInAnyOrder(response.allHeaders.toArray(new Header[0]))); in notModified() 149 List<Header> expectedHeaders = new ArrayList<>(); in notModified_legacyCache() local [all …]
|
D | HttpStackConformanceTest.java | 165 Map<String, String> expectedHeaders = new HashMap<>(); in headerPrecedence() local 166 expectedHeaders.put("A", "RequestA"); in headerPrecedence() 167 expectedHeaders.put("B", "AddlB"); in headerPrecedence() 168 expectedHeaders.put("C", "RequestC"); in headerPrecedence() 169 expectedHeaders.put(HttpHeaderParser.HEADER_CONTENT_TYPE, "BodyContentType"); in headerPrecedence() 171 assertEquals(expectedHeaders, combinedHeaders); in headerPrecedence() 177 expectedHeaders.put(HttpHeaderParser.HEADER_CONTENT_TYPE, "RequestContentType"); in headerPrecedence() 180 assertEquals(expectedHeaders, combinedHeaders); in headerPrecedence()
|
D | AdaptedHttpStackTest.java | 121 List<Header> expectedHeaders = new ArrayList<>(); in responseWithHeaders() local 122 expectedHeaders.add(new Header("header1", "value1_B")); in responseWithHeaders() 123 expectedHeaders.add(new Header("header3", "value3")); in responseWithHeaders() 124 expectedHeaders.add(new Header("HEADER2", "value2")); in responseWithHeaders() 125 expectedHeaders.add(new Header("header1", "value1_A")); in responseWithHeaders() 126 assertEquals(expectedHeaders, response.getHeaders()); in responseWithHeaders()
|
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/ |
D | NettyServerStreamTest.java | 102 ListMultimap<CharSequence, CharSequence> expectedHeaders = in writeMessageShouldSendResponse() local 115 .containsExactlyEntriesIn(expectedHeaders); in writeMessageShouldSendResponse() 130 ListMultimap<CharSequence, CharSequence> expectedHeaders = in writeHeadersShouldSendHeaders() local 141 .containsExactlyEntriesIn(expectedHeaders); in writeHeadersShouldSendHeaders() 147 ListMultimap<CharSequence, CharSequence> expectedHeaders = in closeBeforeClientHalfCloseShouldSucceed() local 161 .containsExactlyEntriesIn(expectedHeaders); in closeBeforeClientHalfCloseShouldSucceed() 174 ListMultimap<CharSequence, CharSequence> expectedHeaders = in closeWithErrorBeforeClientHalfCloseShouldSucceed() local 189 .containsExactlyEntriesIn(expectedHeaders); in closeWithErrorBeforeClientHalfCloseShouldSucceed() 201 ListMultimap<CharSequence, CharSequence> expectedHeaders = in closeAfterClientHalfCloseShouldSucceed() local 223 .containsExactlyEntriesIn(expectedHeaders); in closeAfterClientHalfCloseShouldSucceed() [all …]
|
/external/grpc-grpc-java/okhttp/src/test/java/io/grpc/okhttp/ |
D | OkHttpClientTransportTest.java | 493 List<Header> expectedHeaders = Arrays.asList(SCHEME_HEADER, METHOD_HEADER, in addDefaultUserAgent() local 498 .synStream(eq(false), eq(false), eq(3), eq(0), eq(expectedHeaders)); in addDefaultUserAgent() 510 List<Header> expectedHeaders = Arrays.asList(SCHEME_HEADER, METHOD_HEADER, in overrideDefaultUserAgent() local 517 .synStream(eq(false), eq(false), eq(3), eq(0), eq(expectedHeaders)); in overrideDefaultUserAgent()
|