OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_ |
6 #define CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_ | 6 #define CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_ |
7 | 7 |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chromeos/dbus/shill_profile_client.h" | 9 #include "chromeos/dbus/shill_profile_client.h" |
10 #include "dbus/object_path.h" | 10 #include "dbus/object_path.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
12 | 12 |
13 namespace chromeos { | 13 namespace chromeos { |
14 | 14 |
15 class MockShillProfileClient : public ShillProfileClient { | 15 class MockShillProfileClient : public ShillProfileClient { |
16 public: | 16 public: |
17 MockShillProfileClient(); | 17 MockShillProfileClient(); |
18 virtual ~MockShillProfileClient(); | 18 virtual ~MockShillProfileClient(); |
19 | 19 |
20 MOCK_METHOD2(SetPropertyChangedHandler, | 20 MOCK_METHOD2(SetPropertyChangedHandler, |
21 void(const dbus::ObjectPath& profile_path, | 21 void(const dbus::ObjectPath& profile_path, |
22 const PropertyChangedHandler& handler)); | 22 const PropertyChangedHandler& handler)); |
23 MOCK_METHOD1(ResetPropertyChangedHandler, | 23 MOCK_METHOD1(ResetPropertyChangedHandler, |
24 void(const dbus::ObjectPath& profile_path)); | 24 void(const dbus::ObjectPath& profile_path)); |
25 MOCK_METHOD2(GetProperties, void(const dbus::ObjectPath& profile_path, | 25 MOCK_METHOD3(GetProperties, void( |
26 const DictionaryValueCallback& callback)); | 26 const dbus::ObjectPath& profile_path, |
27 MOCK_METHOD3(GetEntry, void(const dbus::ObjectPath& profile_path, | 27 const DictionaryValueCallbackWithoutStatus& callback, |
28 const std::string& entry_path, | 28 const ErrorCallback& error_callback)); |
29 const DictionaryValueCallback& callback)); | 29 MOCK_METHOD4(GetEntry, void( |
30 MOCK_METHOD3(DeleteEntry, void(const dbus::ObjectPath& profile_path, | 30 const dbus::ObjectPath& profile_path, |
| 31 const std::string& entry_path, |
| 32 const DictionaryValueCallbackWithoutStatus& callback, |
| 33 const ErrorCallback& error_callback)); |
| 34 MOCK_METHOD4(DeleteEntry, void(const dbus::ObjectPath& profile_path, |
31 const std::string& entry_path, | 35 const std::string& entry_path, |
32 const VoidDBusMethodCallback& callback)); | 36 const base::Closure& callback, |
| 37 const ErrorCallback& error_callback)); |
33 }; | 38 }; |
34 | 39 |
35 } // namespace chromeos | 40 } // namespace chromeos |
36 | 41 |
37 #endif // CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_ | 42 #endif // CHROMEOS_DBUS_MOCK_SHILL_PROFILE_CLIENT_H_ |
OLD | NEW |