//------------------------------------------------------------------------------ // File: MockContainerMDSvc.cc // Author: Elvin-Alin Sindrilaru //------------------------------------------------------------------------------ /************************************************************************ * EOS - the CERN Disk Storage System * * Copyright (C) 2017 CERN/Switzerland * * * * This program 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, either version 3 of the License, or * * (at your option) any later version. * * * * This program 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 this program. If not, see .* ************************************************************************/ #pragma once #include #include "Namespace.hh" #include "namespace/ns_quarkdb/persistency/ContainerMDSvc.hh" EOSNSTESTING_BEGIN #if 0 //------------------------------------------------------------------------------ //! Class MockContainerMDSvc //------------------------------------------------------------------------------ class MockContainerMDSvc: public QuarkContainerMDSvc { public: MOCK_METHOD0(initialize, void()); MOCK_METHOD1(configure, void(const std::map& config)); MOCK_METHOD0(finalize, void()); MOCK_METHOD1(getContainerMD, std::shared_ptr(eos::IContainerMD::id_t id)); MOCK_METHOD0(createContainer, std::shared_ptr()); MOCK_METHOD1(updateStore, void(eos::IContainerMD* obj)); MOCK_METHOD1(removeContainer, void(eos::IContainerMD* obj)); MOCK_METHOD0(getNumContainers, uint64_t()); MOCK_METHOD1(addChangeListener, void(eos::IContainerMDChangeListener* listener)); MOCK_METHOD1(setQuotaStats, void(eos::IQuotaStats* quota_stats)); MOCK_METHOD2(notifyListeners, void(eos::IContainerMD*, eos::IContainerMDChangeListener::Action)); MOCK_METHOD1(getLostFoundContainer, std::shared_ptr(const std::string&)); MOCK_METHOD2(createInParent, std::shared_ptr(const std::string&, eos::IContainerMD*)); MOCK_METHOD1(setFileMDService, void(eos::IFileMDSvc* cont_svc)); MOCK_METHOD1(setContainerAccounting, void(eos::IFileMDChangeListener*)); MOCK_METHOD0(getFirstFreeId, eos::IContainerMD::id_t()); }; #endif EOSNSTESTING_END