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_MANAGER_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_ |
6 #define CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_ | 6 #define CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_ |
7 | 7 |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chromeos/dbus/shill_manager_client.h" | 9 #include "chromeos/dbus/shill_manager_client.h" |
10 #include "chromeos/dbus/shill_property_changed_observer.h" | 10 #include "chromeos/dbus/shill_property_changed_observer.h" |
| 11 #include "net/base/ip_endpoint.h" |
11 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
12 | 13 |
13 namespace chromeos { | 14 namespace chromeos { |
14 | 15 |
15 class MockShillManagerClient : public ShillManagerClient { | 16 class MockShillManagerClient : public ShillManagerClient { |
16 public: | 17 public: |
17 MockShillManagerClient(); | 18 MockShillManagerClient(); |
18 virtual ~MockShillManagerClient(); | 19 virtual ~MockShillManagerClient(); |
19 | 20 |
20 MOCK_METHOD1(Init, void(dbus::Bus* bus)); | 21 MOCK_METHOD1(Init, void(dbus::Bus* bus)); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 const StringCallback& callback, | 60 const StringCallback& callback, |
60 const ErrorCallback& error_callback)); | 61 const ErrorCallback& error_callback)); |
61 MOCK_METHOD4(VerifyAndEncryptData, | 62 MOCK_METHOD4(VerifyAndEncryptData, |
62 void(const VerificationProperties& properties, | 63 void(const VerificationProperties& properties, |
63 const std::string& data, | 64 const std::string& data, |
64 const StringCallback& callback, | 65 const StringCallback& callback, |
65 const ErrorCallback& error_callback)); | 66 const ErrorCallback& error_callback)); |
66 MOCK_METHOD2(ConnectToBestServices, | 67 MOCK_METHOD2(ConnectToBestServices, |
67 void(const base::Closure& callback, | 68 void(const base::Closure& callback, |
68 const ErrorCallback& error_callback)); | 69 const ErrorCallback& error_callback)); |
| 70 MOCK_METHOD3(AddWakeOnPacketConnection, |
| 71 void(const net::IPEndPoint& ip_connection, |
| 72 const base::Closure& callback, |
| 73 const ErrorCallback& error_callback)); |
| 74 MOCK_METHOD3(RemoveWakeOnPacketConnection, |
| 75 void(const net::IPEndPoint& ip_connection, |
| 76 const base::Closure& callback, |
| 77 const ErrorCallback& error_callback)); |
| 78 MOCK_METHOD2(RemoveAllWakeOnPacketConnections, |
| 79 void(const base::Closure& callback, |
| 80 const ErrorCallback& error_callback)); |
69 MOCK_METHOD0(GetTestInterface, TestInterface*()); | 81 MOCK_METHOD0(GetTestInterface, TestInterface*()); |
70 | 82 |
71 }; | 83 }; |
72 | 84 |
73 } // namespace chromeos | 85 } // namespace chromeos |
74 | 86 |
75 #endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_ | 87 #endif // CHROMEOS_DBUS_MOCK_SHILL_MANAGER_CLIENT_H_ |
OLD | NEW |