Alex Deymo | 80f70ff | 2016-02-10 16:08:11 -0800 | [diff] [blame] | 1 | // Automatic generation of D-Bus interface mock proxies for: |
| 2 | // - org.chromium.LibCrosServiceInterface |
| 3 | // - org.chromium.UpdateEngineLibcrosProxyResolvedInterface |
| 4 | #ifndef ____CHROMEOS_DBUS_BINDING___UPDATE_ENGINE_INCLUDE_LIBCROS_DBUS_PROXY_MOCKS_H |
| 5 | #define ____CHROMEOS_DBUS_BINDING___UPDATE_ENGINE_INCLUDE_LIBCROS_DBUS_PROXY_MOCKS_H |
| 6 | #include <string> |
| 7 | #include <vector> |
| 8 | |
| 9 | #include <base/callback_forward.h> |
| 10 | #include <base/logging.h> |
| 11 | #include <base/macros.h> |
| 12 | #include <brillo/any.h> |
| 13 | #include <brillo/errors/error.h> |
| 14 | #include <brillo/variant_dictionary.h> |
| 15 | #include <gmock/gmock.h> |
| 16 | |
| 17 | #include "libcros/dbus-proxies.h" |
| 18 | |
| 19 | namespace org { |
| 20 | namespace chromium { |
| 21 | |
| 22 | // Mock object for LibCrosServiceInterfaceProxyInterface. |
| 23 | class LibCrosServiceInterfaceProxyMock : public LibCrosServiceInterfaceProxyInterface { |
| 24 | public: |
| 25 | LibCrosServiceInterfaceProxyMock() = default; |
| 26 | |
| 27 | MOCK_METHOD5(ResolveNetworkProxy, |
| 28 | bool(const std::string& /*in_source_url*/, |
| 29 | const std::string& /*in_signal_interface*/, |
| 30 | const std::string& /*in_signal_name*/, |
| 31 | brillo::ErrorPtr* /*error*/, |
| 32 | int /*timeout_ms*/)); |
| 33 | MOCK_METHOD6(ResolveNetworkProxyAsync, |
| 34 | void(const std::string& /*in_source_url*/, |
| 35 | const std::string& /*in_signal_interface*/, |
| 36 | const std::string& /*in_signal_name*/, |
| 37 | const base::Callback<void()>& /*success_callback*/, |
| 38 | const base::Callback<void(brillo::Error*)>& /*error_callback*/, |
| 39 | int /*timeout_ms*/)); |
Xiyuan Xia | 6e30bc5 | 2016-02-24 15:35:42 -0800 | [diff] [blame^] | 40 | MOCK_METHOD3(GetKioskAppRequiredPlatformVersion, |
| 41 | bool(std::string* /*out_required_platform_version*/, |
| 42 | brillo::ErrorPtr* /*error*/, |
| 43 | int /*timeout_ms*/)); |
| 44 | MOCK_METHOD3(GetKioskAppRequiredPlatformVersionAsync, |
| 45 | void(const base::Callback<void(const std::string& /*required_platform_version*/)>& /*success_callback*/, |
| 46 | const base::Callback<void(brillo::Error*)>& /*error_callback*/, |
| 47 | int /*timeout_ms*/)); |
Alex Deymo | 80f70ff | 2016-02-10 16:08:11 -0800 | [diff] [blame] | 48 | MOCK_CONST_METHOD0(GetObjectPath, const dbus::ObjectPath&()); |
| 49 | |
| 50 | private: |
| 51 | DISALLOW_COPY_AND_ASSIGN(LibCrosServiceInterfaceProxyMock); |
| 52 | }; |
| 53 | } // namespace chromium |
| 54 | } // namespace org |
| 55 | |
| 56 | namespace org { |
| 57 | namespace chromium { |
| 58 | |
| 59 | // Mock object for UpdateEngineLibcrosProxyResolvedInterfaceProxyInterface. |
| 60 | class UpdateEngineLibcrosProxyResolvedInterfaceProxyMock : public UpdateEngineLibcrosProxyResolvedInterfaceProxyInterface { |
| 61 | public: |
| 62 | UpdateEngineLibcrosProxyResolvedInterfaceProxyMock() = default; |
| 63 | |
| 64 | MOCK_METHOD2(RegisterProxyResolvedSignalHandler, |
| 65 | void(const base::Callback<void(const std::string&, |
| 66 | const std::string&, |
| 67 | const std::string&)>& /*signal_callback*/, |
| 68 | dbus::ObjectProxy::OnConnectedCallback /*on_connected_callback*/)); |
| 69 | MOCK_CONST_METHOD0(GetObjectPath, const dbus::ObjectPath&()); |
| 70 | |
| 71 | private: |
| 72 | DISALLOW_COPY_AND_ASSIGN(UpdateEngineLibcrosProxyResolvedInterfaceProxyMock); |
| 73 | }; |
| 74 | } // namespace chromium |
| 75 | } // namespace org |
| 76 | |
| 77 | #endif // ____CHROMEOS_DBUS_BINDING___UPDATE_ENGINE_INCLUDE_LIBCROS_DBUS_PROXY_MOCKS_H |