| 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/message_loop_proxy.h" | 7 #include "base/message_loop/message_loop_proxy.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "net/base/ip_endpoint.h" | 9 #include "net/base/ip_endpoint.h" |
| 10 #include "remoting/base/auto_thread_task_runner.h" | 10 #include "remoting/base/auto_thread_task_runner.h" |
| 11 #include "remoting/codec/audio_encoder.h" | 11 #include "remoting/codec/audio_encoder.h" |
| 12 #include "remoting/codec/video_encoder.h" | 12 #include "remoting/codec/video_encoder.h" |
| 13 #include "remoting/host/audio_capturer.h" | 13 #include "remoting/host/audio_capturer.h" |
| 14 #include "remoting/host/input_injector.h" | 14 #include "remoting/host/input_injector.h" |
| 15 #include "remoting/proto/event.pb.h" | 15 #include "remoting/proto/event.pb.h" |
| 16 #include "remoting/proto/video.pb.h" |
| 16 #include "remoting/protocol/transport.h" | 17 #include "remoting/protocol/transport.h" |
| 17 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" | 18 #include "third_party/webrtc/modules/desktop_capture/desktop_capturer.h" |
| 19 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| 18 | 20 |
| 19 namespace remoting { | 21 namespace remoting { |
| 20 | 22 |
| 21 MockDesktopEnvironment::MockDesktopEnvironment() {} | 23 MockDesktopEnvironment::MockDesktopEnvironment() {} |
| 22 | 24 |
| 23 MockDesktopEnvironment::~MockDesktopEnvironment() {} | 25 MockDesktopEnvironment::~MockDesktopEnvironment() {} |
| 24 | 26 |
| 25 scoped_ptr<AudioCapturer> MockDesktopEnvironment::CreateAudioCapturer() { | 27 scoped_ptr<AudioCapturer> MockDesktopEnvironment::CreateAudioCapturer() { |
| 26 return make_scoped_ptr(CreateAudioCapturerPtr()); | 28 return make_scoped_ptr(CreateAudioCapturerPtr()); |
| 27 } | 29 } |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 MockHostStatusObserver::~MockHostStatusObserver() {} | 83 MockHostStatusObserver::~MockHostStatusObserver() {} |
| 82 | 84 |
| 83 MockGnubbyAuthHandler::MockGnubbyAuthHandler() {} | 85 MockGnubbyAuthHandler::MockGnubbyAuthHandler() {} |
| 84 | 86 |
| 85 MockGnubbyAuthHandler::~MockGnubbyAuthHandler() {} | 87 MockGnubbyAuthHandler::~MockGnubbyAuthHandler() {} |
| 86 | 88 |
| 87 MockMouseCursorMonitor::MockMouseCursorMonitor() {} | 89 MockMouseCursorMonitor::MockMouseCursorMonitor() {} |
| 88 | 90 |
| 89 MockMouseCursorMonitor::~MockMouseCursorMonitor() {} | 91 MockMouseCursorMonitor::~MockMouseCursorMonitor() {} |
| 90 | 92 |
| 93 MockVideoEncoder::MockVideoEncoder() { |
| 94 } |
| 95 |
| 96 MockVideoEncoder::~MockVideoEncoder() { |
| 97 } |
| 98 |
| 99 scoped_ptr<VideoPacket> MockVideoEncoder::Encode( |
| 100 const webrtc::DesktopFrame& frame) { |
| 101 return make_scoped_ptr(EncodePtr(frame)); |
| 102 } |
| 103 |
| 91 } // namespace remoting | 104 } // namespace remoting |
| OLD | NEW |