diff --git a/test_common/src/http/client/nosend/http_client_factory_nosend.cc b/test_common/src/http/client/nosend/http_client_factory_nosend.cc index d30e2b0d7b..c70d1b9578 100644 --- a/test_common/src/http/client/nosend/http_client_factory_nosend.cc +++ b/test_common/src/http/client/nosend/http_client_factory_nosend.cc @@ -1,9 +1,10 @@ // Copyright The OpenTelemetry Authors // SPDX-License-Identifier: Apache-2.0 -#include "opentelemetry/ext/http/client/http_client.h" -#include "opentelemetry/ext/http/client/http_client_factory.h" -#include "opentelemetry/test_common/ext/http/client/nosend/http_client_nosend.h" +#ifdef ENABLE_TEST +# include "opentelemetry/ext/http/client/http_client.h" +# include "opentelemetry/ext/http/client/http_client_factory.h" +# include "opentelemetry/test_common/ext/http/client/nosend/http_client_nosend.h" namespace http_client = opentelemetry::ext::http::client; @@ -11,3 +12,4 @@ std::shared_ptr http_client::HttpClientFactory::CreateN { return std::make_shared(); } +#endif