/* Copyright 2013-2015 Skytechnology sp. z o.o. Copyright 2023 Leil Storage OÜ This file is part of SaunaFS. SaunaFS is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3. SaunaFS is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with SaunaFS. If not, see . */ #pragma once #include "common/platform.h" #include #include #include "common/chunk_connector.h" #include "unittests/mocks/module_mock.h" class ChunkConnectorMock : public ChunkConnector { public: typedef std::map Modules; ChunkConnectorMock(std::initializer_list modules); ~ChunkConnectorMock() {} int startUsingConnection(const NetworkAddress& server, const Timeout& timeout) const; private: Modules modules_; };