blob: 0eec8c5dbdb04e32b45e2b12253390544361243f [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
Alex Vakulenko8a532292014-06-16 17:18:44 -07008#include <string>
9
Ben Chancc67c522014-09-03 07:19:18 -070010#include <base/macros.h>
Darin Petkove0a312e2011-07-20 13:45:28 -070011#include <gmock/gmock.h>
12
13#include "shill/dbus_properties_proxy_interface.h"
14
15namespace shill {
16
17class MockDBusPropertiesProxy : public DBusPropertiesProxyInterface {
18 public:
Darin Petkov1bdedf12011-08-26 13:32:11 -070019 MockDBusPropertiesProxy();
Ben Chan5ea763b2014-08-13 11:07:54 -070020 ~MockDBusPropertiesProxy() override;
Darin Petkov1bdedf12011-08-26 13:32:11 -070021
Paul Stewart1e006c62015-06-16 12:29:06 -070022 MOCK_METHOD1(GetAll, DBusPropertiesMap(const std::string& interface_name));
23 MOCK_METHOD2(Get, DBus::Variant(const std::string& interface_name,
24 const std::string& property));
Jason Glasgow9c09e362012-04-18 15:16:29 -040025 MOCK_METHOD1(set_properties_changed_callback,
Paul Stewart1e006c62015-06-16 12:29:06 -070026 void(const PropertiesChangedCallback& callback));
Jason Glasgow9c09e362012-04-18 15:16:29 -040027 MOCK_METHOD1(set_modem_manager_properties_changed_callback,
Paul Stewart1e006c62015-06-16 12:29:06 -070028 void(const ModemManagerPropertiesChangedCallback& callback));
Darin Petkov1bdedf12011-08-26 13:32:11 -070029
30 private:
31 DISALLOW_COPY_AND_ASSIGN(MockDBusPropertiesProxy);
Darin Petkove0a312e2011-07-20 13:45:28 -070032};
33
34} // namespace shill
35
36#endif // SHILL_MOCK_DBUS_PROPERTIES_PROXY_H_