#pragma once #include "envoy/server/transport_socket_config.h" #include "common/secret/secret_manager_impl.h" #include "test/mocks/api/mocks.h" #include "test/mocks/upstream/cluster_manager.h" #include "config_tracker.h" #include "gmock/gmock.h" namespace Envoy { namespace Server { namespace Configuration { class MockTransportSocketFactoryContext : public TransportSocketFactoryContext { public: MockTransportSocketFactoryContext(); ~MockTransportSocketFactoryContext() override; Secret::SecretManager& secretManager() override { return *(secret_manager_.get()); } MOCK_METHOD(Server::Admin&, admin, ()); MOCK_METHOD(Ssl::ContextManager&, sslContextManager, ()); MOCK_METHOD(Stats::Scope&, scope, ()); MOCK_METHOD(Upstream::ClusterManager&, clusterManager, ()); MOCK_METHOD(const LocalInfo::LocalInfo&, localInfo, (), (const)); MOCK_METHOD(Event::Dispatcher&, dispatcher, ()); MOCK_METHOD(Envoy::Random::RandomGenerator&, random, ()); MOCK_METHOD(Stats::Store&, stats, ()); MOCK_METHOD(Init::Manager&, initManager, ()); MOCK_METHOD(Singleton::Manager&, singletonManager, ()); MOCK_METHOD(ThreadLocal::SlotAllocator&, threadLocal, ()); MOCK_METHOD(ProtobufMessage::ValidationVisitor&, messageValidationVisitor, ()); MOCK_METHOD(Api::Api&, api, ()); testing::NiceMock cluster_manager_; testing::NiceMock api_; testing::NiceMock config_tracker_; std::unique_ptr secret_manager_; }; } // namespace Configuration } // namespace Server } // namespace Envoy