| Index: remoting/host/host_mock_objects.h
|
| diff --git a/remoting/host/host_mock_objects.h b/remoting/host/host_mock_objects.h
|
| index 569b32489e2e9b24f3eaed5fd5f26d3bec89a8ce..443d84949f04d3ca389729e641f4a80173f80e00 100644
|
| --- a/remoting/host/host_mock_objects.h
|
| +++ b/remoting/host/host_mock_objects.h
|
| @@ -14,6 +14,8 @@
|
| #include "remoting/host/disconnect_window.h"
|
| #include "remoting/host/event_executor.h"
|
| #include "remoting/host/local_input_monitor.h"
|
| +#include "remoting/host/network_settings.h"
|
| +#include "remoting/host/session_manager_factory.h"
|
| #include "remoting/host/user_authenticator.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
|
|
| @@ -135,6 +137,27 @@ class MockEventExecutor : public EventExecutor {
|
| DISALLOW_COPY_AND_ASSIGN(MockEventExecutor);
|
| };
|
|
|
| +class MockSessionManagerFactory : public SessionManagerFactory {
|
| + public:
|
| + MockSessionManagerFactory();
|
| + virtual ~MockSessionManagerFactory();
|
| +
|
| + MOCK_METHOD2(CreateSessionManagerPtr, protocol::SessionManager*(
|
| + const NetworkSettings& network_settings,
|
| + const scoped_refptr<net::URLRequestContextGetter>&
|
| + url_request_context_getter));
|
| + scoped_ptr<protocol::SessionManager> CreateSessionManager(
|
| + const NetworkSettings& network_settings,
|
| + const scoped_refptr<net::URLRequestContextGetter>&
|
| + url_request_context_getter) {
|
| + return scoped_ptr<protocol::SessionManager>(CreateSessionManagerPtr(
|
| + network_settings, url_request_context_getter));
|
| + }
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(MockSessionManagerFactory);
|
| +};
|
| +
|
| class MockUserAuthenticator : public UserAuthenticator {
|
| public:
|
| MockUserAuthenticator();
|
|
|