Lines Matching refs:transport

146     DnsTlsTransport transport(SERVER1, MARK, &factory);  in TEST_F()  local
147 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F()
151 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()
180 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
183 std::future<DnsTlsTransport::Result> f = transport.query(makeSlice(QUERY)); in TEST_F()
192 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()
199 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
205 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
212 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()
266 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
271 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
278 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()
285 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
291 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
298 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()
305 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
311 results.push_back(transport.query(makeSlice(queries[i]))); in TEST_F()
318 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()
325 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
333 results.push_back(transport.query(makeSlice(queries[i]))); in TEST_F()
340 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()
350 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
355 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
359 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F()
368 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()
377 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
383 results.push_back(transport.query(makeSlice(queries[i]))); in TEST_F()
390 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()
397 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
403 results.push_back(transport.query(makeSlice(queries[i]))); in TEST_F()
410 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()
428 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
429 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F()
433 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()
454 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
455 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F()
461 EXPECT_EQ(transport.getConnectCounter(), DnsTlsQueryMap::kMaxTries); in TEST_F()
539 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
547 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
556 EXPECT_EQ(transport.getConnectCounter(), DnsTlsQueryMap::kMaxTries); in TEST_F()
563 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
573 results.push_back(transport.query(makeSlice(queries[i]))); in TEST_F()
590 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
593 EXPECT_EQ(transport.getConnectCounter(), 0); in TEST_F()
600 results.push_back(transport.query(makeSlice(QUERY))); in TEST_F()
607 EXPECT_EQ(transport.getConnectCounter(), num_queries / FakeSocketLimited::sLimit); in TEST_F()
644 DnsTlsTransport transport(SERVER1, MARK, &factory); in TEST_F() local
646 auto r = transport.query(makeSlice(QUERY)).get(); in TEST_F()
651 EXPECT_EQ(transport.getConnectCounter(), 1); in TEST_F()