blob: 07d6e020ac867bb88233538b3f81d790544663d4 [file] [log] [blame]
David Rochberg7cb06f62012-03-05 11:23:44 -05001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef SHILL_MOCK_DBUS_OBJECTMANAGER_PROXY_H_
6#define SHILL_MOCK_DBUS_OBJECTMANAGER_PROXY_H_
7
8#include <base/basictypes.h>
9#include <gmock/gmock.h>
10
11#include "shill/dbus_objectmanager_proxy_interface.h"
12
13namespace shill {
14
15class MockDBusObjectManagerProxy : public DBusObjectManagerProxyInterface {
16 public:
17 MockDBusObjectManagerProxy();
18 virtual ~MockDBusObjectManagerProxy();
19
Eric Shienbrood9a245532012-03-07 14:20:39 -050020 MOCK_METHOD3(GetManagedObjects, void(Error *error,
21 const ManagedObjectsCallback &callback,
David Rochberg7cb06f62012-03-05 11:23:44 -050022 int timeout));
Eric Shienbrood9a245532012-03-07 14:20:39 -050023 MOCK_METHOD1(set_interfaces_added_callback,
24 void(const InterfacesAddedSignalCallback &callback));
25 MOCK_METHOD1(set_interfaces_removed_callback,
26 void(const InterfacesRemovedSignalCallback &callback));
David Rochbergfa1d31d2012-03-20 10:38:07 -040027 void IgnoreSetCallbacks();
David Rochberg7cb06f62012-03-05 11:23:44 -050028
29 private:
30 DISALLOW_COPY_AND_ASSIGN(MockDBusObjectManagerProxy);
31};
32
33} // namespace shill
34
35#endif // SHILL_MOCK_DBUS_OBJECTMANAGER_PROXY_H_