blob: 88185a61fb43d1dfa2b082ad0a3fd62ee9279f95 [file] [log] [blame]
// Copyright 2022 The ChromiumOS Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef TYPECD_MOCK_DBUS_MANAGER_H_
#define TYPECD_MOCK_DBUS_MANAGER_H_
#include <string>
#include <gmock/gmock.h>
#include "typecd/dbus_manager.h"
namespace typecd {
// A mock implementation of the DBusManager class used in PortManager
// testing.
class MockDBusManager : public DBusManager {
public:
explicit MockDBusManager(brillo::dbus_utils::DBusObject* dbus_object)
: DBusManager(dbus_object) {}
MOCK_METHOD(void, NotifyConnected, (DeviceConnectedType), ());
MOCK_METHOD(void, NotifyCableWarning, (CableWarningType), ());
};
} // namespace typecd
#endif // TYPECD_MOCK_DBUS_MANAGER_H_