Lines Matching refs:tls
1471 std::vector<std::unique_ptr<test::DnsTlsFrontend>>* tls) { in setupTlsServers() argument
1479 tls->push_back(std::move(t)); in setupTlsServers()
1486 std::vector<std::unique_ptr<test::DnsTlsFrontend>> tls; in TEST_F() local
1495 ASSERT_NO_FATAL_FAILURE(setupTlsServers(servers, &tls)); in TEST_F()
1505 LOG(INFO) << "Waiting for private DNS validation on " << tls[i]->listen_address() << "."; in TEST_F()
1506 EXPECT_TRUE(WaitForPrivateDnsValidation(tls[i]->listen_address(), true)); in TEST_F()
1507 LOG(INFO) << "private DNS validation on " << tls[i]->listen_address() << " done."; in TEST_F()
1725 test::DnsTlsFrontend tls(listen_addr, listen_tls, listen_addr, listen_udp); in TEST_F() local
1726 ASSERT_TRUE(tls.startServer()); in TEST_F()
1728 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
1735 EXPECT_TRUE(tls.waitForQueries(2)); in TEST_F()
1739 tls.stopServer(); in TEST_F()
1827 test::DnsTlsFrontend tls(listen_addr, listen_tls, listen_addr, listen_udp); in TEST_F() local
1828 ASSERT_TRUE(tls.startServer()); in TEST_F()
1834 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), false)); in TEST_F()
1857 test::DnsTlsFrontend tls(listen_addr, listen_tls, listen_addr, listen_udp); in TEST_F() local
1858 ASSERT_TRUE(tls.startServer()); in TEST_F()
1861 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
1873 EXPECT_TRUE(tls.waitForQueries(3)); in TEST_F()
1901 test::DnsTlsFrontend tls(cleartext_addr, tls_port, cleartext_addr, cleartext_port); in TEST_F() local
1902 ASSERT_TRUE(tls.startServer()); in TEST_F()
1946 if (!tls.running()) { in TEST_F()
1947 ASSERT_TRUE(tls.startServer()); in TEST_F()
1950 if (tls.running()) { in TEST_F()
1951 ASSERT_TRUE(tls.stopServer()); in TEST_F()
1965 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), config.withWorkingTLS)); in TEST_F()
1967 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
1968 tls.clearQueries(); in TEST_F()
2009 EXPECT_EQ(0, tls.queries()); in TEST_F()
2691 test::DnsTlsFrontend tls(CLEARTEXT_ADDR, TLS_PORT, CLEARTEXT_ADDR, CLEARTEXT_PORT); in TEST_F() local
2774 if (tls.running()) { in TEST_F()
2775 ASSERT_TRUE(tls.stopServer()); in TEST_F()
2779 if (tls.running()) { in TEST_F()
2780 ASSERT_TRUE(tls.stopServer()); in TEST_F()
2784 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), false)); in TEST_F()
2786 if (!tls.running()) { in TEST_F()
2787 ASSERT_TRUE(tls.startServer()); in TEST_F()
2791 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
2795 ASSERT_TRUE(tls.stopServer()); in TEST_F()
2798 if (!tls.running()) { in TEST_F()
2799 ASSERT_TRUE(tls.startServer()); in TEST_F()
2803 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
2843 tls.clearQueries(); in TEST_F()
2866 test::DnsTlsFrontend tls(CLEARTEXT_ADDR, TLS_PORT, CLEARTEXT_ADDR, CLEARTEXT_PORT); in TEST_F() local
2867 ASSERT_TRUE(tls.startServer()); in TEST_F()
2869 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
2872 tls.stopServer(); in TEST_F()
2897 test::DnsTlsFrontend tls(CLEARTEXT_ADDR, TLS_PORT, CLEARTEXT_ADDR, CLEARTEXT_PORT); in TEST_F() local
2898 ASSERT_TRUE(tls.startServer()); in TEST_F()
2900 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
2903 tls.stopServer(); in TEST_F()
3771 test::DnsTlsFrontend tls(listen_addr, tls_port, listen_addr, cleartext_port); in TEST_F() local
3772 ASSERT_TRUE(tls.startServer()); in TEST_F()
3776 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
3777 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
3778 tls.clearQueries(); in TEST_F()
3785 EXPECT_EQ(0, tls.queries()) << dns.dumpQueries(); in TEST_F()
3796 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
3797 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
3798 tls.clearQueries(); in TEST_F()
3805 EXPECT_EQ(0, tls.queries()) << dns.dumpQueries(); in TEST_F()
4213 test::DnsTlsFrontend tls; in TEST_F() local
4214 ASSERT_TRUE(tls.startServer()); in TEST_F()
4222 EXPECT_TRUE(WaitForPrivateDnsValidation(tls.listen_address(), true)); in TEST_F()
4223 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
4224 tls.clearQueries(); in TEST_F()
4228 tls.setHangOnHandshakeForTesting(true); in TEST_F()
4238 EXPECT_EQ(0, tls.queries()); in TEST_F()
4249 tls.setHangOnHandshakeForTesting(false); in TEST_F()
4253 EXPECT_TRUE(tls.waitForQueries(1)); in TEST_F()
4700 auto& tls = (config.tlsServer == addr1) ? tls1 : tls2; in TEST_F() local
4702 if (serverState == UNSUPPORTED && tls.running()) ASSERT_TRUE(tls.stopServer()); in TEST_F()
4703 if (serverState != UNSUPPORTED && !tls.running()) ASSERT_TRUE(tls.startServer()); in TEST_F()
4705 tls.setHangOnHandshakeForTesting(serverState == UNRESPONSIVE); in TEST_F()
4706 const int connectCountsBefore = tls.acceptConnectionsCount(); in TEST_F()
4725 EXPECT_EQ(tls.acceptConnectionsCount(), connectCountsBefore); in TEST_F()
4741 return tls.acceptConnectionsCount() == connectCountsBefore + expectCountDiff; in TEST_F()