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