Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Unified Diff: remoting/host/host_mock_objects.h

Issue 12545026: ResizingHostObserver is created by the desktop environment together with other stubs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback & rebased Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/desktop_session_proxy.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/host_mock_objects.h
diff --git a/remoting/host/host_mock_objects.h b/remoting/host/host_mock_objects.h
index 1c4e88e6a278aebd84d0a66127db49a44bfc5ceb..d9d57a92d1ddc1a4d46d152e603d213ae5c48ddf 100644
--- a/remoting/host/host_mock_objects.h
+++ b/remoting/host/host_mock_objects.h
@@ -14,6 +14,7 @@
#include "remoting/host/event_executor.h"
#include "remoting/host/host_status_observer.h"
#include "remoting/host/local_input_monitor.h"
+#include "remoting/host/session_controller.h"
#include "remoting/proto/control.pb.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -33,6 +34,7 @@ class MockDesktopEnvironment : public DesktopEnvironment {
MOCK_METHOD2(CreateEventExecutorPtr,
EventExecutor*(scoped_refptr<base::SingleThreadTaskRunner>,
scoped_refptr<base::SingleThreadTaskRunner>));
+ MOCK_METHOD0(CreateSessionControllerPtr, SessionController*());
MOCK_METHOD2(
CreateVideoCapturerPtr,
media::ScreenCapturer*(scoped_refptr<base::SingleThreadTaskRunner>,
@@ -44,6 +46,7 @@ class MockDesktopEnvironment : public DesktopEnvironment {
virtual scoped_ptr<EventExecutor> CreateEventExecutor(
scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) OVERRIDE;
+ virtual scoped_ptr<SessionController> CreateSessionController() OVERRIDE;
virtual scoped_ptr<media::ScreenCapturer> CreateVideoCapturer(
scoped_refptr<base::SingleThreadTaskRunner> capture_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> encode_task_runner) OVERRIDE;
@@ -94,9 +97,6 @@ class MockClientSessionEventHandler : public ClientSession::EventHandler {
ClientSession* client,
const std::string& channel_name,
const protocol::TransportRoute& route));
- MOCK_METHOD3(OnClientResolutionChanged, void(ClientSession* client,
- const SkISize& size,
- const SkIPoint& dpi));
private:
DISALLOW_COPY_AND_ASSIGN(MockClientSessionEventHandler);
@@ -153,6 +153,18 @@ class MockHostStatusObserver : public HostStatusObserver {
MOCK_METHOD0(OnShutdown, void());
};
+class MockSessionController : public SessionController {
+ public:
+ MockSessionController();
+ virtual ~MockSessionController();
+
+ MOCK_METHOD2(OnClientResolutionChanged,
+ void(const SkIPoint&, const SkISize&));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockSessionController);
+};
+
} // namespace remoting
#endif // REMOTING_HOST_HOST_MOCK_OBJECTS_H_
« no previous file with comments | « remoting/host/desktop_session_proxy.cc ('k') | remoting/host/host_mock_objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698