blob: 7ae077ff0d6484995d2c2198d0c70dec9a8c0f40 [file] [log] [blame]
// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_MOCK_DBUS_OBJECTMANAGER_PROXY_H_
#define SHILL_MOCK_DBUS_OBJECTMANAGER_PROXY_H_
#include <base/macros.h>
#include <gmock/gmock.h>
#include "shill/dbus_objectmanager_proxy_interface.h"
namespace shill {
class MockDBusObjectManagerProxy : public DBusObjectManagerProxyInterface {
public:
MockDBusObjectManagerProxy();
~MockDBusObjectManagerProxy() override;
MOCK_METHOD3(GetManagedObjects, void(Error *error,
const ManagedObjectsCallback &callback,
int timeout));
MOCK_METHOD1(set_interfaces_added_callback,
void(const InterfacesAddedSignalCallback &callback));
MOCK_METHOD1(set_interfaces_removed_callback,
void(const InterfacesRemovedSignalCallback &callback));
void IgnoreSetCallbacks();
private:
DISALLOW_COPY_AND_ASSIGN(MockDBusObjectManagerProxy);
};
} // namespace shill
#endif // SHILL_MOCK_DBUS_OBJECTMANAGER_PROXY_H_