Remove winhttp (#3832)

* remove refs to winhttp

* this tsst only curl
This commit is contained in:
George Arama 2022-07-15 13:47:01 -07:00 committed by GitHub
parent 593437b8f2
commit 7bf67350a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View File

@ -204,7 +204,10 @@ if(BUILD_TESTING)
add_subdirectory(test/nlohmann-json-test)
endif()
add_subdirectory(test/fault-injector)
add_subdirectory(test/libcurl-stress-test)
if(BUILD_TRANSPORT_CURL)
add_subdirectory(test/libcurl-stress-test)
endif()
endif()
if (BUILD_PERFORMANCE_TESTS)

View File

@ -27,16 +27,12 @@ void SendRequest(std::string target)
{
std::cout << target << std::endl;
/* The transport adapter must allow insecure SSL certs.
If both curl and winHttp are available, curl is preferred for this test.for*/
#if defined(BUILD_CURL_HTTP_TRANSPORT_ADAPTER)
If both curl and winHttp are available, curl is preferred for this test*/
Azure::Core::Http::CurlTransportOptions curlOptions;
curlOptions.SslVerifyPeer = false;
auto implementationClient = std::make_shared<Azure::Core::Http::CurlTransport>(curlOptions);
#elif (BUILD_TRANSPORT_WINHTTP_ADAPTER)
Azure::Core::Http::WinHttpTransportOptions winHttpOptions;
auto implementationClient = std::make_shared<Azure::Core::Http::WinHttpTransport>(winHttpOptions);
#endif
try
{