blob: 70e6d01b6ad895fd06e52be6b498fb6bafcfa5b4 [file] [log] [blame]
Lei YU7f2a2152019-09-16 16:50:18 +08001#pragma once
2
3#include "association_interface.hpp"
4
5#include <gmock/gmock.h>
6
7class MockedAssociationInterface : public AssociationInterface
8{
9 public:
George Liu66a54ad2024-08-23 13:53:39 +080010 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 Liu047d9942024-08-23 13:44:31 +080018 ~MockedAssociationInterface() override = default;
Lei YU7f2a2152019-09-16 16:50:18 +080019
20 MOCK_METHOD1(createActiveAssociation, void(const std::string& path));
21 MOCK_METHOD1(addFunctionalAssociation, void(const std::string& path));
Lei YUa8b966f2020-03-18 10:32:24 +080022 MOCK_METHOD1(addUpdateableAssociation, void(const std::string& path));
Lei YU7f2a2152019-09-16 16:50:18 +080023 MOCK_METHOD1(removeAssociation, void(const std::string& path));
24};