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

Side by Side Diff: remoting/host/ipc_desktop_environment_unittest.cc

Issue 1462063004: Move VideoFramePump to remoting/protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
« no previous file with comments | « remoting/host/host_mock_objects.cc ('k') | remoting/host/shaped_desktop_capturer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/process/process.h" 11 #include "base/process/process.h"
12 #include "base/process/process_handle.h" 12 #include "base/process/process_handle.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "ipc/ipc_channel.h" 14 #include "ipc/ipc_channel.h"
15 #include "ipc/ipc_channel_proxy.h" 15 #include "ipc/ipc_channel_proxy.h"
16 #include "ipc/ipc_listener.h" 16 #include "ipc/ipc_listener.h"
17 #include "ipc/ipc_message.h" 17 #include "ipc/ipc_message.h"
18 #include "ipc/ipc_platform_file.h" 18 #include "ipc/ipc_platform_file.h"
19 #include "remoting/base/auto_thread.h" 19 #include "remoting/base/auto_thread.h"
20 #include "remoting/base/auto_thread_task_runner.h" 20 #include "remoting/base/auto_thread_task_runner.h"
21 #include "remoting/base/constants.h" 21 #include "remoting/base/constants.h"
22 #include "remoting/host/chromoting_messages.h" 22 #include "remoting/host/chromoting_messages.h"
23 #include "remoting/host/desktop_process.h" 23 #include "remoting/host/desktop_process.h"
24 #include "remoting/host/desktop_session.h" 24 #include "remoting/host/desktop_session.h"
25 #include "remoting/host/desktop_session_connector.h" 25 #include "remoting/host/desktop_session_connector.h"
26 #include "remoting/host/desktop_session_proxy.h" 26 #include "remoting/host/desktop_session_proxy.h"
27 #include "remoting/host/fake_desktop_capturer.h"
28 #include "remoting/host/fake_mouse_cursor_monitor.h" 27 #include "remoting/host/fake_mouse_cursor_monitor.h"
29 #include "remoting/host/host_mock_objects.h" 28 #include "remoting/host/host_mock_objects.h"
30 #include "remoting/host/ipc_desktop_environment.h" 29 #include "remoting/host/ipc_desktop_environment.h"
30 #include "remoting/protocol/fake_desktop_capturer.h"
31 #include "remoting/protocol/protocol_mock_objects.h" 31 #include "remoting/protocol/protocol_mock_objects.h"
32 #include "remoting/protocol/test_event_matchers.h" 32 #include "remoting/protocol/test_event_matchers.h"
33 #include "testing/gmock/include/gmock/gmock.h" 33 #include "testing/gmock/include/gmock/gmock.h"
34 #include "testing/gtest/include/gtest/gtest.h" 34 #include "testing/gtest/include/gtest/gtest.h"
35 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 35 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
36 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h" 36 #include "third_party/webrtc/modules/desktop_capture/desktop_region.h"
37 #include "third_party/webrtc/modules/desktop_capture/screen_capturer_mock_object s.h" 37 #include "third_party/webrtc/modules/desktop_capture/screen_capturer_mock_object s.h"
38 38
39 using testing::_; 39 using testing::_;
40 using testing::AnyNumber; 40 using testing::AnyNumber;
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 359
360 InputInjector* IpcDesktopEnvironmentTest::CreateInputInjector() { 360 InputInjector* IpcDesktopEnvironmentTest::CreateInputInjector() {
361 EXPECT_TRUE(remote_input_injector_ == nullptr); 361 EXPECT_TRUE(remote_input_injector_ == nullptr);
362 remote_input_injector_ = new testing::StrictMock<MockInputInjector>(); 362 remote_input_injector_ = new testing::StrictMock<MockInputInjector>();
363 363
364 EXPECT_CALL(*remote_input_injector_, StartPtr(_)); 364 EXPECT_CALL(*remote_input_injector_, StartPtr(_));
365 return remote_input_injector_; 365 return remote_input_injector_;
366 } 366 }
367 367
368 webrtc::DesktopCapturer* IpcDesktopEnvironmentTest::CreateVideoCapturer() { 368 webrtc::DesktopCapturer* IpcDesktopEnvironmentTest::CreateVideoCapturer() {
369 return new FakeDesktopCapturer(); 369 return new protocol::FakeDesktopCapturer();
370 } 370 }
371 371
372 webrtc::MouseCursorMonitor* 372 webrtc::MouseCursorMonitor*
373 IpcDesktopEnvironmentTest::CreateMouseCursorMonitor() { 373 IpcDesktopEnvironmentTest::CreateMouseCursorMonitor() {
374 return new FakeMouseCursorMonitor(); 374 return new FakeMouseCursorMonitor();
375 } 375 }
376 376
377 void IpcDesktopEnvironmentTest::DeleteDesktopEnvironment() { 377 void IpcDesktopEnvironmentTest::DeleteDesktopEnvironment() {
378 input_injector_.reset(); 378 input_injector_.reset();
379 screen_controls_.reset(); 379 screen_controls_.reset();
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 .WillOnce(InvokeWithoutArgs( 734 .WillOnce(InvokeWithoutArgs(
735 this, &IpcDesktopEnvironmentTest::DeleteDesktopEnvironment)); 735 this, &IpcDesktopEnvironmentTest::DeleteDesktopEnvironment));
736 736
737 // Change the desktop resolution. 737 // Change the desktop resolution.
738 screen_controls_->SetScreenResolution(ScreenResolution( 738 screen_controls_->SetScreenResolution(ScreenResolution(
739 webrtc::DesktopSize(100, 100), 739 webrtc::DesktopSize(100, 100),
740 webrtc::DesktopVector(96, 96))); 740 webrtc::DesktopVector(96, 96)));
741 } 741 }
742 742
743 } // namespace remoting 743 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/host_mock_objects.cc ('k') | remoting/host/shaped_desktop_capturer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698