blob: c8183faf52b1b52f3a25a051645a473e58e7ae5a [file] [log] [blame]
Nan Zhou042b5ba2021-06-18 09:32:45 -07001// 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
10class 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};