blob: 042a9fd4ec4e4997e031be7f4fe2de669194d61f [file] [log] [blame]
Alex Deymod5561a52015-09-03 23:17:52 -07001// Automatic generation of D-Bus interface mock proxies for:
2// - org.chromium.debugd
3#ifndef ____CHROMEOS_DBUS_BINDING____________________BUILD_LINK_VAR_CACHE_PORTAGE_CHROMEOS_BASE_DEBUGD_CLIENT_OUT_DEFAULT_GEN_INCLUDE_DEBUGD_DBUS_PROXY_MOCKS_H
4#define ____CHROMEOS_DBUS_BINDING____________________BUILD_LINK_VAR_CACHE_PORTAGE_CHROMEOS_BASE_DEBUGD_CLIENT_OUT_DEFAULT_GEN_INCLUDE_DEBUGD_DBUS_PROXY_MOCKS_H
5#include <string>
6#include <vector>
7
8#include <base/callback_forward.h>
9#include <base/logging.h>
10#include <base/macros.h>
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070011#include <brillo/any.h>
12#include <brillo/errors/error.h>
13#include <brillo/variant_dictionary.h>
Alex Deymod5561a52015-09-03 23:17:52 -070014#include <gmock/gmock.h>
15
16#include "debugd/dbus-proxies.h"
17
18namespace org {
19namespace chromium {
20
21// Mock object for debugdProxyInterface.
22class debugdProxyMock : public debugdProxyInterface {
23 public:
24 debugdProxyMock() = default;
25
26 MOCK_METHOD6(PingStart,
27 bool(const dbus::FileDescriptor& /*in_outfd*/,
28 const std::string& /*in_destination*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070029 const brillo::VariantDictionary& /*in_options*/,
Alex Deymod5561a52015-09-03 23:17:52 -070030 std::string* /*out_handle*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070031 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -070032 int /*timeout_ms*/));
33 MOCK_METHOD6(PingStartAsync,
34 void(const dbus::FileDescriptor& /*in_outfd*/,
35 const std::string& /*in_destination*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070036 const brillo::VariantDictionary& /*in_options*/,
Alex Deymod5561a52015-09-03 23:17:52 -070037 const base::Callback<void(const std::string& /*handle*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070038 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -070039 int /*timeout_ms*/));
40 MOCK_METHOD3(PingStop,
41 bool(const std::string& /*in_handle*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070042 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -070043 int /*timeout_ms*/));
44 MOCK_METHOD4(PingStopAsync,
45 void(const std::string& /*in_handle*/,
46 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070047 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -070048 int /*timeout_ms*/));
49 MOCK_METHOD3(SystraceStart,
50 bool(const std::string& /*in_categories*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070051 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -070052 int /*timeout_ms*/));
53 MOCK_METHOD4(SystraceStartAsync,
54 void(const std::string& /*in_categories*/,
55 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070056 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -070057 int /*timeout_ms*/));
58 MOCK_METHOD3(SystraceStop,
59 bool(const dbus::FileDescriptor& /*in_outfd*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070060 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -070061 int /*timeout_ms*/));
62 MOCK_METHOD4(SystraceStopAsync,
63 void(const dbus::FileDescriptor& /*in_outfd*/,
64 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070065 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -070066 int /*timeout_ms*/));
67 MOCK_METHOD3(SystraceStatus,
68 bool(std::string* /*out_status*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070069 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -070070 int /*timeout_ms*/));
71 MOCK_METHOD3(SystraceStatusAsync,
72 void(const base::Callback<void(const std::string& /*status*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070073 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -070074 int /*timeout_ms*/));
75 MOCK_METHOD6(TracePathStart,
76 bool(const dbus::FileDescriptor& /*in_outfd*/,
77 const std::string& /*in_destination*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070078 const brillo::VariantDictionary& /*in_options*/,
Alex Deymod5561a52015-09-03 23:17:52 -070079 std::string* /*out_handle*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070080 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -070081 int /*timeout_ms*/));
82 MOCK_METHOD6(TracePathStartAsync,
83 void(const dbus::FileDescriptor& /*in_outfd*/,
84 const std::string& /*in_destination*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070085 const brillo::VariantDictionary& /*in_options*/,
Alex Deymod5561a52015-09-03 23:17:52 -070086 const base::Callback<void(const std::string& /*handle*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070087 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -070088 int /*timeout_ms*/));
89 MOCK_METHOD3(TracePathStop,
90 bool(const std::string& /*in_handle*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070091 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -070092 int /*timeout_ms*/));
93 MOCK_METHOD4(TracePathStopAsync,
94 void(const std::string& /*in_handle*/,
95 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070096 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -070097 int /*timeout_ms*/));
98 MOCK_METHOD4(GetRoutes,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -070099 bool(const brillo::VariantDictionary& /*in_options*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700100 std::vector<std::string>* /*out_result*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700101 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700102 int /*timeout_ms*/));
103 MOCK_METHOD4(GetRoutesAsync,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700104 void(const brillo::VariantDictionary& /*in_options*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700105 const base::Callback<void(const std::vector<std::string>& /*result*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700106 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700107 int /*timeout_ms*/));
108 MOCK_METHOD3(GetModemStatus,
109 bool(std::string* /*out_status*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700110 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700111 int /*timeout_ms*/));
112 MOCK_METHOD3(GetModemStatusAsync,
113 void(const base::Callback<void(const std::string& /*status*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700114 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700115 int /*timeout_ms*/));
116 MOCK_METHOD4(RunModemCommand,
117 bool(const std::string& /*in_command*/,
118 std::string* /*out_status*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700119 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700120 int /*timeout_ms*/));
121 MOCK_METHOD4(RunModemCommandAsync,
122 void(const std::string& /*in_command*/,
123 const base::Callback<void(const std::string& /*status*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700124 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700125 int /*timeout_ms*/));
126 MOCK_METHOD3(GetNetworkStatus,
127 bool(std::string* /*out_status*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700128 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700129 int /*timeout_ms*/));
130 MOCK_METHOD3(GetNetworkStatusAsync,
131 void(const base::Callback<void(const std::string& /*status*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700132 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700133 int /*timeout_ms*/));
134 MOCK_METHOD3(GetWiMaxStatus,
135 bool(std::string* /*out_status*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700136 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700137 int /*timeout_ms*/));
138 MOCK_METHOD3(GetWiMaxStatusAsync,
139 void(const base::Callback<void(const std::string& /*status*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700140 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700141 int /*timeout_ms*/));
142 MOCK_METHOD7(GetPerfOutput,
143 bool(uint32_t /*in_duration_sec*/,
144 const std::vector<std::string>& /*in_perf_args*/,
145 int32_t* /*out_status*/,
146 std::vector<uint8_t>* /*out_perf_data*/,
147 std::vector<uint8_t>* /*out_perf_stat*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700148 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700149 int /*timeout_ms*/));
150 MOCK_METHOD5(GetPerfOutputAsync,
151 void(uint32_t /*in_duration_sec*/,
152 const std::vector<std::string>& /*in_perf_args*/,
153 const base::Callback<void(int32_t /*status*/, const std::vector<uint8_t>& /*perf_data*/, const std::vector<uint8_t>& /*perf_stat*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700154 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700155 int /*timeout_ms*/));
156 MOCK_METHOD6(GetRandomPerfOutput,
157 bool(uint32_t /*in_duration_sec*/,
158 int32_t* /*out_status*/,
159 std::vector<uint8_t>* /*out_perf_data*/,
160 std::vector<uint8_t>* /*out_perf_stat*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700161 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700162 int /*timeout_ms*/));
163 MOCK_METHOD4(GetRandomPerfOutputAsync,
164 void(uint32_t /*in_duration_sec*/,
165 const base::Callback<void(int32_t /*status*/, const std::vector<uint8_t>& /*perf_data*/, const std::vector<uint8_t>& /*perf_stat*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700166 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700167 int /*timeout_ms*/));
168 MOCK_METHOD4(GetRichPerfData,
169 bool(uint32_t /*in_duration_sec*/,
170 std::vector<uint8_t>* /*out_status*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700171 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700172 int /*timeout_ms*/));
173 MOCK_METHOD4(GetRichPerfDataAsync,
174 void(uint32_t /*in_duration_sec*/,
175 const base::Callback<void(const std::vector<uint8_t>& /*status*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700176 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700177 int /*timeout_ms*/));
178 MOCK_METHOD3(GetDebugLogs,
179 bool(const dbus::FileDescriptor& /*in_outfd*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700180 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700181 int /*timeout_ms*/));
182 MOCK_METHOD4(GetDebugLogsAsync,
183 void(const dbus::FileDescriptor& /*in_outfd*/,
184 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700185 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700186 int /*timeout_ms*/));
187 MOCK_METHOD4(DumpDebugLogs,
188 bool(bool /*in_is_compressed*/,
189 const dbus::FileDescriptor& /*in_outfd*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700190 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700191 int /*timeout_ms*/));
192 MOCK_METHOD5(DumpDebugLogsAsync,
193 void(bool /*in_is_compressed*/,
194 const dbus::FileDescriptor& /*in_outfd*/,
195 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700196 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700197 int /*timeout_ms*/));
198 MOCK_METHOD3(SetDebugMode,
199 bool(const std::string& /*in_subsystem*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700200 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700201 int /*timeout_ms*/));
202 MOCK_METHOD4(SetDebugModeAsync,
203 void(const std::string& /*in_subsystem*/,
204 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700205 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700206 int /*timeout_ms*/));
207 MOCK_METHOD4(GetLog,
208 bool(const std::string& /*in_log*/,
209 std::string* /*out_contents*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700210 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700211 int /*timeout_ms*/));
212 MOCK_METHOD4(GetLogAsync,
213 void(const std::string& /*in_log*/,
214 const base::Callback<void(const std::string& /*contents*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700215 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700216 int /*timeout_ms*/));
217 MOCK_METHOD3(GetAllLogs,
218 bool(std::map<std::string, std::string>* /*out_logs*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700219 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700220 int /*timeout_ms*/));
221 MOCK_METHOD3(GetAllLogsAsync,
222 void(const base::Callback<void(const std::map<std::string, std::string>& /*logs*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700223 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700224 int /*timeout_ms*/));
225 MOCK_METHOD3(GetFeedbackLogs,
226 bool(std::map<std::string, std::string>* /*out_logs*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700227 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700228 int /*timeout_ms*/));
229 MOCK_METHOD3(GetFeedbackLogsAsync,
230 void(const base::Callback<void(const std::map<std::string, std::string>& /*logs*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700231 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700232 int /*timeout_ms*/));
233 MOCK_METHOD3(GetUserLogFiles,
234 bool(std::map<std::string, std::string>* /*out_user_log_files*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700235 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700236 int /*timeout_ms*/));
237 MOCK_METHOD3(GetUserLogFilesAsync,
238 void(const base::Callback<void(const std::map<std::string, std::string>& /*user_log_files*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700239 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700240 int /*timeout_ms*/));
241 MOCK_METHOD3(GetExample,
242 bool(std::string* /*out_result*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700243 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700244 int /*timeout_ms*/));
245 MOCK_METHOD3(GetExampleAsync,
246 void(const base::Callback<void(const std::string& /*result*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700247 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700248 int /*timeout_ms*/));
249 MOCK_METHOD3(GetInterfaces,
250 bool(std::string* /*out_result*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700251 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700252 int /*timeout_ms*/));
253 MOCK_METHOD3(GetInterfacesAsync,
254 void(const base::Callback<void(const std::string& /*result*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700255 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700256 int /*timeout_ms*/));
257 MOCK_METHOD4(TestICMP,
258 bool(const std::string& /*in_host*/,
259 std::string* /*out_result*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700260 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700261 int /*timeout_ms*/));
262 MOCK_METHOD4(TestICMPAsync,
263 void(const std::string& /*in_host*/,
264 const base::Callback<void(const std::string& /*result*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700265 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700266 int /*timeout_ms*/));
267 MOCK_METHOD5(TestICMPWithOptions,
268 bool(const std::string& /*in_host*/,
269 const std::map<std::string, std::string>& /*in_options*/,
270 std::string* /*out_result*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700271 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700272 int /*timeout_ms*/));
273 MOCK_METHOD5(TestICMPWithOptionsAsync,
274 void(const std::string& /*in_host*/,
275 const std::map<std::string, std::string>& /*in_options*/,
276 const base::Callback<void(const std::string& /*result*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700277 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700278 int /*timeout_ms*/));
279 MOCK_METHOD4(BatteryFirmware,
280 bool(const std::string& /*in_option*/,
281 std::string* /*out_result*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700282 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700283 int /*timeout_ms*/));
284 MOCK_METHOD4(BatteryFirmwareAsync,
285 void(const std::string& /*in_option*/,
286 const base::Callback<void(const std::string& /*result*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700287 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700288 int /*timeout_ms*/));
289 MOCK_METHOD4(Smartctl,
290 bool(const std::string& /*in_option*/,
291 std::string* /*out_result*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700292 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700293 int /*timeout_ms*/));
294 MOCK_METHOD4(SmartctlAsync,
295 void(const std::string& /*in_option*/,
296 const base::Callback<void(const std::string& /*result*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700297 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700298 int /*timeout_ms*/));
299 MOCK_METHOD5(MemtesterStart,
300 bool(const dbus::FileDescriptor& /*in_outfd*/,
301 uint32_t /*in_memory*/,
302 std::string* /*out_status*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700303 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700304 int /*timeout_ms*/));
305 MOCK_METHOD5(MemtesterStartAsync,
306 void(const dbus::FileDescriptor& /*in_outfd*/,
307 uint32_t /*in_memory*/,
308 const base::Callback<void(const std::string& /*status*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700309 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700310 int /*timeout_ms*/));
311 MOCK_METHOD3(MemtesterStop,
312 bool(const std::string& /*in_handle*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700313 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700314 int /*timeout_ms*/));
315 MOCK_METHOD4(MemtesterStopAsync,
316 void(const std::string& /*in_handle*/,
317 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700318 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700319 int /*timeout_ms*/));
320 MOCK_METHOD4(BadblocksStart,
321 bool(const dbus::FileDescriptor& /*in_outfd*/,
322 std::string* /*out_status*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700323 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700324 int /*timeout_ms*/));
325 MOCK_METHOD4(BadblocksStartAsync,
326 void(const dbus::FileDescriptor& /*in_outfd*/,
327 const base::Callback<void(const std::string& /*status*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700328 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700329 int /*timeout_ms*/));
330 MOCK_METHOD3(BadblocksStop,
331 bool(const std::string& /*in_handle*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700332 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700333 int /*timeout_ms*/));
334 MOCK_METHOD4(BadblocksStopAsync,
335 void(const std::string& /*in_handle*/,
336 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700337 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700338 int /*timeout_ms*/));
339 MOCK_METHOD6(PacketCaptureStart,
340 bool(const dbus::FileDescriptor& /*in_statfd*/,
341 const dbus::FileDescriptor& /*in_outfd*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700342 const brillo::VariantDictionary& /*in_options*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700343 std::string* /*out_handle*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700344 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700345 int /*timeout_ms*/));
346 MOCK_METHOD6(PacketCaptureStartAsync,
347 void(const dbus::FileDescriptor& /*in_statfd*/,
348 const dbus::FileDescriptor& /*in_outfd*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700349 const brillo::VariantDictionary& /*in_options*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700350 const base::Callback<void(const std::string& /*handle*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700351 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700352 int /*timeout_ms*/));
353 MOCK_METHOD3(PacketCaptureStop,
354 bool(const std::string& /*in_handle*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700355 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700356 int /*timeout_ms*/));
357 MOCK_METHOD4(PacketCaptureStopAsync,
358 void(const std::string& /*in_handle*/,
359 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700360 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700361 int /*timeout_ms*/));
362 MOCK_METHOD2(LogKernelTaskStates,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700363 bool(brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700364 int /*timeout_ms*/));
365 MOCK_METHOD3(LogKernelTaskStatesAsync,
366 void(const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700367 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700368 int /*timeout_ms*/));
369 MOCK_METHOD2(UploadCrashes,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700370 bool(brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700371 int /*timeout_ms*/));
372 MOCK_METHOD3(UploadCrashesAsync,
373 void(const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700374 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700375 int /*timeout_ms*/));
376 MOCK_METHOD2(RemoveRootfsVerification,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700377 bool(brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700378 int /*timeout_ms*/));
379 MOCK_METHOD3(RemoveRootfsVerificationAsync,
380 void(const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700381 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700382 int /*timeout_ms*/));
383 MOCK_METHOD2(EnableBootFromUsb,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700384 bool(brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700385 int /*timeout_ms*/));
386 MOCK_METHOD3(EnableBootFromUsbAsync,
387 void(const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700388 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700389 int /*timeout_ms*/));
390 MOCK_METHOD2(ConfigureSshServer,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700391 bool(brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700392 int /*timeout_ms*/));
393 MOCK_METHOD3(ConfigureSshServerAsync,
394 void(const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700395 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700396 int /*timeout_ms*/));
397 MOCK_METHOD4(SetUserPassword,
398 bool(const std::string& /*in_username*/,
399 const std::string& /*in_password*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700400 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700401 int /*timeout_ms*/));
402 MOCK_METHOD5(SetUserPasswordAsync,
403 void(const std::string& /*in_username*/,
404 const std::string& /*in_password*/,
405 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700406 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700407 int /*timeout_ms*/));
408 MOCK_METHOD2(EnableChromeRemoteDebugging,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700409 bool(brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700410 int /*timeout_ms*/));
411 MOCK_METHOD3(EnableChromeRemoteDebuggingAsync,
412 void(const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700413 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700414 int /*timeout_ms*/));
415 MOCK_METHOD3(EnableChromeDevFeatures,
416 bool(const std::string& /*in_root_password*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700417 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700418 int /*timeout_ms*/));
419 MOCK_METHOD4(EnableChromeDevFeaturesAsync,
420 void(const std::string& /*in_root_password*/,
421 const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700422 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700423 int /*timeout_ms*/));
424 MOCK_METHOD3(QueryDevFeatures,
425 bool(int32_t* /*out_features*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700426 brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700427 int /*timeout_ms*/));
428 MOCK_METHOD3(QueryDevFeaturesAsync,
429 void(const base::Callback<void(int32_t /*features*/)>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700430 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700431 int /*timeout_ms*/));
432 MOCK_METHOD2(EnableDevCoredumpUpload,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700433 bool(brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700434 int /*timeout_ms*/));
435 MOCK_METHOD3(EnableDevCoredumpUploadAsync,
436 void(const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700437 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700438 int /*timeout_ms*/));
439 MOCK_METHOD2(DisableDevCoredumpUpload,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700440 bool(brillo::ErrorPtr* /*error*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700441 int /*timeout_ms*/));
442 MOCK_METHOD3(DisableDevCoredumpUploadAsync,
443 void(const base::Callback<void()>& /*success_callback*/,
Alex Vakulenko3f39d5c2015-10-13 09:27:13 -0700444 const base::Callback<void(brillo::Error*)>& /*error_callback*/,
Alex Deymod5561a52015-09-03 23:17:52 -0700445 int /*timeout_ms*/));
446
447 private:
448 DISALLOW_COPY_AND_ASSIGN(debugdProxyMock);
449};
450} // namespace chromium
451} // namespace org
452
453#endif // ____CHROMEOS_DBUS_BINDING____________________BUILD_LINK_VAR_CACHE_PORTAGE_CHROMEOS_BASE_DEBUGD_CLIENT_OUT_DEFAULT_GEN_INCLUDE_DEBUGD_DBUS_PROXY_MOCKS_H