xref: /openbmc/phosphor-psu-code-mgmt/test/mocked_association_interface.hpp (revision 66a54ad41b40d019f52ff15866d249962b5c3f88)
17f2a2152SLei YU #pragma once
27f2a2152SLei YU 
37f2a2152SLei YU #include "association_interface.hpp"
47f2a2152SLei YU 
57f2a2152SLei YU #include <gmock/gmock.h>
67f2a2152SLei YU 
77f2a2152SLei YU class MockedAssociationInterface : public AssociationInterface
87f2a2152SLei YU {
97f2a2152SLei YU   public:
10*66a54ad4SGeorge Liu     MockedAssociationInterface() = default;
11*66a54ad4SGeorge Liu     MockedAssociationInterface(const MockedAssociationInterface&) = delete;
12*66a54ad4SGeorge Liu     MockedAssociationInterface&
13*66a54ad4SGeorge Liu         operator=(const MockedAssociationInterface&) = delete;
14*66a54ad4SGeorge Liu     MockedAssociationInterface(MockedAssociationInterface&&) = delete;
15*66a54ad4SGeorge Liu     MockedAssociationInterface&
16*66a54ad4SGeorge Liu         operator=(MockedAssociationInterface&&) = delete;
17*66a54ad4SGeorge Liu 
18047d9944SGeorge Liu     ~MockedAssociationInterface() override = default;
197f2a2152SLei YU 
207f2a2152SLei YU     MOCK_METHOD1(createActiveAssociation, void(const std::string& path));
217f2a2152SLei YU     MOCK_METHOD1(addFunctionalAssociation, void(const std::string& path));
22a8b966f1SLei YU     MOCK_METHOD1(addUpdateableAssociation, void(const std::string& path));
237f2a2152SLei YU     MOCK_METHOD1(removeAssociation, void(const std::string& path));
247f2a2152SLei YU };
25