fix build of HttpRequestTests when SSL is disabled

We can't test SSL when SSL is disabled.

Signed-off-by: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
Change-Id: I231a3c7d32f848870e90594e2d1151d3a0911f9a
private/pedro/fix-codeql-analysis
Tomaž Vajngerl 2022-04-04 08:49:13 +09:00 committed by pedropintosilva
parent 4f9315fa05
commit 6c69202b18
1 changed files with 2 additions and 0 deletions

View File

@ -170,6 +170,7 @@ constexpr std::chrono::seconds HttpRequestTests::DefTimeoutSeconds;
void HttpRequestTests::testSslHostname()
{
#if ENABLE_SSL
constexpr auto testname = __func__;
if (helpers::haveSsl())
@ -179,6 +180,7 @@ void HttpRequestTests::testSslHostname()
host, _port, false, std::make_shared<ServerRequestHandler>());
LOK_ASSERT_EQUAL(host, socket->getSslServername());
}
#endif
}
void HttpRequestTests::testInvalidURI()