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*/)); 40 MOCK_CONST_METHOD0(GetObjectPath, const dbus::ObjectPath&()); 41 42 private: 43 DISALLOW_COPY_AND_ASSIGN(LibCrosServiceInterfaceProxyMock); 44 }; 45 } // namespace chromium 46 } // namespace org 47 48 namespace org { 49 namespace chromium { 50 51 // Mock object for UpdateEngineLibcrosProxyResolvedInterfaceProxyInterface. 52 class UpdateEngineLibcrosProxyResolvedInterfaceProxyMock : public UpdateEngineLibcrosProxyResolvedInterfaceProxyInterface { 53 public: 54 UpdateEngineLibcrosProxyResolvedInterfaceProxyMock() = default; 55 56 MOCK_METHOD2(RegisterProxyResolvedSignalHandler, 57 void(const base::Callback<void(const std::string&, 58 const std::string&, 59 const std::string&)>& /*signal_callback*/, 60 dbus::ObjectProxy::OnConnectedCallback /*on_connected_callback*/)); 61 MOCK_CONST_METHOD0(GetObjectPath, const dbus::ObjectPath&()); 62 63 private: 64 DISALLOW_COPY_AND_ASSIGN(UpdateEngineLibcrosProxyResolvedInterfaceProxyMock); 65 }; 66 } // namespace chromium 67 } // namespace org 68 69 #endif // ____CHROMEOS_DBUS_BINDING___UPDATE_ENGINE_INCLUDE_LIBCROS_DBUS_PROXY_MOCKS_H 70