diff --git a/test/common/config/BUILD b/test/common/config/BUILD index 42b59faa4aed..a89c45629e94 100644 --- a/test/common/config/BUILD +++ b/test/common/config/BUILD @@ -430,7 +430,8 @@ envoy_cc_test( "//source/common/protobuf:utility_lib", "//source/extensions/common/crypto:utility_lib", "//test/mocks/event:event_mocks", - "//test/mocks/server:server_mocks", + "//test/mocks/init:init_mocks", + "//test/mocks/runtime:runtime_mocks", "//test/mocks/upstream:upstream_mocks", "//test/test_common:utility_lib", "@envoy_api//envoy/config/core/v3:pkg_cc_proto", diff --git a/test/common/config/datasource_test.cc b/test/common/config/datasource_test.cc index 1897c1a867ce..4b76c39b59f5 100644 --- a/test/common/config/datasource_test.cc +++ b/test/common/config/datasource_test.cc @@ -6,7 +6,8 @@ #include "common/protobuf/protobuf.h" #include "test/mocks/event/mocks.h" -#include "test/mocks/server/mocks.h" +#include "test/mocks/init/mocks.h" +#include "test/mocks/runtime/mocks.h" #include "test/mocks/upstream/mocks.h" #include "test/test_common/utility.h" diff --git a/test/common/network/BUILD b/test/common/network/BUILD index 7bfb1d0cbc0a..e8cf67a6b9d1 100644 --- a/test/common/network/BUILD +++ b/test/common/network/BUILD @@ -88,7 +88,6 @@ envoy_cc_test( "//test/mocks/buffer:buffer_mocks", "//test/mocks/event:event_mocks", "//test/mocks/network:network_mocks", - "//test/mocks/server:server_mocks", "//test/mocks/stats:stats_mocks", "//test/test_common:environment_lib", "//test/test_common:network_utility_lib", @@ -189,10 +188,10 @@ envoy_cc_test( "//source/common/network:listener_lib", "//source/common/network:utility_lib", "//source/common/stats:stats_lib", + "//source/common/stream_info:stream_info_lib", "//test/common/network:listener_impl_test_base_lib", "//test/mocks/network:network_mocks", "//test/mocks/runtime:runtime_mocks", - "//test/mocks/server:server_mocks", "//test/test_common:environment_lib", "//test/test_common:network_utility_lib", "//test/test_common:utility_lib", @@ -213,7 +212,6 @@ envoy_cc_test( "//source/common/stats:stats_lib", "//test/common/network:listener_impl_test_base_lib", "//test/mocks/network:network_mocks", - "//test/mocks/server:server_mocks", "//test/test_common:environment_lib", "//test/test_common:network_utility_lib", "//test/test_common:threadsafe_singleton_injector_lib", diff --git a/test/common/network/connection_impl_test.cc b/test/common/network/connection_impl_test.cc index 61c4bb2e6348..4922309e427b 100644 --- a/test/common/network/connection_impl_test.cc +++ b/test/common/network/connection_impl_test.cc @@ -19,7 +19,6 @@ #include "test/mocks/buffer/mocks.h" #include "test/mocks/event/mocks.h" #include "test/mocks/network/mocks.h" -#include "test/mocks/server/mocks.h" #include "test/mocks/stats/mocks.h" #include "test/test_common/environment.h" #include "test/test_common/network_utility.h" diff --git a/test/common/network/listener_impl_test.cc b/test/common/network/listener_impl_test.cc index 732ccf2460e3..9f6f515dac05 100644 --- a/test/common/network/listener_impl_test.cc +++ b/test/common/network/listener_impl_test.cc @@ -4,10 +4,10 @@ #include "common/network/address_impl.h" #include "common/network/listener_impl.h" #include "common/network/utility.h" +#include "common/stream_info/stream_info_impl.h" #include "test/common/network/listener_impl_test_base.h" #include "test/mocks/network/mocks.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/environment.h" #include "test/test_common/network_utility.h" #include "test/test_common/test_runtime.h" diff --git a/test/common/network/udp_listener_impl_test.cc b/test/common/network/udp_listener_impl_test.cc index 0d139b887e43..f2cff8e49748 100644 --- a/test/common/network/udp_listener_impl_test.cc +++ b/test/common/network/udp_listener_impl_test.cc @@ -14,7 +14,6 @@ #include "test/common/network/listener_impl_test_base.h" #include "test/mocks/api/mocks.h" #include "test/mocks/network/mocks.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/environment.h" #include "test/test_common/network_utility.h" #include "test/test_common/threadsafe_singleton_injector.h" diff --git a/test/extensions/clusters/aggregate/BUILD b/test/extensions/clusters/aggregate/BUILD index 2e445737fcf9..3001535ca9ad 100644 --- a/test/extensions/clusters/aggregate/BUILD +++ b/test/extensions/clusters/aggregate/BUILD @@ -64,7 +64,6 @@ envoy_extension_cc_test( "//test/integration:http_integration_lib", "//test/integration:integration_lib", "//test/mocks/runtime:runtime_mocks", - "//test/mocks/server:server_mocks", "//test/test_common:network_utility_lib", "//test/test_common:resources_lib", "//test/test_common:utility_lib", diff --git a/test/extensions/clusters/aggregate/cluster_integration_test.cc b/test/extensions/clusters/aggregate/cluster_integration_test.cc index 5172bc8bbc4e..bd6af30b0808 100644 --- a/test/extensions/clusters/aggregate/cluster_integration_test.cc +++ b/test/extensions/clusters/aggregate/cluster_integration_test.cc @@ -9,7 +9,6 @@ #include "test/common/grpc/grpc_client_integration.h" #include "test/integration/http_integration.h" #include "test/integration/utility.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/network_utility.h" #include "test/test_common/resources.h" #include "test/test_common/simulated_time_system.h" diff --git a/test/extensions/common/proxy_protocol/BUILD b/test/extensions/common/proxy_protocol/BUILD index 90a37c8cd60d..414674d84711 100644 --- a/test/extensions/common/proxy_protocol/BUILD +++ b/test/extensions/common/proxy_protocol/BUILD @@ -34,7 +34,6 @@ envoy_cc_test( "//source/server:connection_handler_lib", "//test/mocks/buffer:buffer_mocks", "//test/mocks/network:network_mocks", - "//test/mocks/server:server_mocks", "//test/test_common:environment_lib", "//test/test_common:network_utility_lib", "//test/test_common:utility_lib", diff --git a/test/extensions/common/proxy_protocol/proxy_protocol_regression_test.cc b/test/extensions/common/proxy_protocol/proxy_protocol_regression_test.cc index cd0ed34c9f3f..8654352291de 100644 --- a/test/extensions/common/proxy_protocol/proxy_protocol_regression_test.cc +++ b/test/extensions/common/proxy_protocol/proxy_protocol_regression_test.cc @@ -13,7 +13,6 @@ #include "test/mocks/buffer/mocks.h" #include "test/mocks/network/mocks.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/environment.h" #include "test/test_common/network_utility.h" #include "test/test_common/utility.h" diff --git a/test/extensions/filters/http/jwt_authn/BUILD b/test/extensions/filters/http/jwt_authn/BUILD index f19bf5269283..14b745e50b81 100644 --- a/test/extensions/filters/http/jwt_authn/BUILD +++ b/test/extensions/filters/http/jwt_authn/BUILD @@ -47,7 +47,6 @@ envoy_extension_cc_test( deps = [ ":mock_lib", "//source/extensions/filters/http/jwt_authn:filter_lib", - "//test/mocks/server:server_mocks", "//test/test_common:utility_lib", "@envoy_api//envoy/extensions/filters/http/jwt_authn/v3:pkg_cc_proto", ], diff --git a/test/extensions/filters/http/jwt_authn/filter_test.cc b/test/extensions/filters/http/jwt_authn/filter_test.cc index b3a97f90c92a..0f8f1ff9c549 100644 --- a/test/extensions/filters/http/jwt_authn/filter_test.cc +++ b/test/extensions/filters/http/jwt_authn/filter_test.cc @@ -4,7 +4,6 @@ #include "extensions/filters/http/well_known_names.h" #include "test/extensions/filters/http/jwt_authn/mock.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/utility.h" #include "gmock/gmock.h" diff --git a/test/extensions/filters/network/rocketmq_proxy/BUILD b/test/extensions/filters/network/rocketmq_proxy/BUILD index c5cf5e5b34f0..36381bf3f83d 100644 --- a/test/extensions/filters/network/rocketmq_proxy/BUILD +++ b/test/extensions/filters/network/rocketmq_proxy/BUILD @@ -131,7 +131,7 @@ envoy_extension_cc_test( extension_name = "envoy.filters.network.rocketmq_proxy", deps = [ "//source/extensions/filters/network/rocketmq_proxy/router:route_matcher", - "//test/mocks/server:server_mocks", + "//test/test_common:utility_lib", "@envoy_api//envoy/extensions/filters/network/rocketmq_proxy/v3:pkg_cc_proto", ], ) diff --git a/test/extensions/filters/network/rocketmq_proxy/route_matcher_test.cc b/test/extensions/filters/network/rocketmq_proxy/route_matcher_test.cc index c908602fc25e..947e67481f9b 100644 --- a/test/extensions/filters/network/rocketmq_proxy/route_matcher_test.cc +++ b/test/extensions/filters/network/rocketmq_proxy/route_matcher_test.cc @@ -6,7 +6,7 @@ #include "extensions/filters/network/rocketmq_proxy/metadata.h" #include "extensions/filters/network/rocketmq_proxy/router/route_matcher.h" -#include "test/mocks/server/mocks.h" +#include "test/test_common/utility.h" #include "gmock/gmock.h" #include "gtest/gtest.h" @@ -71,4 +71,4 @@ name: default_route } // namespace RocketmqProxy } // namespace NetworkFilters } // namespace Extensions -} // namespace Envoy \ No newline at end of file +} // namespace Envoy diff --git a/test/extensions/filters/udp/dns_filter/BUILD b/test/extensions/filters/udp/dns_filter/BUILD index 395367532530..2ac152fc7f1a 100644 --- a/test/extensions/filters/udp/dns_filter/BUILD +++ b/test/extensions/filters/udp/dns_filter/BUILD @@ -60,7 +60,6 @@ envoy_cc_fuzz_test( deps = [ "//source/extensions/filters/udp/dns_filter:dns_filter_lib", "//test/fuzz:utility_lib", - "//test/mocks/server:server_mocks", "//test/test_common:environment_lib", ], ) diff --git a/test/extensions/filters/udp/dns_filter/dns_filter_fuzz_test.cc b/test/extensions/filters/udp/dns_filter/dns_filter_fuzz_test.cc index 334147bf3b01..b8dfc48eb504 100644 --- a/test/extensions/filters/udp/dns_filter/dns_filter_fuzz_test.cc +++ b/test/extensions/filters/udp/dns_filter/dns_filter_fuzz_test.cc @@ -5,7 +5,6 @@ #include "test/fuzz/fuzz_runner.h" #include "test/fuzz/utility.h" #include "test/mocks/event/mocks.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/environment.h" #include "gmock/gmock.h" diff --git a/test/integration/BUILD b/test/integration/BUILD index 0e927155b4c2..a4ef52e1ceb6 100644 --- a/test/integration/BUILD +++ b/test/integration/BUILD @@ -127,7 +127,6 @@ envoy_cc_test( "//source/common/protobuf:utility_lib", "//test/common/grpc:grpc_client_integration_lib", "//test/mocks/runtime:runtime_mocks", - "//test/mocks/server:server_mocks", "//test/test_common:network_utility_lib", "//test/test_common:resources_lib", "//test/test_common:utility_lib", @@ -223,7 +222,6 @@ envoy_cc_test( "//source/common/protobuf:utility_lib", "//test/common/grpc:grpc_client_integration_lib", "//test/mocks/runtime:runtime_mocks", - "//test/mocks/server:server_mocks", "//test/test_common:network_utility_lib", "//test/test_common:resources_lib", "//test/test_common:utility_lib", diff --git a/test/integration/cds_integration_test.cc b/test/integration/cds_integration_test.cc index 9ef423a0f7d1..93bfc5075d70 100644 --- a/test/integration/cds_integration_test.cc +++ b/test/integration/cds_integration_test.cc @@ -10,7 +10,6 @@ #include "test/common/grpc/grpc_client_integration.h" #include "test/integration/http_integration.h" #include "test/integration/utility.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/network_utility.h" #include "test/test_common/resources.h" #include "test/test_common/simulated_time_system.h" diff --git a/test/integration/sds_dynamic_integration_test.cc b/test/integration/sds_dynamic_integration_test.cc index eaf5513374c1..f7aa58316a10 100644 --- a/test/integration/sds_dynamic_integration_test.cc +++ b/test/integration/sds_dynamic_integration_test.cc @@ -23,7 +23,6 @@ #include "test/integration/server.h" #include "test/integration/ssl_utility.h" #include "test/mocks/secret/mocks.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/network_utility.h" #include "test/test_common/resources.h" #include "test/test_common/test_time_system.h" diff --git a/test/integration/sds_static_integration_test.cc b/test/integration/sds_static_integration_test.cc index 38f47be55031..da9e77c6e23f 100644 --- a/test/integration/sds_static_integration_test.cc +++ b/test/integration/sds_static_integration_test.cc @@ -17,7 +17,6 @@ #include "test/integration/server.h" #include "test/integration/ssl_utility.h" #include "test/mocks/secret/mocks.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/network_utility.h" #include "test/test_common/test_time_system.h" #include "test/test_common/utility.h" diff --git a/test/integration/server.cc b/test/integration/server.cc index 4b7d2beecb2e..2903c39d34ba 100644 --- a/test/integration/server.cc +++ b/test/integration/server.cc @@ -20,7 +20,6 @@ #include "test/integration/integration.h" #include "test/integration/utility.h" #include "test/mocks/runtime/mocks.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/environment.h" #include "absl/strings/str_replace.h" diff --git a/test/integration/vhds_integration_test.cc b/test/integration/vhds_integration_test.cc index 89ecb0d42af1..879fbcf8b90b 100644 --- a/test/integration/vhds_integration_test.cc +++ b/test/integration/vhds_integration_test.cc @@ -10,7 +10,6 @@ #include "test/common/grpc/grpc_client_integration.h" #include "test/integration/http_integration.h" #include "test/integration/utility.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/network_utility.h" #include "test/test_common/resources.h" #include "test/test_common/simulated_time_system.h" diff --git a/test/server/BUILD b/test/server/BUILD index 09446f8f0c30..ac23c10adf56 100644 --- a/test/server/BUILD +++ b/test/server/BUILD @@ -69,13 +69,14 @@ envoy_cc_test( srcs = ["connection_handler_test.cc"], deps = [ "//source/common/common:utility_lib", + "//source/common/config:utility_lib", "//source/common/network:address_lib", "//source/common/network:connection_balancer_lib", "//source/common/stats:stats_lib", "//source/server:active_raw_udp_listener_config", "//source/server:connection_handler_lib", + "//test/mocks/api:api_mocks", "//test/mocks/network:network_mocks", - "//test/mocks/server:server_mocks", "//test/test_common:network_utility_lib", "//test/test_common:threadsafe_singleton_injector_lib", "@envoy_api//envoy/config/core/v3:pkg_cc_proto", diff --git a/test/server/connection_handler_test.cc b/test/server/connection_handler_test.cc index a7f942f95d42..148874e612e3 100644 --- a/test/server/connection_handler_test.cc +++ b/test/server/connection_handler_test.cc @@ -6,6 +6,7 @@ #include "envoy/stats/scope.h" #include "common/common/utility.h" +#include "common/config/utility.h" #include "common/network/address_impl.h" #include "common/network/connection_balancer_impl.h" #include "common/network/io_socket_handle_impl.h" @@ -14,9 +15,9 @@ #include "server/connection_handler_impl.h" +#include "test/mocks/api/mocks.h" #include "test/mocks/common.h" #include "test/mocks/network/mocks.h" -#include "test/mocks/server/mocks.h" #include "test/test_common/network_utility.h" #include "test/test_common/threadsafe_singleton_injector.h"