blob: 745f98708c608436e4f8de5e053c4655a69e56b3 [file] [log] [blame]
Darin Petkove0a312e2011-07-20 13:45:28 -07001// Copyright (c) 2011 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_PROPERTIES_PROXY_H_
6#define SHILL_MOCK_DBUS_PROPERTIES_PROXY_H_
7
Darin Petkov1bdedf12011-08-26 13:32:11 -07008#include <base/basictypes.h>
Darin Petkove0a312e2011-07-20 13:45:28 -07009#include <gmock/gmock.h>
10
11#include "shill/dbus_properties_proxy_interface.h"
12
13namespace shill {
14
15class MockDBusPropertiesProxy : public DBusPropertiesProxyInterface {
16 public:
Darin Petkov1bdedf12011-08-26 13:32:11 -070017 MockDBusPropertiesProxy();
18 virtual ~MockDBusPropertiesProxy();
19
Darin Petkove0a312e2011-07-20 13:45:28 -070020 MOCK_METHOD1(GetAll, DBusPropertiesMap(const std::string &interface_name));
Arman Uguray5d9a8522013-09-10 17:43:13 -070021 MOCK_METHOD2(Get, DBus::Variant(const std::string &interface_name,
22 const std::string &property));
Jason Glasgow9c09e362012-04-18 15:16:29 -040023 MOCK_METHOD1(set_properties_changed_callback,
24 void(const PropertiesChangedCallback &callback));
25 MOCK_METHOD1(set_modem_manager_properties_changed_callback,
26 void(const ModemManagerPropertiesChangedCallback &callback));
Darin Petkov1bdedf12011-08-26 13:32:11 -070027
28 private:
29 DISALLOW_COPY_AND_ASSIGN(MockDBusPropertiesProxy);
Darin Petkove0a312e2011-07-20 13:45:28 -070030};
31
32} // namespace shill
33
34#endif // SHILL_MOCK_DBUS_PROPERTIES_PROXY_H_