Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / chromeos / dbus / mock_shill_device_client.h
blob3f2a2db8f7262ff332a4b45969856be707378a10
1 // Copyright (c) 2012 The Chromium 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.
5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_
6 #define CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_
8 #include "base/values.h"
9 #include "chromeos/dbus/shill_device_client.h"
10 #include "chromeos/dbus/shill_property_changed_observer.h"
11 #include "dbus/object_path.h"
12 #include "testing/gmock/include/gmock/gmock.h"
14 namespace chromeos {
16 class MockShillDeviceClient : public ShillDeviceClient {
17 public:
18 MockShillDeviceClient();
19 virtual ~MockShillDeviceClient();
21 MOCK_METHOD2(AddPropertyChangedObserver,
22 void(const dbus::ObjectPath& device_path,
23 ShillPropertyChangedObserver* observer));
24 MOCK_METHOD2(RemovePropertyChangedObserver,
25 void(const dbus::ObjectPath& device_path,
26 ShillPropertyChangedObserver* observer));
27 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& device_path,
28 const DictionaryValueCallback& callback));
29 MOCK_METHOD1(CallGetPropertiesAndBlock,
30 base::DictionaryValue*(const dbus::ObjectPath& device_path));
31 MOCK_METHOD2(ProposeScan, void(const dbus::ObjectPath& device_path,
32 const VoidDBusMethodCallback& callback));
33 MOCK_METHOD5(SetProperty, void(const dbus::ObjectPath& device_path,
34 const std::string& name,
35 const base::Value& value,
36 const base::Closure& callback,
37 const ErrorCallback& error_callback));
38 MOCK_METHOD3(ClearProperty, void(const dbus::ObjectPath& device_path,
39 const std::string& name,
40 const VoidDBusMethodCallback& callback));
41 MOCK_METHOD3(AddIPConfig, void(const dbus::ObjectPath& device_path,
42 const std::string& method,
43 const ObjectPathDBusMethodCallback& callback));
44 MOCK_METHOD2(CallAddIPConfigAndBlock,
45 dbus::ObjectPath(const dbus::ObjectPath& device_path,
46 const std::string& method));
47 MOCK_METHOD5(RequirePin, void(const dbus::ObjectPath& device_path,
48 const std::string& pin,
49 bool require,
50 const base::Closure& callback,
51 const ErrorCallback& error_callback));
52 MOCK_METHOD4(EnterPin, void(const dbus::ObjectPath& device_path,
53 const std::string& pin,
54 const base::Closure& callback,
55 const ErrorCallback& error_callback));
56 MOCK_METHOD5(UnblockPin, void(const dbus::ObjectPath& device_path,
57 const std::string& puk,
58 const std::string& pin,
59 const base::Closure& callback,
60 const ErrorCallback& error_callback));
61 MOCK_METHOD5(ChangePin, void(const dbus::ObjectPath& device_path,
62 const std::string& old_pin,
63 const std::string& new_pin,
64 const base::Closure& callback,
65 const ErrorCallback& error_callback));
66 MOCK_METHOD4(Register, void(const dbus::ObjectPath& device_path,
67 const std::string& network_id,
68 const base::Closure& callback,
69 const ErrorCallback& error_callback));
70 MOCK_METHOD4(SetCarrier, void(const dbus::ObjectPath& device_path,
71 const std::string& carrier,
72 const base::Closure& callback,
73 const ErrorCallback& error_callback));
74 MOCK_METHOD3(Reset, void(const dbus::ObjectPath& device_path,
75 const base::Closure& callback,
76 const ErrorCallback& error_callback));
77 MOCK_METHOD0(GetTestInterface, TestInterface*());
80 } // namespace chromeos
82 #endif // CHROMEOS_DBUS_MOCK_SHILL_DEVICE_CLIENT_H_