OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/host/host_mock_objects.h" | 5 #include "remoting/host/host_mock_objects.h" |
6 | 6 |
7 #include "base/message_loop_proxy.h" | 7 #include "base/message_loop_proxy.h" |
8 #include "net/base/ip_endpoint.h" | 8 #include "net/base/ip_endpoint.h" |
9 #include "remoting/base/auto_thread_task_runner.h" | 9 #include "remoting/base/auto_thread_task_runner.h" |
10 #include "remoting/base/capture_data.h" | 10 #include "remoting/capturer/capture_data.h" |
11 #include "remoting/proto/event.pb.h" | 11 #include "remoting/proto/event.pb.h" |
12 #include "remoting/protocol/transport.h" | 12 #include "remoting/protocol/transport.h" |
13 | 13 |
14 namespace remoting { | 14 namespace remoting { |
15 | 15 |
16 MockVideoFrameCapturer::MockVideoFrameCapturer() {} | |
17 | |
18 MockVideoFrameCapturer::~MockVideoFrameCapturer() {} | |
19 | |
20 MockVideoFrameCapturerDelegate::MockVideoFrameCapturerDelegate() { | |
21 } | |
22 | |
23 MockVideoFrameCapturerDelegate::~MockVideoFrameCapturerDelegate() { | |
24 } | |
25 | |
26 void MockVideoFrameCapturerDelegate::OnCursorShapeChanged( | |
27 scoped_ptr<protocol::CursorShapeInfo> cursor_shape) { | |
28 // Notify the mock method. | |
29 OnCursorShapeChangedPtr(cursor_shape.get()); | |
30 } | |
31 | |
32 MockDesktopEnvironmentFactory::MockDesktopEnvironmentFactory() | 16 MockDesktopEnvironmentFactory::MockDesktopEnvironmentFactory() |
33 : DesktopEnvironmentFactory(NULL, NULL) { | 17 : DesktopEnvironmentFactory(NULL, NULL) { |
34 } | 18 } |
35 | 19 |
36 MockDesktopEnvironmentFactory::~MockDesktopEnvironmentFactory() {} | 20 MockDesktopEnvironmentFactory::~MockDesktopEnvironmentFactory() {} |
37 | 21 |
38 scoped_ptr<DesktopEnvironment> MockDesktopEnvironmentFactory::Create( | 22 scoped_ptr<DesktopEnvironment> MockDesktopEnvironmentFactory::Create( |
39 ClientSession* client) { | 23 ClientSession* client) { |
40 return scoped_ptr<DesktopEnvironment>(CreatePtr(client)); | 24 return scoped_ptr<DesktopEnvironment>(CreatePtr(client)); |
41 } | 25 } |
(...skipping 29 matching lines...) Expand all Loading... |
71 | 55 |
72 MockClientSessionEventHandler::MockClientSessionEventHandler() {} | 56 MockClientSessionEventHandler::MockClientSessionEventHandler() {} |
73 | 57 |
74 MockClientSessionEventHandler::~MockClientSessionEventHandler() {} | 58 MockClientSessionEventHandler::~MockClientSessionEventHandler() {} |
75 | 59 |
76 MockHostStatusObserver::MockHostStatusObserver() {} | 60 MockHostStatusObserver::MockHostStatusObserver() {} |
77 | 61 |
78 MockHostStatusObserver::~MockHostStatusObserver() {} | 62 MockHostStatusObserver::~MockHostStatusObserver() {} |
79 | 63 |
80 } // namespace remoting | 64 } // namespace remoting |
OLD | NEW |