Nan Zhou | 042b5ba | 2021-06-18 09:32:45 -0700 | [diff] [blame^] | 1 | // SPDX-License-Identifier: Apache-2.0 |
| 2 | // Copyright (C) 2021 GOOGLE |
| 3 | |
| 4 | #pragma once |
| 5 | |
| 6 | #include "dbus_loop.hpp" |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | |
| 10 | class DbusLoopMock : public DbusLoop |
| 11 | { |
| 12 | public: |
| 13 | MOCK_METHOD(int, run, (), (const, override)); |
| 14 | MOCK_METHOD(void, addIoHandler, (int fd, std::function<void()> callback), |
| 15 | (override)); |
| 16 | MOCK_METHOD(void, addSignalHandler, |
| 17 | (int signal, std::function<void()> callback), (override)); |
| 18 | MOCK_METHOD(void, addPropertyHandler, |
| 19 | (const std::string& objPath, const WatchProperties& props, |
| 20 | std::function<void()> callback), |
| 21 | (override)); |
| 22 | }; |