Alex Deymo | d5561a5 | 2015-09-03 23:17:52 -0700 | [diff] [blame^] | 1 | // Automatic generation of D-Bus interface mock proxies for: |
| 2 | // - org.chromium.flimflam.Device |
| 3 | // - org.chromium.flimflam.IPConfig |
| 4 | // - org.chromium.flimflam.Manager |
| 5 | // - org.chromium.flimflam.Profile |
| 6 | // - org.chromium.flimflam.Service |
| 7 | // - org.chromium.flimflam.Task |
| 8 | // - org.chromium.flimflam.ThirdPartyVpn |
| 9 | #ifndef ____CHROMEOS_DBUS_BINDING___BUILD_LINK_VAR_CACHE_PORTAGE_CHROMEOS_BASE_SHILL_OUT_DEFAULT_GEN_INCLUDE_SHILL_DBUS_PROXY_MOCKS_H |
| 10 | #define ____CHROMEOS_DBUS_BINDING___BUILD_LINK_VAR_CACHE_PORTAGE_CHROMEOS_BASE_SHILL_OUT_DEFAULT_GEN_INCLUDE_SHILL_DBUS_PROXY_MOCKS_H |
| 11 | #include <string> |
| 12 | #include <vector> |
| 13 | |
| 14 | #include <base/callback_forward.h> |
| 15 | #include <base/logging.h> |
| 16 | #include <base/macros.h> |
| 17 | #include <chromeos/any.h> |
| 18 | #include <chromeos/errors/error.h> |
| 19 | #include <chromeos/variant_dictionary.h> |
| 20 | #include <gmock/gmock.h> |
| 21 | |
| 22 | #include "shill/dbus-proxies.h" |
| 23 | |
| 24 | namespace org { |
| 25 | namespace chromium { |
| 26 | namespace flimflam { |
| 27 | |
| 28 | // Mock object for DeviceProxyInterface. |
| 29 | class DeviceProxyMock : public DeviceProxyInterface { |
| 30 | public: |
| 31 | DeviceProxyMock() = default; |
| 32 | |
| 33 | MOCK_METHOD3(AddWakeOnPacketConnection, |
| 34 | bool(const std::string& /*in_ip_endpoint*/, |
| 35 | chromeos::ErrorPtr* /*error*/, |
| 36 | int /*timeout_ms*/)); |
| 37 | MOCK_METHOD4(AddWakeOnPacketConnectionAsync, |
| 38 | void(const std::string& /*in_ip_endpoint*/, |
| 39 | const base::Callback<void()>& /*success_callback*/, |
| 40 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 41 | int /*timeout_ms*/)); |
| 42 | MOCK_METHOD3(RemoveWakeOnPacketConnection, |
| 43 | bool(const std::string& /*in_ip_endpoint*/, |
| 44 | chromeos::ErrorPtr* /*error*/, |
| 45 | int /*timeout_ms*/)); |
| 46 | MOCK_METHOD4(RemoveWakeOnPacketConnectionAsync, |
| 47 | void(const std::string& /*in_ip_endpoint*/, |
| 48 | const base::Callback<void()>& /*success_callback*/, |
| 49 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 50 | int /*timeout_ms*/)); |
| 51 | MOCK_METHOD2(RemoveAllWakeOnPacketConnections, |
| 52 | bool(chromeos::ErrorPtr* /*error*/, |
| 53 | int /*timeout_ms*/)); |
| 54 | MOCK_METHOD3(RemoveAllWakeOnPacketConnectionsAsync, |
| 55 | void(const base::Callback<void()>& /*success_callback*/, |
| 56 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 57 | int /*timeout_ms*/)); |
| 58 | MOCK_METHOD3(GetProperties, |
| 59 | bool(chromeos::VariantDictionary*, |
| 60 | chromeos::ErrorPtr* /*error*/, |
| 61 | int /*timeout_ms*/)); |
| 62 | MOCK_METHOD3(GetPropertiesAsync, |
| 63 | void(const base::Callback<void(const chromeos::VariantDictionary&)>& /*success_callback*/, |
| 64 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 65 | int /*timeout_ms*/)); |
| 66 | MOCK_METHOD4(SetProperty, |
| 67 | bool(const std::string&, |
| 68 | const chromeos::Any&, |
| 69 | chromeos::ErrorPtr* /*error*/, |
| 70 | int /*timeout_ms*/)); |
| 71 | MOCK_METHOD5(SetPropertyAsync, |
| 72 | void(const std::string&, |
| 73 | const chromeos::Any&, |
| 74 | const base::Callback<void()>& /*success_callback*/, |
| 75 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 76 | int /*timeout_ms*/)); |
| 77 | MOCK_METHOD3(ClearProperty, |
| 78 | bool(const std::string&, |
| 79 | chromeos::ErrorPtr* /*error*/, |
| 80 | int /*timeout_ms*/)); |
| 81 | MOCK_METHOD4(ClearPropertyAsync, |
| 82 | void(const std::string&, |
| 83 | const base::Callback<void()>& /*success_callback*/, |
| 84 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 85 | int /*timeout_ms*/)); |
| 86 | MOCK_METHOD2(Enable, |
| 87 | bool(chromeos::ErrorPtr* /*error*/, |
| 88 | int /*timeout_ms*/)); |
| 89 | MOCK_METHOD3(EnableAsync, |
| 90 | void(const base::Callback<void()>& /*success_callback*/, |
| 91 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 92 | int /*timeout_ms*/)); |
| 93 | MOCK_METHOD2(Disable, |
| 94 | bool(chromeos::ErrorPtr* /*error*/, |
| 95 | int /*timeout_ms*/)); |
| 96 | MOCK_METHOD3(DisableAsync, |
| 97 | void(const base::Callback<void()>& /*success_callback*/, |
| 98 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 99 | int /*timeout_ms*/)); |
| 100 | MOCK_METHOD2(ProposeScan, |
| 101 | bool(chromeos::ErrorPtr* /*error*/, |
| 102 | int /*timeout_ms*/)); |
| 103 | MOCK_METHOD3(ProposeScanAsync, |
| 104 | void(const base::Callback<void()>& /*success_callback*/, |
| 105 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 106 | int /*timeout_ms*/)); |
| 107 | MOCK_METHOD4(AddIPConfig, |
| 108 | bool(const std::string&, |
| 109 | dbus::ObjectPath*, |
| 110 | chromeos::ErrorPtr* /*error*/, |
| 111 | int /*timeout_ms*/)); |
| 112 | MOCK_METHOD4(AddIPConfigAsync, |
| 113 | void(const std::string&, |
| 114 | const base::Callback<void(const dbus::ObjectPath&)>& /*success_callback*/, |
| 115 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 116 | int /*timeout_ms*/)); |
| 117 | MOCK_METHOD3(Register, |
| 118 | bool(const std::string&, |
| 119 | chromeos::ErrorPtr* /*error*/, |
| 120 | int /*timeout_ms*/)); |
| 121 | MOCK_METHOD4(RegisterAsync, |
| 122 | void(const std::string&, |
| 123 | const base::Callback<void()>& /*success_callback*/, |
| 124 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 125 | int /*timeout_ms*/)); |
| 126 | MOCK_METHOD4(RequirePin, |
| 127 | bool(const std::string&, |
| 128 | bool, |
| 129 | chromeos::ErrorPtr* /*error*/, |
| 130 | int /*timeout_ms*/)); |
| 131 | MOCK_METHOD5(RequirePinAsync, |
| 132 | void(const std::string&, |
| 133 | bool, |
| 134 | const base::Callback<void()>& /*success_callback*/, |
| 135 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 136 | int /*timeout_ms*/)); |
| 137 | MOCK_METHOD3(EnterPin, |
| 138 | bool(const std::string&, |
| 139 | chromeos::ErrorPtr* /*error*/, |
| 140 | int /*timeout_ms*/)); |
| 141 | MOCK_METHOD4(EnterPinAsync, |
| 142 | void(const std::string&, |
| 143 | const base::Callback<void()>& /*success_callback*/, |
| 144 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 145 | int /*timeout_ms*/)); |
| 146 | MOCK_METHOD4(UnblockPin, |
| 147 | bool(const std::string&, |
| 148 | const std::string&, |
| 149 | chromeos::ErrorPtr* /*error*/, |
| 150 | int /*timeout_ms*/)); |
| 151 | MOCK_METHOD5(UnblockPinAsync, |
| 152 | void(const std::string&, |
| 153 | const std::string&, |
| 154 | const base::Callback<void()>& /*success_callback*/, |
| 155 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 156 | int /*timeout_ms*/)); |
| 157 | MOCK_METHOD4(ChangePin, |
| 158 | bool(const std::string&, |
| 159 | const std::string&, |
| 160 | chromeos::ErrorPtr* /*error*/, |
| 161 | int /*timeout_ms*/)); |
| 162 | MOCK_METHOD5(ChangePinAsync, |
| 163 | void(const std::string&, |
| 164 | const std::string&, |
| 165 | const base::Callback<void()>& /*success_callback*/, |
| 166 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 167 | int /*timeout_ms*/)); |
| 168 | MOCK_METHOD5(PerformTDLSOperation, |
| 169 | bool(const std::string&, |
| 170 | const std::string&, |
| 171 | std::string*, |
| 172 | chromeos::ErrorPtr* /*error*/, |
| 173 | int /*timeout_ms*/)); |
| 174 | MOCK_METHOD5(PerformTDLSOperationAsync, |
| 175 | void(const std::string&, |
| 176 | const std::string&, |
| 177 | const base::Callback<void(const std::string&)>& /*success_callback*/, |
| 178 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 179 | int /*timeout_ms*/)); |
| 180 | MOCK_METHOD2(Reset, |
| 181 | bool(chromeos::ErrorPtr* /*error*/, |
| 182 | int /*timeout_ms*/)); |
| 183 | MOCK_METHOD3(ResetAsync, |
| 184 | void(const base::Callback<void()>& /*success_callback*/, |
| 185 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 186 | int /*timeout_ms*/)); |
| 187 | MOCK_METHOD2(ResetByteCounters, |
| 188 | bool(chromeos::ErrorPtr* /*error*/, |
| 189 | int /*timeout_ms*/)); |
| 190 | MOCK_METHOD3(ResetByteCountersAsync, |
| 191 | void(const base::Callback<void()>& /*success_callback*/, |
| 192 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 193 | int /*timeout_ms*/)); |
| 194 | MOCK_METHOD3(SetCarrier, |
| 195 | bool(const std::string&, |
| 196 | chromeos::ErrorPtr* /*error*/, |
| 197 | int /*timeout_ms*/)); |
| 198 | MOCK_METHOD4(SetCarrierAsync, |
| 199 | void(const std::string&, |
| 200 | const base::Callback<void()>& /*success_callback*/, |
| 201 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 202 | int /*timeout_ms*/)); |
| 203 | MOCK_METHOD3(RequestRoam, |
| 204 | bool(const std::string&, |
| 205 | chromeos::ErrorPtr* /*error*/, |
| 206 | int /*timeout_ms*/)); |
| 207 | MOCK_METHOD4(RequestRoamAsync, |
| 208 | void(const std::string&, |
| 209 | const base::Callback<void()>& /*success_callback*/, |
| 210 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 211 | int /*timeout_ms*/)); |
| 212 | MOCK_METHOD2(RegisterPropertyChangedSignalHandler, |
| 213 | void(const base::Callback<void(const std::string&, |
| 214 | const chromeos::Any&)>& /*signal_callback*/, |
| 215 | dbus::ObjectProxy::OnConnectedCallback /*on_connected_callback*/)); |
| 216 | |
| 217 | private: |
| 218 | DISALLOW_COPY_AND_ASSIGN(DeviceProxyMock); |
| 219 | }; |
| 220 | } // namespace flimflam |
| 221 | } // namespace chromium |
| 222 | } // namespace org |
| 223 | |
| 224 | namespace org { |
| 225 | namespace chromium { |
| 226 | namespace flimflam { |
| 227 | |
| 228 | // Mock object for IPConfigProxyInterface. |
| 229 | class IPConfigProxyMock : public IPConfigProxyInterface { |
| 230 | public: |
| 231 | IPConfigProxyMock() = default; |
| 232 | |
| 233 | MOCK_METHOD3(GetProperties, |
| 234 | bool(chromeos::VariantDictionary*, |
| 235 | chromeos::ErrorPtr* /*error*/, |
| 236 | int /*timeout_ms*/)); |
| 237 | MOCK_METHOD3(GetPropertiesAsync, |
| 238 | void(const base::Callback<void(const chromeos::VariantDictionary&)>& /*success_callback*/, |
| 239 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 240 | int /*timeout_ms*/)); |
| 241 | MOCK_METHOD4(SetProperty, |
| 242 | bool(const std::string&, |
| 243 | const chromeos::Any&, |
| 244 | chromeos::ErrorPtr* /*error*/, |
| 245 | int /*timeout_ms*/)); |
| 246 | MOCK_METHOD5(SetPropertyAsync, |
| 247 | void(const std::string&, |
| 248 | const chromeos::Any&, |
| 249 | const base::Callback<void()>& /*success_callback*/, |
| 250 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 251 | int /*timeout_ms*/)); |
| 252 | MOCK_METHOD3(ClearProperty, |
| 253 | bool(const std::string&, |
| 254 | chromeos::ErrorPtr* /*error*/, |
| 255 | int /*timeout_ms*/)); |
| 256 | MOCK_METHOD4(ClearPropertyAsync, |
| 257 | void(const std::string&, |
| 258 | const base::Callback<void()>& /*success_callback*/, |
| 259 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 260 | int /*timeout_ms*/)); |
| 261 | MOCK_METHOD2(Remove, |
| 262 | bool(chromeos::ErrorPtr* /*error*/, |
| 263 | int /*timeout_ms*/)); |
| 264 | MOCK_METHOD3(RemoveAsync, |
| 265 | void(const base::Callback<void()>& /*success_callback*/, |
| 266 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 267 | int /*timeout_ms*/)); |
| 268 | MOCK_METHOD2(Refresh, |
| 269 | bool(chromeos::ErrorPtr* /*error*/, |
| 270 | int /*timeout_ms*/)); |
| 271 | MOCK_METHOD3(RefreshAsync, |
| 272 | void(const base::Callback<void()>& /*success_callback*/, |
| 273 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 274 | int /*timeout_ms*/)); |
| 275 | MOCK_METHOD2(RegisterPropertyChangedSignalHandler, |
| 276 | void(const base::Callback<void(const std::string&, |
| 277 | const chromeos::Any&)>& /*signal_callback*/, |
| 278 | dbus::ObjectProxy::OnConnectedCallback /*on_connected_callback*/)); |
| 279 | |
| 280 | private: |
| 281 | DISALLOW_COPY_AND_ASSIGN(IPConfigProxyMock); |
| 282 | }; |
| 283 | } // namespace flimflam |
| 284 | } // namespace chromium |
| 285 | } // namespace org |
| 286 | |
| 287 | namespace org { |
| 288 | namespace chromium { |
| 289 | namespace flimflam { |
| 290 | |
| 291 | // Mock object for ManagerProxyInterface. |
| 292 | class ManagerProxyMock : public ManagerProxyInterface { |
| 293 | public: |
| 294 | ManagerProxyMock() = default; |
| 295 | |
| 296 | MOCK_METHOD3(GetProperties, |
| 297 | bool(chromeos::VariantDictionary*, |
| 298 | chromeos::ErrorPtr* /*error*/, |
| 299 | int /*timeout_ms*/)); |
| 300 | MOCK_METHOD3(GetPropertiesAsync, |
| 301 | void(const base::Callback<void(const chromeos::VariantDictionary&)>& /*success_callback*/, |
| 302 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 303 | int /*timeout_ms*/)); |
| 304 | MOCK_METHOD4(SetProperty, |
| 305 | bool(const std::string&, |
| 306 | const chromeos::Any&, |
| 307 | chromeos::ErrorPtr* /*error*/, |
| 308 | int /*timeout_ms*/)); |
| 309 | MOCK_METHOD5(SetPropertyAsync, |
| 310 | void(const std::string&, |
| 311 | const chromeos::Any&, |
| 312 | const base::Callback<void()>& /*success_callback*/, |
| 313 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 314 | int /*timeout_ms*/)); |
| 315 | MOCK_METHOD3(GetState, |
| 316 | bool(std::string*, |
| 317 | chromeos::ErrorPtr* /*error*/, |
| 318 | int /*timeout_ms*/)); |
| 319 | MOCK_METHOD3(GetStateAsync, |
| 320 | void(const base::Callback<void(const std::string&)>& /*success_callback*/, |
| 321 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 322 | int /*timeout_ms*/)); |
| 323 | MOCK_METHOD4(CreateProfile, |
| 324 | bool(const std::string&, |
| 325 | dbus::ObjectPath*, |
| 326 | chromeos::ErrorPtr* /*error*/, |
| 327 | int /*timeout_ms*/)); |
| 328 | MOCK_METHOD4(CreateProfileAsync, |
| 329 | void(const std::string&, |
| 330 | const base::Callback<void(const dbus::ObjectPath&)>& /*success_callback*/, |
| 331 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 332 | int /*timeout_ms*/)); |
| 333 | MOCK_METHOD3(RemoveProfile, |
| 334 | bool(const std::string&, |
| 335 | chromeos::ErrorPtr* /*error*/, |
| 336 | int /*timeout_ms*/)); |
| 337 | MOCK_METHOD4(RemoveProfileAsync, |
| 338 | void(const std::string&, |
| 339 | const base::Callback<void()>& /*success_callback*/, |
| 340 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 341 | int /*timeout_ms*/)); |
| 342 | MOCK_METHOD4(PushProfile, |
| 343 | bool(const std::string&, |
| 344 | dbus::ObjectPath*, |
| 345 | chromeos::ErrorPtr* /*error*/, |
| 346 | int /*timeout_ms*/)); |
| 347 | MOCK_METHOD4(PushProfileAsync, |
| 348 | void(const std::string&, |
| 349 | const base::Callback<void(const dbus::ObjectPath&)>& /*success_callback*/, |
| 350 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 351 | int /*timeout_ms*/)); |
| 352 | MOCK_METHOD5(InsertUserProfile, |
| 353 | bool(const std::string&, |
| 354 | const std::string&, |
| 355 | dbus::ObjectPath*, |
| 356 | chromeos::ErrorPtr* /*error*/, |
| 357 | int /*timeout_ms*/)); |
| 358 | MOCK_METHOD5(InsertUserProfileAsync, |
| 359 | void(const std::string&, |
| 360 | const std::string&, |
| 361 | const base::Callback<void(const dbus::ObjectPath&)>& /*success_callback*/, |
| 362 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 363 | int /*timeout_ms*/)); |
| 364 | MOCK_METHOD3(PopProfile, |
| 365 | bool(const std::string&, |
| 366 | chromeos::ErrorPtr* /*error*/, |
| 367 | int /*timeout_ms*/)); |
| 368 | MOCK_METHOD4(PopProfileAsync, |
| 369 | void(const std::string&, |
| 370 | const base::Callback<void()>& /*success_callback*/, |
| 371 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 372 | int /*timeout_ms*/)); |
| 373 | MOCK_METHOD2(PopAnyProfile, |
| 374 | bool(chromeos::ErrorPtr* /*error*/, |
| 375 | int /*timeout_ms*/)); |
| 376 | MOCK_METHOD3(PopAnyProfileAsync, |
| 377 | void(const base::Callback<void()>& /*success_callback*/, |
| 378 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 379 | int /*timeout_ms*/)); |
| 380 | MOCK_METHOD2(PopAllUserProfiles, |
| 381 | bool(chromeos::ErrorPtr* /*error*/, |
| 382 | int /*timeout_ms*/)); |
| 383 | MOCK_METHOD3(PopAllUserProfilesAsync, |
| 384 | void(const base::Callback<void()>& /*success_callback*/, |
| 385 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 386 | int /*timeout_ms*/)); |
| 387 | MOCK_METHOD2(RecheckPortal, |
| 388 | bool(chromeos::ErrorPtr* /*error*/, |
| 389 | int /*timeout_ms*/)); |
| 390 | MOCK_METHOD3(RecheckPortalAsync, |
| 391 | void(const base::Callback<void()>& /*success_callback*/, |
| 392 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 393 | int /*timeout_ms*/)); |
| 394 | MOCK_METHOD3(RequestScan, |
| 395 | bool(const std::string&, |
| 396 | chromeos::ErrorPtr* /*error*/, |
| 397 | int /*timeout_ms*/)); |
| 398 | MOCK_METHOD4(RequestScanAsync, |
| 399 | void(const std::string&, |
| 400 | const base::Callback<void()>& /*success_callback*/, |
| 401 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 402 | int /*timeout_ms*/)); |
| 403 | MOCK_METHOD3(EnableTechnology, |
| 404 | bool(const std::string&, |
| 405 | chromeos::ErrorPtr* /*error*/, |
| 406 | int /*timeout_ms*/)); |
| 407 | MOCK_METHOD4(EnableTechnologyAsync, |
| 408 | void(const std::string&, |
| 409 | const base::Callback<void()>& /*success_callback*/, |
| 410 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 411 | int /*timeout_ms*/)); |
| 412 | MOCK_METHOD3(DisableTechnology, |
| 413 | bool(const std::string&, |
| 414 | chromeos::ErrorPtr* /*error*/, |
| 415 | int /*timeout_ms*/)); |
| 416 | MOCK_METHOD4(DisableTechnologyAsync, |
| 417 | void(const std::string&, |
| 418 | const base::Callback<void()>& /*success_callback*/, |
| 419 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 420 | int /*timeout_ms*/)); |
| 421 | MOCK_METHOD4(GetService, |
| 422 | bool(const chromeos::VariantDictionary&, |
| 423 | dbus::ObjectPath*, |
| 424 | chromeos::ErrorPtr* /*error*/, |
| 425 | int /*timeout_ms*/)); |
| 426 | MOCK_METHOD4(GetServiceAsync, |
| 427 | void(const chromeos::VariantDictionary&, |
| 428 | const base::Callback<void(const dbus::ObjectPath&)>& /*success_callback*/, |
| 429 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 430 | int /*timeout_ms*/)); |
| 431 | MOCK_METHOD4(GetWifiService, |
| 432 | bool(const chromeos::VariantDictionary&, |
| 433 | dbus::ObjectPath*, |
| 434 | chromeos::ErrorPtr* /*error*/, |
| 435 | int /*timeout_ms*/)); |
| 436 | MOCK_METHOD4(GetWifiServiceAsync, |
| 437 | void(const chromeos::VariantDictionary&, |
| 438 | const base::Callback<void(const dbus::ObjectPath&)>& /*success_callback*/, |
| 439 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 440 | int /*timeout_ms*/)); |
| 441 | MOCK_METHOD4(ConfigureService, |
| 442 | bool(const chromeos::VariantDictionary&, |
| 443 | dbus::ObjectPath*, |
| 444 | chromeos::ErrorPtr* /*error*/, |
| 445 | int /*timeout_ms*/)); |
| 446 | MOCK_METHOD4(ConfigureServiceAsync, |
| 447 | void(const chromeos::VariantDictionary&, |
| 448 | const base::Callback<void(const dbus::ObjectPath&)>& /*success_callback*/, |
| 449 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 450 | int /*timeout_ms*/)); |
| 451 | MOCK_METHOD5(ConfigureServiceForProfile, |
| 452 | bool(const dbus::ObjectPath&, |
| 453 | const chromeos::VariantDictionary&, |
| 454 | dbus::ObjectPath*, |
| 455 | chromeos::ErrorPtr* /*error*/, |
| 456 | int /*timeout_ms*/)); |
| 457 | MOCK_METHOD5(ConfigureServiceForProfileAsync, |
| 458 | void(const dbus::ObjectPath&, |
| 459 | const chromeos::VariantDictionary&, |
| 460 | const base::Callback<void(const dbus::ObjectPath&)>& /*success_callback*/, |
| 461 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 462 | int /*timeout_ms*/)); |
| 463 | MOCK_METHOD4(FindMatchingService, |
| 464 | bool(const chromeos::VariantDictionary&, |
| 465 | dbus::ObjectPath*, |
| 466 | chromeos::ErrorPtr* /*error*/, |
| 467 | int /*timeout_ms*/)); |
| 468 | MOCK_METHOD4(FindMatchingServiceAsync, |
| 469 | void(const chromeos::VariantDictionary&, |
| 470 | const base::Callback<void(const dbus::ObjectPath&)>& /*success_callback*/, |
| 471 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 472 | int /*timeout_ms*/)); |
| 473 | MOCK_METHOD4(GetVPNService, |
| 474 | bool(const chromeos::VariantDictionary&, |
| 475 | dbus::ObjectPath*, |
| 476 | chromeos::ErrorPtr* /*error*/, |
| 477 | int /*timeout_ms*/)); |
| 478 | MOCK_METHOD4(GetVPNServiceAsync, |
| 479 | void(const chromeos::VariantDictionary&, |
| 480 | const base::Callback<void(const dbus::ObjectPath&)>& /*success_callback*/, |
| 481 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 482 | int /*timeout_ms*/)); |
| 483 | MOCK_METHOD3(GetDebugLevel, |
| 484 | bool(int32_t*, |
| 485 | chromeos::ErrorPtr* /*error*/, |
| 486 | int /*timeout_ms*/)); |
| 487 | MOCK_METHOD3(GetDebugLevelAsync, |
| 488 | void(const base::Callback<void(int32_t)>& /*success_callback*/, |
| 489 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 490 | int /*timeout_ms*/)); |
| 491 | MOCK_METHOD3(SetDebugLevel, |
| 492 | bool(int32_t, |
| 493 | chromeos::ErrorPtr* /*error*/, |
| 494 | int /*timeout_ms*/)); |
| 495 | MOCK_METHOD4(SetDebugLevelAsync, |
| 496 | void(int32_t, |
| 497 | const base::Callback<void()>& /*success_callback*/, |
| 498 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 499 | int /*timeout_ms*/)); |
| 500 | MOCK_METHOD3(GetServiceOrder, |
| 501 | bool(std::string*, |
| 502 | chromeos::ErrorPtr* /*error*/, |
| 503 | int /*timeout_ms*/)); |
| 504 | MOCK_METHOD3(GetServiceOrderAsync, |
| 505 | void(const base::Callback<void(const std::string&)>& /*success_callback*/, |
| 506 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 507 | int /*timeout_ms*/)); |
| 508 | MOCK_METHOD3(SetServiceOrder, |
| 509 | bool(const std::string&, |
| 510 | chromeos::ErrorPtr* /*error*/, |
| 511 | int /*timeout_ms*/)); |
| 512 | MOCK_METHOD4(SetServiceOrderAsync, |
| 513 | void(const std::string&, |
| 514 | const base::Callback<void()>& /*success_callback*/, |
| 515 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 516 | int /*timeout_ms*/)); |
| 517 | MOCK_METHOD3(GetDebugTags, |
| 518 | bool(std::string*, |
| 519 | chromeos::ErrorPtr* /*error*/, |
| 520 | int /*timeout_ms*/)); |
| 521 | MOCK_METHOD3(GetDebugTagsAsync, |
| 522 | void(const base::Callback<void(const std::string&)>& /*success_callback*/, |
| 523 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 524 | int /*timeout_ms*/)); |
| 525 | MOCK_METHOD3(SetDebugTags, |
| 526 | bool(const std::string&, |
| 527 | chromeos::ErrorPtr* /*error*/, |
| 528 | int /*timeout_ms*/)); |
| 529 | MOCK_METHOD4(SetDebugTagsAsync, |
| 530 | void(const std::string&, |
| 531 | const base::Callback<void()>& /*success_callback*/, |
| 532 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 533 | int /*timeout_ms*/)); |
| 534 | MOCK_METHOD3(ListDebugTags, |
| 535 | bool(std::string*, |
| 536 | chromeos::ErrorPtr* /*error*/, |
| 537 | int /*timeout_ms*/)); |
| 538 | MOCK_METHOD3(ListDebugTagsAsync, |
| 539 | void(const base::Callback<void(const std::string&)>& /*success_callback*/, |
| 540 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 541 | int /*timeout_ms*/)); |
| 542 | MOCK_METHOD3(GetNetworksForGeolocation, |
| 543 | bool(chromeos::VariantDictionary*, |
| 544 | chromeos::ErrorPtr* /*error*/, |
| 545 | int /*timeout_ms*/)); |
| 546 | MOCK_METHOD3(GetNetworksForGeolocationAsync, |
| 547 | void(const base::Callback<void(const chromeos::VariantDictionary&)>& /*success_callback*/, |
| 548 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 549 | int /*timeout_ms*/)); |
| 550 | MOCK_METHOD10(VerifyDestination, |
| 551 | bool(const std::string& /*in_certificate*/, |
| 552 | const std::string& /*in_public_key*/, |
| 553 | const std::string& /*in_nonce*/, |
| 554 | const std::string& /*in_signed_data*/, |
| 555 | const std::string& /*in_destination_udn*/, |
| 556 | const std::string& /*in_hotspot_ssid*/, |
| 557 | const std::string& /*in_hotspot_bssid*/, |
| 558 | bool*, |
| 559 | chromeos::ErrorPtr* /*error*/, |
| 560 | int /*timeout_ms*/)); |
| 561 | MOCK_METHOD10(VerifyDestinationAsync, |
| 562 | void(const std::string& /*in_certificate*/, |
| 563 | const std::string& /*in_public_key*/, |
| 564 | const std::string& /*in_nonce*/, |
| 565 | const std::string& /*in_signed_data*/, |
| 566 | const std::string& /*in_destination_udn*/, |
| 567 | const std::string& /*in_hotspot_ssid*/, |
| 568 | const std::string& /*in_hotspot_bssid*/, |
| 569 | const base::Callback<void(bool)>& /*success_callback*/, |
| 570 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 571 | int /*timeout_ms*/)); |
| 572 | bool VerifyAndEncryptCredentials(const std::string& /*in_certificate*/, |
| 573 | const std::string& /*in_public_key*/, |
| 574 | const std::string& /*in_nonce*/, |
| 575 | const std::string& /*in_signed_data*/, |
| 576 | const std::string& /*in_destination_udn*/, |
| 577 | const std::string& /*in_hotspot_ssid*/, |
| 578 | const std::string& /*in_hotspot_bssid*/, |
| 579 | const dbus::ObjectPath& /*in_network*/, |
| 580 | std::string*, |
| 581 | chromeos::ErrorPtr* /*error*/, |
| 582 | int /*timeout_ms*/) override { |
| 583 | LOG(WARNING) << "VerifyAndEncryptCredentials(): gmock can't handle methods with 11 arguments. You can override this method in a subclass if you need to."; |
| 584 | return false; |
| 585 | } |
| 586 | void VerifyAndEncryptCredentialsAsync(const std::string& /*in_certificate*/, |
| 587 | const std::string& /*in_public_key*/, |
| 588 | const std::string& /*in_nonce*/, |
| 589 | const std::string& /*in_signed_data*/, |
| 590 | const std::string& /*in_destination_udn*/, |
| 591 | const std::string& /*in_hotspot_ssid*/, |
| 592 | const std::string& /*in_hotspot_bssid*/, |
| 593 | const dbus::ObjectPath& /*in_network*/, |
| 594 | const base::Callback<void(const std::string&)>& /*success_callback*/, |
| 595 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 596 | int /*timeout_ms*/) override { |
| 597 | LOG(WARNING) << "VerifyAndEncryptCredentialsAsync(): gmock can't handle methods with 11 arguments. You can override this method in a subclass if you need to."; |
| 598 | } |
| 599 | bool VerifyAndEncryptData(const std::string& /*in_certificate*/, |
| 600 | const std::string& /*in_public_key*/, |
| 601 | const std::string& /*in_nonce*/, |
| 602 | const std::string& /*in_signed_data*/, |
| 603 | const std::string& /*in_destination_udn*/, |
| 604 | const std::string& /*in_hotspot_ssid*/, |
| 605 | const std::string& /*in_hotspot_bssid*/, |
| 606 | const std::string& /*in_data*/, |
| 607 | std::string*, |
| 608 | chromeos::ErrorPtr* /*error*/, |
| 609 | int /*timeout_ms*/) override { |
| 610 | LOG(WARNING) << "VerifyAndEncryptData(): gmock can't handle methods with 11 arguments. You can override this method in a subclass if you need to."; |
| 611 | return false; |
| 612 | } |
| 613 | void VerifyAndEncryptDataAsync(const std::string& /*in_certificate*/, |
| 614 | const std::string& /*in_public_key*/, |
| 615 | const std::string& /*in_nonce*/, |
| 616 | const std::string& /*in_signed_data*/, |
| 617 | const std::string& /*in_destination_udn*/, |
| 618 | const std::string& /*in_hotspot_ssid*/, |
| 619 | const std::string& /*in_hotspot_bssid*/, |
| 620 | const std::string& /*in_data*/, |
| 621 | const base::Callback<void(const std::string&)>& /*success_callback*/, |
| 622 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 623 | int /*timeout_ms*/) override { |
| 624 | LOG(WARNING) << "VerifyAndEncryptDataAsync(): gmock can't handle methods with 11 arguments. You can override this method in a subclass if you need to."; |
| 625 | } |
| 626 | MOCK_METHOD2(ConnectToBestServices, |
| 627 | bool(chromeos::ErrorPtr* /*error*/, |
| 628 | int /*timeout_ms*/)); |
| 629 | MOCK_METHOD3(ConnectToBestServicesAsync, |
| 630 | void(const base::Callback<void()>& /*success_callback*/, |
| 631 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 632 | int /*timeout_ms*/)); |
| 633 | MOCK_METHOD2(CreateConnectivityReport, |
| 634 | bool(chromeos::ErrorPtr* /*error*/, |
| 635 | int /*timeout_ms*/)); |
| 636 | MOCK_METHOD3(CreateConnectivityReportAsync, |
| 637 | void(const base::Callback<void()>& /*success_callback*/, |
| 638 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 639 | int /*timeout_ms*/)); |
| 640 | MOCK_METHOD4(ClaimInterface, |
| 641 | bool(const std::string& /*in_claimer_name*/, |
| 642 | const std::string& /*in_interface_name*/, |
| 643 | chromeos::ErrorPtr* /*error*/, |
| 644 | int /*timeout_ms*/)); |
| 645 | MOCK_METHOD5(ClaimInterfaceAsync, |
| 646 | void(const std::string& /*in_claimer_name*/, |
| 647 | const std::string& /*in_interface_name*/, |
| 648 | const base::Callback<void()>& /*success_callback*/, |
| 649 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 650 | int /*timeout_ms*/)); |
| 651 | MOCK_METHOD4(ReleaseInterface, |
| 652 | bool(const std::string& /*in_claimer_name*/, |
| 653 | const std::string& /*in_interface_name*/, |
| 654 | chromeos::ErrorPtr* /*error*/, |
| 655 | int /*timeout_ms*/)); |
| 656 | MOCK_METHOD5(ReleaseInterfaceAsync, |
| 657 | void(const std::string& /*in_claimer_name*/, |
| 658 | const std::string& /*in_interface_name*/, |
| 659 | const base::Callback<void()>& /*success_callback*/, |
| 660 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 661 | int /*timeout_ms*/)); |
| 662 | MOCK_METHOD3(SetSchedScan, |
| 663 | bool(bool, |
| 664 | chromeos::ErrorPtr* /*error*/, |
| 665 | int /*timeout_ms*/)); |
| 666 | MOCK_METHOD4(SetSchedScanAsync, |
| 667 | void(bool, |
| 668 | const base::Callback<void()>& /*success_callback*/, |
| 669 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 670 | int /*timeout_ms*/)); |
| 671 | MOCK_METHOD2(RegisterPropertyChangedSignalHandler, |
| 672 | void(const base::Callback<void(const std::string&, |
| 673 | const chromeos::Any&)>& /*signal_callback*/, |
| 674 | dbus::ObjectProxy::OnConnectedCallback /*on_connected_callback*/)); |
| 675 | MOCK_METHOD2(RegisterStateChangedSignalHandler, |
| 676 | void(const base::Callback<void(const std::string&)>& /*signal_callback*/, |
| 677 | dbus::ObjectProxy::OnConnectedCallback /*on_connected_callback*/)); |
| 678 | |
| 679 | private: |
| 680 | DISALLOW_COPY_AND_ASSIGN(ManagerProxyMock); |
| 681 | }; |
| 682 | } // namespace flimflam |
| 683 | } // namespace chromium |
| 684 | } // namespace org |
| 685 | |
| 686 | namespace org { |
| 687 | namespace chromium { |
| 688 | namespace flimflam { |
| 689 | |
| 690 | // Mock object for ProfileProxyInterface. |
| 691 | class ProfileProxyMock : public ProfileProxyInterface { |
| 692 | public: |
| 693 | ProfileProxyMock() = default; |
| 694 | |
| 695 | MOCK_METHOD3(GetProperties, |
| 696 | bool(chromeos::VariantDictionary*, |
| 697 | chromeos::ErrorPtr* /*error*/, |
| 698 | int /*timeout_ms*/)); |
| 699 | MOCK_METHOD3(GetPropertiesAsync, |
| 700 | void(const base::Callback<void(const chromeos::VariantDictionary&)>& /*success_callback*/, |
| 701 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 702 | int /*timeout_ms*/)); |
| 703 | MOCK_METHOD4(SetProperty, |
| 704 | bool(const std::string&, |
| 705 | const chromeos::Any&, |
| 706 | chromeos::ErrorPtr* /*error*/, |
| 707 | int /*timeout_ms*/)); |
| 708 | MOCK_METHOD5(SetPropertyAsync, |
| 709 | void(const std::string&, |
| 710 | const chromeos::Any&, |
| 711 | const base::Callback<void()>& /*success_callback*/, |
| 712 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 713 | int /*timeout_ms*/)); |
| 714 | MOCK_METHOD4(GetEntry, |
| 715 | bool(const std::string&, |
| 716 | chromeos::VariantDictionary*, |
| 717 | chromeos::ErrorPtr* /*error*/, |
| 718 | int /*timeout_ms*/)); |
| 719 | MOCK_METHOD4(GetEntryAsync, |
| 720 | void(const std::string&, |
| 721 | const base::Callback<void(const chromeos::VariantDictionary&)>& /*success_callback*/, |
| 722 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 723 | int /*timeout_ms*/)); |
| 724 | MOCK_METHOD3(DeleteEntry, |
| 725 | bool(const std::string&, |
| 726 | chromeos::ErrorPtr* /*error*/, |
| 727 | int /*timeout_ms*/)); |
| 728 | MOCK_METHOD4(DeleteEntryAsync, |
| 729 | void(const std::string&, |
| 730 | const base::Callback<void()>& /*success_callback*/, |
| 731 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 732 | int /*timeout_ms*/)); |
| 733 | MOCK_METHOD2(RegisterPropertyChangedSignalHandler, |
| 734 | void(const base::Callback<void(const std::string&, |
| 735 | const chromeos::Any&)>& /*signal_callback*/, |
| 736 | dbus::ObjectProxy::OnConnectedCallback /*on_connected_callback*/)); |
| 737 | |
| 738 | private: |
| 739 | DISALLOW_COPY_AND_ASSIGN(ProfileProxyMock); |
| 740 | }; |
| 741 | } // namespace flimflam |
| 742 | } // namespace chromium |
| 743 | } // namespace org |
| 744 | |
| 745 | namespace org { |
| 746 | namespace chromium { |
| 747 | namespace flimflam { |
| 748 | |
| 749 | // Mock object for ServiceProxyInterface. |
| 750 | class ServiceProxyMock : public ServiceProxyInterface { |
| 751 | public: |
| 752 | ServiceProxyMock() = default; |
| 753 | |
| 754 | MOCK_METHOD3(GetProperties, |
| 755 | bool(chromeos::VariantDictionary*, |
| 756 | chromeos::ErrorPtr* /*error*/, |
| 757 | int /*timeout_ms*/)); |
| 758 | MOCK_METHOD3(GetPropertiesAsync, |
| 759 | void(const base::Callback<void(const chromeos::VariantDictionary&)>& /*success_callback*/, |
| 760 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 761 | int /*timeout_ms*/)); |
| 762 | MOCK_METHOD4(SetProperty, |
| 763 | bool(const std::string&, |
| 764 | const chromeos::Any&, |
| 765 | chromeos::ErrorPtr* /*error*/, |
| 766 | int /*timeout_ms*/)); |
| 767 | MOCK_METHOD5(SetPropertyAsync, |
| 768 | void(const std::string&, |
| 769 | const chromeos::Any&, |
| 770 | const base::Callback<void()>& /*success_callback*/, |
| 771 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 772 | int /*timeout_ms*/)); |
| 773 | MOCK_METHOD3(SetProperties, |
| 774 | bool(const chromeos::VariantDictionary&, |
| 775 | chromeos::ErrorPtr* /*error*/, |
| 776 | int /*timeout_ms*/)); |
| 777 | MOCK_METHOD4(SetPropertiesAsync, |
| 778 | void(const chromeos::VariantDictionary&, |
| 779 | const base::Callback<void()>& /*success_callback*/, |
| 780 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 781 | int /*timeout_ms*/)); |
| 782 | MOCK_METHOD3(ClearProperty, |
| 783 | bool(const std::string&, |
| 784 | chromeos::ErrorPtr* /*error*/, |
| 785 | int /*timeout_ms*/)); |
| 786 | MOCK_METHOD4(ClearPropertyAsync, |
| 787 | void(const std::string&, |
| 788 | const base::Callback<void()>& /*success_callback*/, |
| 789 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 790 | int /*timeout_ms*/)); |
| 791 | MOCK_METHOD4(ClearProperties, |
| 792 | bool(const std::vector<std::string>&, |
| 793 | std::vector<bool>*, |
| 794 | chromeos::ErrorPtr* /*error*/, |
| 795 | int /*timeout_ms*/)); |
| 796 | MOCK_METHOD4(ClearPropertiesAsync, |
| 797 | void(const std::vector<std::string>&, |
| 798 | const base::Callback<void(const std::vector<bool>&)>& /*success_callback*/, |
| 799 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 800 | int /*timeout_ms*/)); |
| 801 | MOCK_METHOD2(Connect, |
| 802 | bool(chromeos::ErrorPtr* /*error*/, |
| 803 | int /*timeout_ms*/)); |
| 804 | MOCK_METHOD3(ConnectAsync, |
| 805 | void(const base::Callback<void()>& /*success_callback*/, |
| 806 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 807 | int /*timeout_ms*/)); |
| 808 | MOCK_METHOD2(Disconnect, |
| 809 | bool(chromeos::ErrorPtr* /*error*/, |
| 810 | int /*timeout_ms*/)); |
| 811 | MOCK_METHOD3(DisconnectAsync, |
| 812 | void(const base::Callback<void()>& /*success_callback*/, |
| 813 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 814 | int /*timeout_ms*/)); |
| 815 | MOCK_METHOD2(Remove, |
| 816 | bool(chromeos::ErrorPtr* /*error*/, |
| 817 | int /*timeout_ms*/)); |
| 818 | MOCK_METHOD3(RemoveAsync, |
| 819 | void(const base::Callback<void()>& /*success_callback*/, |
| 820 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 821 | int /*timeout_ms*/)); |
| 822 | MOCK_METHOD3(ActivateCellularModem, |
| 823 | bool(const std::string&, |
| 824 | chromeos::ErrorPtr* /*error*/, |
| 825 | int /*timeout_ms*/)); |
| 826 | MOCK_METHOD4(ActivateCellularModemAsync, |
| 827 | void(const std::string&, |
| 828 | const base::Callback<void()>& /*success_callback*/, |
| 829 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 830 | int /*timeout_ms*/)); |
| 831 | MOCK_METHOD2(CompleteCellularActivation, |
| 832 | bool(chromeos::ErrorPtr* /*error*/, |
| 833 | int /*timeout_ms*/)); |
| 834 | MOCK_METHOD3(CompleteCellularActivationAsync, |
| 835 | void(const base::Callback<void()>& /*success_callback*/, |
| 836 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 837 | int /*timeout_ms*/)); |
| 838 | MOCK_METHOD3(GetLoadableProfileEntries, |
| 839 | bool(std::map<dbus::ObjectPath, std::string>*, |
| 840 | chromeos::ErrorPtr* /*error*/, |
| 841 | int /*timeout_ms*/)); |
| 842 | MOCK_METHOD3(GetLoadableProfileEntriesAsync, |
| 843 | void(const base::Callback<void(const std::map<dbus::ObjectPath, std::string>&)>& /*success_callback*/, |
| 844 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 845 | int /*timeout_ms*/)); |
| 846 | MOCK_METHOD2(RegisterPropertyChangedSignalHandler, |
| 847 | void(const base::Callback<void(const std::string&, |
| 848 | const chromeos::Any&)>& /*signal_callback*/, |
| 849 | dbus::ObjectProxy::OnConnectedCallback /*on_connected_callback*/)); |
| 850 | |
| 851 | private: |
| 852 | DISALLOW_COPY_AND_ASSIGN(ServiceProxyMock); |
| 853 | }; |
| 854 | } // namespace flimflam |
| 855 | } // namespace chromium |
| 856 | } // namespace org |
| 857 | |
| 858 | namespace org { |
| 859 | namespace chromium { |
| 860 | namespace flimflam { |
| 861 | |
| 862 | // Mock object for TaskProxyInterface. |
| 863 | class TaskProxyMock : public TaskProxyInterface { |
| 864 | public: |
| 865 | TaskProxyMock() = default; |
| 866 | |
| 867 | MOCK_METHOD4(getsec, |
| 868 | bool(std::string*, |
| 869 | std::string*, |
| 870 | chromeos::ErrorPtr* /*error*/, |
| 871 | int /*timeout_ms*/)); |
| 872 | MOCK_METHOD3(getsecAsync, |
| 873 | void(const base::Callback<void(const std::string&, const std::string&)>& /*success_callback*/, |
| 874 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 875 | int /*timeout_ms*/)); |
| 876 | MOCK_METHOD4(notify, |
| 877 | bool(const std::string&, |
| 878 | const std::map<std::string, std::string>&, |
| 879 | chromeos::ErrorPtr* /*error*/, |
| 880 | int /*timeout_ms*/)); |
| 881 | MOCK_METHOD5(notifyAsync, |
| 882 | void(const std::string&, |
| 883 | const std::map<std::string, std::string>&, |
| 884 | const base::Callback<void()>& /*success_callback*/, |
| 885 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 886 | int /*timeout_ms*/)); |
| 887 | |
| 888 | private: |
| 889 | DISALLOW_COPY_AND_ASSIGN(TaskProxyMock); |
| 890 | }; |
| 891 | } // namespace flimflam |
| 892 | } // namespace chromium |
| 893 | } // namespace org |
| 894 | |
| 895 | namespace org { |
| 896 | namespace chromium { |
| 897 | namespace flimflam { |
| 898 | |
| 899 | // Mock object for ThirdPartyVpnProxyInterface. |
| 900 | class ThirdPartyVpnProxyMock : public ThirdPartyVpnProxyInterface { |
| 901 | public: |
| 902 | ThirdPartyVpnProxyMock() = default; |
| 903 | |
| 904 | MOCK_METHOD4(SetParameters, |
| 905 | bool(const std::map<std::string, std::string>& /*in_parameters*/, |
| 906 | std::string* /*out_warning*/, |
| 907 | chromeos::ErrorPtr* /*error*/, |
| 908 | int /*timeout_ms*/)); |
| 909 | MOCK_METHOD4(SetParametersAsync, |
| 910 | void(const std::map<std::string, std::string>& /*in_parameters*/, |
| 911 | const base::Callback<void(const std::string& /*warning*/)>& /*success_callback*/, |
| 912 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 913 | int /*timeout_ms*/)); |
| 914 | MOCK_METHOD3(UpdateConnectionState, |
| 915 | bool(uint32_t /*in_connection_state*/, |
| 916 | chromeos::ErrorPtr* /*error*/, |
| 917 | int /*timeout_ms*/)); |
| 918 | MOCK_METHOD4(UpdateConnectionStateAsync, |
| 919 | void(uint32_t /*in_connection_state*/, |
| 920 | const base::Callback<void()>& /*success_callback*/, |
| 921 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 922 | int /*timeout_ms*/)); |
| 923 | MOCK_METHOD3(SendPacket, |
| 924 | bool(const std::vector<uint8_t>& /*in_ip_packet*/, |
| 925 | chromeos::ErrorPtr* /*error*/, |
| 926 | int /*timeout_ms*/)); |
| 927 | MOCK_METHOD4(SendPacketAsync, |
| 928 | void(const std::vector<uint8_t>& /*in_ip_packet*/, |
| 929 | const base::Callback<void()>& /*success_callback*/, |
| 930 | const base::Callback<void(chromeos::Error*)>& /*error_callback*/, |
| 931 | int /*timeout_ms*/)); |
| 932 | MOCK_METHOD2(RegisterOnPacketReceivedSignalHandler, |
| 933 | void(const base::Callback<void(const std::vector<uint8_t>&)>& /*signal_callback*/, |
| 934 | dbus::ObjectProxy::OnConnectedCallback /*on_connected_callback*/)); |
| 935 | MOCK_METHOD2(RegisterOnPlatformMessageSignalHandler, |
| 936 | void(const base::Callback<void(uint32_t)>& /*signal_callback*/, |
| 937 | dbus::ObjectProxy::OnConnectedCallback /*on_connected_callback*/)); |
| 938 | |
| 939 | private: |
| 940 | DISALLOW_COPY_AND_ASSIGN(ThirdPartyVpnProxyMock); |
| 941 | }; |
| 942 | } // namespace flimflam |
| 943 | } // namespace chromium |
| 944 | } // namespace org |
| 945 | |
| 946 | #endif // ____CHROMEOS_DBUS_BINDING___BUILD_LINK_VAR_CACHE_PORTAGE_CHROMEOS_BASE_SHILL_OUT_DEFAULT_GEN_INCLUDE_SHILL_DBUS_PROXY_MOCKS_H |