Skip to content

Commit

Permalink
test: refactor header inclusion to speed up building (for test/extens…
Browse files Browse the repository at this point in the history
…ions/transport_sockets/...) (envoyproxy#12050)

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 e2d0932 commit 932fc42
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
3 changes: 2 additions & 1 deletion test/extensions/transport_sockets/alts/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ envoy_extension_cc_test(
srcs = ["config_test.cc"],
extension_name = "envoy.transport_sockets.alts",
deps = [
"//source/common/singleton:manager_impl_lib",
"//source/extensions/transport_sockets/alts:config",
"//test/mocks/event:event_mocks",
"//test/mocks/network:network_mocks",
"//test/mocks/server:server_mocks",
"//test/mocks/server:transport_socket_factory_context_mocks",
],
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
#include "test/integration/integration.h"
#include "test/integration/server.h"
#include "test/integration/utility.h"
#include "test/mocks/server/mocks.h"
#include "test/mocks/server/transport_socket_factory_context.h"

#include "test/test_common/network_utility.h"
#include "test/test_common/utility.h"

Expand Down
2 changes: 1 addition & 1 deletion test/extensions/transport_sockets/alts/config_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include "extensions/transport_sockets/alts/config.h"

#include "test/mocks/server/mocks.h"
#include "test/mocks/server/transport_socket_factory_context.h"

#include "gmock/gmock.h"
#include "gtest/gtest.h"
Expand Down
6 changes: 5 additions & 1 deletion test/extensions/transport_sockets/tls/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ envoy_cc_test(
"//source/extensions/transport_sockets/tls/private_key:private_key_manager_lib",
"//test/extensions/transport_sockets/tls/test_data:cert_infos",
"//test/mocks/buffer:buffer_mocks",
"//test/mocks/init:init_mocks",
"//test/mocks/local_info:local_info_mocks",
"//test/mocks/network:network_mocks",
"//test/mocks/runtime:runtime_mocks",
"//test/mocks/server:server_mocks",
Expand Down Expand Up @@ -79,9 +81,11 @@ envoy_cc_test(
"//source/extensions/transport_sockets/tls:context_config_lib",
"//source/extensions/transport_sockets/tls:context_lib",
"//test/extensions/transport_sockets/tls/test_data:cert_infos",
"//test/mocks/init:init_mocks",
"//test/mocks/local_info:local_info_mocks",
"//test/mocks/runtime:runtime_mocks",
"//test/mocks/secret:secret_mocks",
"//test/mocks/server:server_mocks",
"//test/mocks/server:transport_socket_factory_context_mocks",
"//test/mocks/ssl:ssl_mocks",
"//test/test_common:environment_lib",
"//test/test_common:simulated_time_system_lib",
Expand Down
4 changes: 3 additions & 1 deletion test/extensions/transport_sockets/tls/context_impl_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
#include "test/extensions/transport_sockets/tls/test_data/no_san_cert_info.h"
#include "test/extensions/transport_sockets/tls/test_data/san_dns3_cert_info.h"
#include "test/extensions/transport_sockets/tls/test_data/san_ip_cert_info.h"
#include "test/mocks/init/mocks.h"
#include "test/mocks/local_info/mocks.h"
#include "test/mocks/secret/mocks.h"
#include "test/mocks/server/mocks.h"
#include "test/mocks/server/transport_socket_factory_context.h"
#include "test/mocks/ssl/mocks.h"
#include "test/test_common/environment.h"
#include "test/test_common/simulated_time_system.h"
Expand Down
2 changes: 1 addition & 1 deletion test/extensions/transport_sockets/tls/ssl_certs_test.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#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/simulated_time_system.h"

Expand Down
4 changes: 3 additions & 1 deletion test/extensions/transport_sockets/tls/ssl_socket_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@
#include "test/extensions/transport_sockets/tls/test_data/selfsigned_ecdsa_p256_cert_info.h"
#include "test/extensions/transport_sockets/tls/test_private_key_method_provider.h"
#include "test/mocks/buffer/mocks.h"
#include "test/mocks/init/mocks.h"
#include "test/mocks/local_info/mocks.h"
#include "test/mocks/network/mocks.h"
#include "test/mocks/secret/mocks.h"
#include "test/mocks/server/mocks.h"
#include "test/mocks/server/transport_socket_factory_context.h"
#include "test/mocks/ssl/mocks.h"
#include "test/mocks/stats/mocks.h"
#include "test/test_common/environment.h"
Expand Down

0 comments on commit 932fc42

Please sign in to comment.