Lines Matching refs:tls
1868 std::vector<std::unique_ptr<test::DnsTlsFrontend>>* tls) { in setupTlsServers() argument
1876 tls->push_back(std::move(t)); in setupTlsServers()
1883 std::vector<std::unique_ptr<test::DnsTlsFrontend>> tls; in TEST_F() local
1892 ASSERT_NO_FATAL_FAILURE(setupTlsServers(servers, &tls)); in TEST_F()
1907 LOG(INFO) << "Waiting for private DNS validation on " << tls[i]->listen_address() << "."; in TEST_F()
1908 EXPECT_TRUE(WaitForPrivateDnsValidation(tls[i]->listen_address(), true)); in TEST_F()
1909 LOG(INFO) << "private DNS validation on " << tls[i]->listen_address() << " done."; in TEST_F()
2110 test::DnsTlsFrontend tls(kDefaultServer, listen_tls, kDefaultServer, listen_udp); in TEST_F() local
2111 ASSERT_TRUE(tls.startServer()); in TEST_F()
2113 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
2120 EXPECT_TRUE(tls.waitForQueries(2)); in TEST_F()
2124 tls.stopServer(); in TEST_F()
2214 test::DnsTlsFrontend tls(kDefaultServer, listen_tls, kDefaultServer, listen_udp); in TEST_F() local
2215 ASSERT_TRUE(tls.startServer()); in TEST_F()
2223 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), false)); in TEST_F()
2244 test::DnsTlsFrontend tls(kDefaultServer, listen_tls, kDefaultServer, listen_udp); in TEST_F() local
2245 ASSERT_TRUE(tls.startServer()); in TEST_F()
2248 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
2260 EXPECT_TRUE(tls.waitForQueries(3)); in TEST_F()
2285 test::DnsTlsFrontend tls(cleartext_addr, tls_port, cleartext_addr, cleartext_port); in TEST_F() local
2286 ASSERT_TRUE(tls.startServer()); in TEST_F()
2330 if (!tls.running()) { in TEST_F()
2331 ASSERT_TRUE(tls.startServer()); in TEST_F()
2334 if (tls.running()) { in TEST_F()
2335 ASSERT_TRUE(tls.stopServer()); in TEST_F()
2348 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), config.withWorkingTLS)); in TEST_F()
2350 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
2351 tls.clearQueries(); in TEST_F()
2392 EXPECT_EQ(0, tls.queries()); in TEST_F()
3055 test::DnsTlsFrontend tls(kDefaultServer, "853", kDefaultServer, "53"); in TEST_F() local
3144 if (tls.running()) { in TEST_F()
3145 ASSERT_TRUE(tls.stopServer()); in TEST_F()
3149 if (tls.running()) { in TEST_F()
3150 ASSERT_TRUE(tls.stopServer()); in TEST_F()
3153 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), false)); in TEST_F()
3155 if (!tls.running()) { in TEST_F()
3156 ASSERT_TRUE(tls.startServer()); in TEST_F()
3159 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
3163 ASSERT_TRUE(tls.stopServer()); in TEST_F()
3166 if (!tls.running()) { in TEST_F()
3167 ASSERT_TRUE(tls.startServer()); in TEST_F()
3173 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
3213 tls.clearQueries(); in TEST_F()
3235 test::DnsTlsFrontend tls(kDefaultServer, TLS_PORT, kDefaultServer, CLEARTEXT_PORT); in TEST_F() local
3236 ASSERT_TRUE(tls.startServer()); in TEST_F()
3238 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
3241 tls.stopServer(); in TEST_F()
3264 test::DnsTlsFrontend tls(kDefaultServer, TLS_PORT, kDefaultServer, CLEARTEXT_PORT); in TEST_F() local
3265 ASSERT_TRUE(tls.startServer()); in TEST_F()
3267 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
3270 tls.stopServer(); in TEST_F()
4117 test::DnsTlsFrontend tls(listen_addr, "853", listen_addr, "53"); in TEST_F() local
4118 ASSERT_TRUE(tls.startServer()); in TEST_F()
4127 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
4128 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
4129 tls.clearQueries(); in TEST_F()
4136 EXPECT_EQ(0, tls.queries()) << dns.dumpQueries(); in TEST_F()
4662 test::DnsTlsFrontend tls(addr, "853", addr, "53"); in TEST_F() local
4663 ASSERT_TRUE(tls.startServer()); in TEST_F()
4684 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
4685 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
4686 tls.clearQueries(); in TEST_F()
4690 tls.setHangOnHandshakeForTesting(true); in TEST_F()
4700 EXPECT_EQ(0, tls.queries()); in TEST_F()
4711 tls.setHangOnHandshakeForTesting(false); in TEST_F()
4715 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
4787 test::DnsTlsFrontend tls(addr, "853", addr, "53"); in TEST_F() local
4788 ASSERT_TRUE(tls.startServer()); in TEST_F()
4795 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
4796 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
4799 tls.setHangOnHandshakeForTesting(true); in TEST_F()
4821 tls.setHangOnHandshakeForTesting(false); in TEST_F()
4869 test::DnsTlsFrontend tls(addr, "853", addr, "53"); in TEST_F() local
4870 ASSERT_TRUE(tls.startServer()); in TEST_F()
4885 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
4886 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
4887 tls.clearQueries(); in TEST_F()
4891 tls.setDelayQueries(999); in TEST_F()
4892 tls.setDelayQueriesTimeout(DOT_SERVER_UNRESPONSIVE_TIME_MS); in TEST_F()
4905 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
5059 test::DnsTlsFrontend tls(addr, "853", addr, "53"); in TEST_F() local
5060 ASSERT_TRUE(tls.startServer()); in TEST_F()
5067 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
5069 EXPECT_TRUE(tls.waitForQueries(2)); in TEST_F()
5071 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
5073 tls.clearQueries(); in TEST_F()
5091 tls.setDelayQueries(queries + 1); in TEST_F()
5092 tls.setDelayQueriesTimeout(delayQueriesTimeout); in TEST_F()
5110 tls.setDelayQueries(1); in TEST_F()
5116 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
5141 EXPECT_TRUE(tls.waitForQueries(expectedDotQueries)); in TEST_F()
5144 EXPECT_EQ(tls.queries(), expectedDotQueries); in TEST_F()
5178 test::DnsTlsFrontend tls(addr, "853", backend_addr, "53"); in TEST_F() local
5181 ASSERT_TRUE(tls.startServer()); in TEST_F()
5208 WaitForPrivateDnsValidation(tls.listen_address(), config.expectedValidationPass)); in TEST_F()
5215 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
5793 auto& tls = (config.tlsServer == addr1) ? tls1 : tls2; in TEST_F() local
5795 if (serverState == UNSUPPORTED && tls.running()) ASSERT_TRUE(tls.stopServer()); in TEST_F()
5796 if (serverState != UNSUPPORTED && !tls.running()) ASSERT_TRUE(tls.startServer()); in TEST_F()
5798 tls.setHangOnHandshakeForTesting(serverState == UNRESPONSIVE); in TEST_F()
5799 const int connectCountsBefore = tls.acceptConnectionsCount(); in TEST_F()
5818 EXPECT_EQ(tls.acceptConnectionsCount(), connectCountsBefore); in TEST_F()
5833 const int connectCountsAfter = tls.acceptConnectionsCount(); in TEST_F()
6386 test::DnsTlsFrontend tls(addr, "853", addr, "53"); in TEST_F() local
6387 ASSERT_TRUE(tls.startServer()); in TEST_F()
6396 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
6397 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
6398 tls.clearQueries(); in TEST_F()
6420 tls.setDelayQueries(2); in TEST_F()
6421 tls.setDelayQueriesTimeout(500); in TEST_F()
6422 tls.setPassiveClose(true); in TEST_F()
6433 EXPECT_TRUE(tls.waitForQueries(2)); in TEST_F()