Skip to content

Commit

Permalink
test: refactor header inclusion to speed up building (for test/integr…
Browse files Browse the repository at this point in the history
…ation/...) (envoyproxy#12053)

Commit Message: refactor header inclusion to speed up building
Additional Description:
Risk Level: low
Testing: exsiting tests
Docs Changes: N/A
Release Notes: no
Related Issues: envoyproxy#10917

Signed-off-by: Muge Chen <mugechen@google.com>
Signed-off-by: scheler <santosh.cheler@appdynamics.com>
  • Loading branch information
foreseeable authored and scheler committed Aug 4, 2020
1 parent b1d47bd commit b2f2c55
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions test/extensions/transport_sockets/alts/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ envoy_extension_cc_test(
"//test/integration:http_integration_lib",
"//test/mocks/runtime:runtime_mocks",
"//test/mocks/secret:secret_mocks",
"//test/mocks/server:server_mocks",
"//test/test_common:utility_lib",
"@envoy_api//envoy/config/transport_socket/alts/v2alpha:pkg_cc_proto",
],
Expand Down
5 changes: 3 additions & 2 deletions test/integration/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -624,6 +624,7 @@ envoy_cc_test_library(
"//source/extensions/transport_sockets/raw_buffer:config",
"//source/extensions/transport_sockets/tap:config",
"//source/extensions/transport_sockets/tls:config",
"//source/extensions/transport_sockets/tls:context_lib",
"//source/server:connection_handler_lib",
"//source/server:drain_manager_lib",
"//source/server:hot_restart_nop_lib",
Expand All @@ -635,7 +636,7 @@ envoy_cc_test_library(
"//test/common/upstream:utility_lib",
"//test/config:utility_lib",
"//test/mocks/buffer:buffer_mocks",
"//test/mocks/server:server_mocks",
"//test/mocks/server:transport_socket_factory_context_mocks",
"//test/mocks/stats:stats_mocks",
"//test/mocks/upstream:upstream_mocks",
"//test/test_common:environment_lib",
Expand Down Expand Up @@ -1097,7 +1098,7 @@ envoy_cc_test(
":http_integration_lib",
"//source/common/http:header_map_lib",
"//source/extensions/transport_sockets/tls:config",
"//test/mocks/server:server_mocks",
"//test/mocks/server:transport_socket_factory_context_mocks",
"//test/test_common:utility_lib",
"@envoy_api//envoy/config/bootstrap/v3:pkg_cc_proto",
"@envoy_api//envoy/extensions/filters/network/http_connection_manager/v3:pkg_cc_proto",
Expand Down
4 changes: 3 additions & 1 deletion test/integration/integration.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
#include "common/config/version_converter.h"
#include "common/http/codec_client.h"

#include "extensions/transport_sockets/tls/context_manager_impl.h"

#include "test/common/grpc/grpc_client_integration.h"
#include "test/config/utility.h"
#include "test/integration/fake_upstream.h"
#include "test/integration/server.h"
#include "test/integration/utility.h"
#include "test/mocks/buffer/mocks.h"
#include "test/mocks/server/mocks.h"
#include "test/mocks/server/transport_socket_factory_context.h"
#include "test/test_common/environment.h"
#include "test/test_common/network_utility.h"
#include "test/test_common/printers.h"
Expand Down
2 changes: 1 addition & 1 deletion test/integration/ssl_utility.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

#include "test/config/utility.h"
#include "test/integration/server.h"
#include "test/mocks/server/mocks.h"
#include "test/mocks/server/transport_socket_factory_context.h"
#include "test/test_common/environment.h"
#include "test/test_common/network_utility.h"

Expand Down
2 changes: 1 addition & 1 deletion test/integration/xfcc_integration_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include "test/config/integration/certs/clientcert_hash.h"
#include "test/integration/http_integration.h"
#include "test/integration/server.h"
#include "test/mocks/server/mocks.h"
#include "test/mocks/server/transport_socket_factory_context.h"

#include "absl/strings/ascii.h"
#include "absl/strings/str_replace.h"
Expand Down

0 comments on commit b2f2c55

Please sign in to comment.