diff --git a/test/common/http/BUILD b/test/common/http/BUILD index b317052c44146..93bce755cf65b 100644 --- a/test/common/http/BUILD +++ b/test/common/http/BUILD @@ -31,7 +31,7 @@ envoy_cc_test( "//test/mocks/router:router_mocks", "//test/mocks/runtime:runtime_mocks", "//test/mocks/stats:stats_mocks", - "//test/mocks/upstream:upstream_mocks", + "//test/mocks/upstream:cluster_manager_mocks", "//test/test_common:test_time_lib", "@envoy_api//envoy/config/core/v3:pkg_cc_proto", "@envoy_api//envoy/config/route/v3:pkg_cc_proto", @@ -57,6 +57,7 @@ envoy_cc_test( "//source/common/http:codec_client_lib", "//source/common/http:exception_lib", "//source/common/network:utility_lib", + "//source/common/stream_info:stream_info_lib", "//source/common/upstream:upstream_includes", "//source/common/upstream:upstream_lib", "//test/common/upstream:utility_lib", @@ -65,7 +66,7 @@ envoy_cc_test( "//test/mocks/http:http_mocks", "//test/mocks/network:network_mocks", "//test/mocks/ssl:ssl_mocks", - "//test/mocks/upstream:upstream_mocks", + "//test/mocks/upstream:cluster_info_mocks", "//test/test_common:environment_lib", "//test/test_common:network_utility_lib", "//test/test_common:utility_lib", @@ -168,6 +169,7 @@ envoy_cc_fuzz_test( "//source/common/http:conn_manager_lib", "//source/common/http:context_lib", "//source/common/http:date_provider_lib", + "//source/common/http:header_utility_lib", "//source/common/http:request_id_extension_lib", "//source/common/network:address_lib", "//source/common/network:utility_lib", @@ -183,7 +185,7 @@ envoy_cc_fuzz_test( "//test/mocks/server:server_mocks", "//test/mocks/ssl:ssl_mocks", "//test/mocks/tracing:tracing_mocks", - "//test/mocks/upstream:upstream_mocks", + "//test/mocks/upstream:cluster_manager_mocks", "//test/test_common:simulated_time_system_lib", "@envoy_api//envoy/extensions/filters/network/http_connection_manager/v3:pkg_cc_proto", ], @@ -229,7 +231,9 @@ envoy_cc_test( "//test/mocks/server:overload_manager_mocks", "//test/mocks/ssl:ssl_mocks", "//test/mocks/tracing:tracing_mocks", - "//test/mocks/upstream:upstream_mocks", + "//test/mocks/upstream:cluster_manager_mocks", + "//test/mocks/upstream:host_mocks", + "//test/mocks/upstream:thread_local_cluster_mocks", "//test/test_common:logging_lib", "//test/test_common:test_runtime_lib", "//test/test_common:test_time_lib", diff --git a/test/common/http/async_client_impl_test.cc b/test/common/http/async_client_impl_test.cc index 80cc5af92695d..5e35a2590d9a5 100644 --- a/test/common/http/async_client_impl_test.cc +++ b/test/common/http/async_client_impl_test.cc @@ -20,7 +20,7 @@ #include "test/mocks/router/mocks.h" #include "test/mocks/runtime/mocks.h" #include "test/mocks/stats/mocks.h" -#include "test/mocks/upstream/mocks.h" +#include "test/mocks/upstream/cluster_manager.h" #include "test/test_common/printers.h" #include "gmock/gmock.h" diff --git a/test/common/http/codec_client_test.cc b/test/common/http/codec_client_test.cc index 0fa919d178332..cdd74b8b26bf8 100644 --- a/test/common/http/codec_client_test.cc +++ b/test/common/http/codec_client_test.cc @@ -6,6 +6,7 @@ #include "common/http/exception.h" #include "common/network/listen_socket_impl.h" #include "common/network/utility.h" +#include "common/stream_info/stream_info_impl.h" #include "common/upstream/upstream_impl.h" #include "test/common/http/common.h" @@ -15,7 +16,7 @@ #include "test/mocks/http/mocks.h" #include "test/mocks/network/mocks.h" #include "test/mocks/ssl/mocks.h" -#include "test/mocks/upstream/mocks.h" +#include "test/mocks/upstream/cluster_info.h" #include "test/test_common/environment.h" #include "test/test_common/network_utility.h" #include "test/test_common/printers.h" diff --git a/test/common/http/conn_manager_impl_fuzz_test.cc b/test/common/http/conn_manager_impl_fuzz_test.cc index 99f8b18dc779d..cec49e63871c8 100644 --- a/test/common/http/conn_manager_impl_fuzz_test.cc +++ b/test/common/http/conn_manager_impl_fuzz_test.cc @@ -19,6 +19,7 @@ #include "common/http/context_impl.h" #include "common/http/date_provider_impl.h" #include "common/http/exception.h" +#include "common/http/header_utility.h" #include "common/http/request_id_extension_impl.h" #include "common/network/address_impl.h" #include "common/network/utility.h" @@ -37,7 +38,7 @@ #include "test/mocks/server/mocks.h" #include "test/mocks/ssl/mocks.h" #include "test/mocks/tracing/mocks.h" -#include "test/mocks/upstream/mocks.h" +#include "test/mocks/upstream/cluster_manager.h" #include "test/test_common/simulated_time_system.h" #include "gmock/gmock.h" diff --git a/test/common/http/conn_manager_impl_test.cc b/test/common/http/conn_manager_impl_test.cc index af6780154c2c7..5de69ed60548e 100644 --- a/test/common/http/conn_manager_impl_test.cc +++ b/test/common/http/conn_manager_impl_test.cc @@ -44,8 +44,9 @@ #include "test/mocks/server/overload_manager.h" #include "test/mocks/ssl/mocks.h" #include "test/mocks/tracing/mocks.h" -#include "test/mocks/upstream/cluster_info.h" -#include "test/mocks/upstream/mocks.h" +#include "test/mocks/upstream/cluster_manager.h" +#include "test/mocks/upstream/host.h" +#include "test/mocks/upstream/thread_local_cluster.h" #include "test/test_common/logging.h" #include "test/test_common/printers.h" #include "test/test_common/test_runtime.h" diff --git a/test/common/http/http1/BUILD b/test/common/http/http1/BUILD index dbcdcd4d4c8b1..b63855d4d0f46 100644 --- a/test/common/http/http1/BUILD +++ b/test/common/http/http1/BUILD @@ -60,7 +60,8 @@ envoy_cc_test( "//test/mocks/http:http_mocks", "//test/mocks/network:network_mocks", "//test/mocks/runtime:runtime_mocks", - "//test/mocks/upstream:upstream_mocks", + "//test/mocks/upstream:cluster_info_mocks", + "//test/mocks/upstream:transport_socket_match_mocks", "//test/test_common:simulated_time_system_lib", "//test/test_common:test_runtime_lib", "//test/test_common:utility_lib", diff --git a/test/common/http/http1/conn_pool_test.cc b/test/common/http/http1/conn_pool_test.cc index 64b459c7ef226..cd7a933b86d15 100644 --- a/test/common/http/http1/conn_pool_test.cc +++ b/test/common/http/http1/conn_pool_test.cc @@ -20,7 +20,7 @@ #include "test/mocks/http/mocks.h" #include "test/mocks/network/mocks.h" #include "test/mocks/runtime/mocks.h" -#include "test/mocks/upstream/mocks.h" +#include "test/mocks/upstream/cluster_info.h" #include "test/mocks/upstream/transport_socket_match.h" #include "test/test_common/printers.h" #include "test/test_common/simulated_time_system.h" diff --git a/test/common/http/http2/BUILD b/test/common/http/http2/BUILD index 6c9e4f8c7f2ee..b84d91d8c5d47 100644 --- a/test/common/http/http2/BUILD +++ b/test/common/http/http2/BUILD @@ -84,7 +84,8 @@ envoy_cc_test( "//test/mocks/http:http_mocks", "//test/mocks/network:network_mocks", "//test/mocks/runtime:runtime_mocks", - "//test/mocks/upstream:upstream_mocks", + "//test/mocks/upstream:cluster_info_mocks", + "//test/mocks/upstream:transport_socket_match_mocks", "//test/test_common:test_runtime_lib", ], ) diff --git a/test/common/http/http2/conn_pool_test.cc b/test/common/http/http2/conn_pool_test.cc index d0f0ed1c50617..8278f6e1ab845 100644 --- a/test/common/http/http2/conn_pool_test.cc +++ b/test/common/http/http2/conn_pool_test.cc @@ -14,7 +14,8 @@ #include "test/mocks/http/mocks.h" #include "test/mocks/network/mocks.h" #include "test/mocks/runtime/mocks.h" -#include "test/mocks/upstream/mocks.h" +#include "test/mocks/upstream/cluster_info.h" +#include "test/mocks/upstream/transport_socket_match.h" #include "test/test_common/printers.h" #include "test/test_common/test_runtime.h"