#pragma once #include #include #include #include #include "envoy/server/drain_manager.h" #include "gmock/gmock.h" namespace Envoy { namespace Server { class MockDrainManager : public DrainManager { public: MockDrainManager(); ~MockDrainManager() override; // Server::DrainManager MOCK_METHOD(bool, drainClose, (), (const)); MOCK_METHOD(bool, draining, (), (const)); MOCK_METHOD(void, startDrainSequence, (std::function completion)); MOCK_METHOD(void, startParentShutdownSequence, ()); std::function drain_sequence_completion_; }; } // namespace Server } // namespace Envoy