Lei YU | 7f2a215 | 2019-09-16 16:50:18 +0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "association_interface.hpp" |
| 4 | |
| 5 | #include <gmock/gmock.h> |
| 6 | |
| 7 | class MockedAssociationInterface : public AssociationInterface |
| 8 | { |
| 9 | public: |
George Liu | 66a54ad | 2024-08-23 13:53:39 +0800 | [diff] [blame] | 10 | MockedAssociationInterface() = default; |
| 11 | MockedAssociationInterface(const MockedAssociationInterface&) = delete; |
| 12 | MockedAssociationInterface& |
| 13 | operator=(const MockedAssociationInterface&) = delete; |
| 14 | MockedAssociationInterface(MockedAssociationInterface&&) = delete; |
| 15 | MockedAssociationInterface& |
| 16 | operator=(MockedAssociationInterface&&) = delete; |
| 17 | |
George Liu | 047d994 | 2024-08-23 13:44:31 +0800 | [diff] [blame] | 18 | ~MockedAssociationInterface() override = default; |
Lei YU | 7f2a215 | 2019-09-16 16:50:18 +0800 | [diff] [blame] | 19 | |
| 20 | MOCK_METHOD1(createActiveAssociation, void(const std::string& path)); |
| 21 | MOCK_METHOD1(addFunctionalAssociation, void(const std::string& path)); |
Lei YU | a8b966f | 2020-03-18 10:32:24 +0800 | [diff] [blame] | 22 | MOCK_METHOD1(addUpdateableAssociation, void(const std::string& path)); |
Lei YU | 7f2a215 | 2019-09-16 16:50:18 +0800 | [diff] [blame] | 23 | MOCK_METHOD1(removeAssociation, void(const std::string& path)); |
| 24 | }; |