Home
last modified time | relevance | path

Searched refs:connection2 (Results 1 – 11 of 11) sorted by relevance

/external/openscreen/platform/impl/
Dtls_data_router_posix_unittest.cc111 MockConnection connection2(2, task_runner()); in TEST_F() local
114 network_manager()->RegisterConnection(&connection2); in TEST_F()
119 EXPECT_CALL(connection2, SendAvailableBytes()).Times(0); in TEST_F()
120 EXPECT_CALL(connection2, TryReceiveMessage()).Times(0); in TEST_F()
128 EXPECT_CALL(connection2, SendAvailableBytes()).Times(1); in TEST_F()
129 EXPECT_CALL(connection2, TryReceiveMessage()).Times(0); in TEST_F()
132 network_manager()->ProcessReadyHandle(connection2.socket_handle(), in TEST_F()
138 MockConnection connection2(2, task_runner()); in TEST_F() local
140 network_manager()->RegisterConnection(&connection2); in TEST_F()
147 EXPECT_CALL(connection2, SendAvailableBytes()).Times(0); in TEST_F()
[all …]
/external/openscreen/osp/impl/quic/
Dquic_client_unittest.cc157 std::unique_ptr<ProtocolConnection> connection2; in TEST_F() local
158 ConnectionCallback connection_callback2(&connection2); in TEST_F()
165 ASSERT_TRUE(connection2); in TEST_F()
176 std::unique_ptr<ProtocolConnection> connection2; in TEST_F() local
178 connection2 = client_->CreateProtocolConnection(1); in TEST_F()
179 EXPECT_FALSE(connection2); in TEST_F()
186 connection2 = client_->CreateProtocolConnection(1); in TEST_F()
187 EXPECT_FALSE(connection2); in TEST_F()
192 connection2 = client_->CreateProtocolConnection(connection1->endpoint_id()); in TEST_F()
193 ASSERT_TRUE(connection2); in TEST_F()
[all …]
Dquic_server_unittest.cc148 std::unique_ptr<ProtocolConnection> connection2 = in TEST_F() local
151 SendTestMessage(connection2.get()); in TEST_F()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DOkUrlFactoryTest.java92 HttpURLConnection connection2 = factory.open(server.getUrl("/")); in conditionalCacheHitResponseSourceHeaders() local
93 assertResponseHeader(connection2, "CONDITIONAL_CACHE 304"); in conditionalCacheHitResponseSourceHeaders()
94 assertResponseBody(connection2, "Isla Nublar"); in conditionalCacheHitResponseSourceHeaders()
108 HttpURLConnection connection2 = factory.open(server.getUrl("/")); in conditionalCacheMissResponseSourceHeaders() local
109 assertResponseHeader(connection2, "CONDITIONAL_CACHE 200"); in conditionalCacheMissResponseSourceHeaders()
110 assertResponseBody(connection2, "Isla Sorna"); in conditionalCacheMissResponseSourceHeaders()
122 HttpURLConnection connection2 = factory.open(server.getUrl("/")); in cacheResponseSourceHeaders() local
123 assertResponseHeader(connection2, "CACHE 200"); in cacheResponseSourceHeaders()
124 assertResponseBody(connection2, "Isla Nublar"); in cacheResponseSourceHeaders()
134 HttpURLConnection connection2 = factory.open(server.getUrl("/")); in noneResponseSourceHeaders() local
[all …]
DUrlConnectionCacheTest.java345 HttpsURLConnection connection2 = (HttpsURLConnection) client.open(server.getUrl("/")); in secureResponseCachingAndRedirects() local
346 assertEquals("ABC", readAscii(connection2)); in secureResponseCachingAndRedirects()
347 assertNotNull(connection2.getCipherSuite()); in secureResponseCachingAndRedirects()
351 assertEquals(connection1.getCipherSuite(), connection2.getCipherSuite()); in secureResponseCachingAndRedirects()
381 HttpURLConnection connection2 = client.open(server.getUrl("/")); in secureResponseCachingAndProtocolRedirects() local
382 assertEquals("ABC", readAscii(connection2)); in secureResponseCachingAndProtocolRedirects()
1252 URLConnection connection2 = client.open(url); in varyMatchesUnchangedRequestHeaderField() local
1253 connection2.addRequestProperty("Accept-Language", "fr-CA"); in varyMatchesUnchangedRequestHeaderField()
1254 assertEquals("A", readAscii(connection2)); in varyMatchesUnchangedRequestHeaderField()
1301 URLConnection connection2 = client.open(url); in varyFieldsAreCaseInsensitive() local
[all …]
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java358 HttpsURLConnection connection2 = (HttpsURLConnection) openConnection(server.getUrl("/")); in secureResponseCachingAndRedirects() local
359 assertEquals("ABC", readAscii(connection2)); in secureResponseCachingAndRedirects()
360 assertNotNull(connection2.getCipherSuite()); in secureResponseCachingAndRedirects()
362 assertEquals(connection1.getCipherSuite(), connection2.getCipherSuite()); in secureResponseCachingAndRedirects()
395 HttpURLConnection connection2 = openConnection(server.getUrl("/")); in secureResponseCachingAndProtocolRedirects() local
396 assertEquals("ABC", readAscii(connection2)); in secureResponseCachingAndProtocolRedirects()
906 HttpURLConnection connection2 = openConnection(server.getUrl("/")); in clientSideNoStore() local
907 assertEquals("B", readAscii(connection2)); in clientSideNoStore()
1316 HttpURLConnection connection2 = openConnection(server.getUrl("/")); in varyMatchesAddedRequestHeaderField() local
1317 connection2.setRequestProperty("Foo", "bar"); in varyMatchesAddedRequestHeaderField()
[all …]
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java187 HttpURLConnection connection2 = client.open(server.getUrl("/r2")); in spdyConnectionReuse() local
189 assertEquals("GHI", readAscii(connection2.getInputStream(), 3)); in spdyConnectionReuse()
191 assertEquals("JKL", readAscii(connection2.getInputStream(), 3)); in spdyConnectionReuse()
317 HttpURLConnection connection2 = client.open(server.getUrl("/")); in spdyConnectionTimeout() local
318 connection2.setReadTimeout(200); in spdyConnectionTimeout()
320 connection2.connect(); in spdyConnectionTimeout()
367 HttpURLConnection connection2 = client.open(server.getUrl("/")); in responseCachedWithoutConsumingFullBody() local
368 InputStream in2 = connection2.getInputStream(); in responseCachedWithoutConsumingFullBody()
410 HttpURLConnection connection2 = client.open(server.getUrl("/")); in disconnectWithStreamNotEstablished() local
411 assertContent("abc", connection2, 3); in disconnectWithStreamNotEstablished()
DHttpOverHttp2Test.java102 HttpURLConnection connection2 = client.open(server.getUrl("/")); in settingsLimitsMaxConcurrentStreams() local
103 connection2.connect(); in settingsLimitsMaxConcurrentStreams()
107 assertContent("DEF", connection2, Integer.MAX_VALUE); in settingsLimitsMaxConcurrentStreams()
/external/webrtc/p2p/base/
Dturn_server_unittest.cc56 TurnServerConnection connection2(socket2->GetLocalAddress(), PROTO_UDP, in TEST_F() local
62 ExpectEqual(connection1, connection2); in TEST_F()
/external/libchrome/base/android/junit/src/org/chromium/base/process_launcher/
DChildProcessConnectionTest.java366 ChildProcessConnection connection2 = createDefaultTestConnection(); in testBindingStateCounts() local
381 connection2.start(false /* useStrongBinding */, null /* serviceCallback */); in testBindingStateCounts()
397 connection2.removeModerateBinding(); in testBindingStateCounts()
400 connection2.addModerateBinding(); in testBindingStateCounts()
419 connection2.removeModerateBinding(); in testBindingStateCounts()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DURLConnectionTest.java427 HttpURLConnection connection2 = client.open(server.getUrl("/b")); in testServerClosesOutput() local
428 connection2.setReadTimeout(100); in testServerClosesOutput()
429 assertContent("This comes after a busted connection", connection2); in testServerClosesOutput()
594 HttpURLConnection connection2 = client.open(server.getUrl("/")); in connectViaHttpsReusingConnectionsDifferentFactories() local
596 readAscii(connection2.getInputStream(), Integer.MAX_VALUE); in connectViaHttpsReusingConnectionsDifferentFactories()
1270 HttpURLConnection connection2 = client.open(server.getUrl("/")); in testClientConfiguredGzipContentEncodingAndConnectionReuse() local
1271 assertEquals("two (identity)", readAscii(connection2.getInputStream(), Integer.MAX_VALUE)); in testClientConfiguredGzipContentEncodingAndConnectionReuse()
1334 HttpURLConnection connection2 = client.open(server.getUrl("/")); in testEarlyDisconnectDoesntHarmPooling() local
1335 InputStream in2 = connection2.getInputStream(); in testEarlyDisconnectDoesntHarmPooling()
1338 connection2.disconnect(); in testEarlyDisconnectDoesntHarmPooling()
[all …]