Skip to content

Commit 7bf6735

Browse files
authored
Remove winhttp (#3832)
* remove refs to winhttp * this tsst only curl
1 parent 593437b commit 7bf6735

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

sdk/core/azure-core/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,10 @@ if(BUILD_TESTING)
204204
add_subdirectory(test/nlohmann-json-test)
205205
endif()
206206
add_subdirectory(test/fault-injector)
207-
add_subdirectory(test/libcurl-stress-test)
207+
208+
if(BUILD_TRANSPORT_CURL)
209+
add_subdirectory(test/libcurl-stress-test)
210+
endif()
208211
endif()
209212

210213
if (BUILD_PERFORMANCE_TESTS)

sdk/core/azure-core/test/libcurl-stress-test/libcurl_stress_test.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,12 @@ void SendRequest(std::string target)
2727
{
2828
std::cout << target << std::endl;
2929
/* The transport adapter must allow insecure SSL certs.
30-
If both curl and winHttp are available, curl is preferred for this test.for*/
31-
#if defined(BUILD_CURL_HTTP_TRANSPORT_ADAPTER)
30+
If both curl and winHttp are available, curl is preferred for this test*/
31+
3232
Azure::Core::Http::CurlTransportOptions curlOptions;
3333
curlOptions.SslVerifyPeer = false;
3434
auto implementationClient = std::make_shared<Azure::Core::Http::CurlTransport>(curlOptions);
3535

36-
#elif (BUILD_TRANSPORT_WINHTTP_ADAPTER)
37-
Azure::Core::Http::WinHttpTransportOptions winHttpOptions;
38-
auto implementationClient = std::make_shared<Azure::Core::Http::WinHttpTransport>(winHttpOptions);
39-
#endif
4036
try
4137
{
4238

0 commit comments

Comments
 (0)