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

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

Issue 1509063003: Remoting: Remove references to POSIX shared memory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp57_base
Patch Set: Rebase. Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « remoting/host/desktop_session_proxy.cc ('k') | remoting/host/remoting_me2me_host.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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/process/process.h" 16 #include "base/process/process.h"
17 #include "base/process/process_handle.h" 17 #include "base/process/process_handle.h"
18 #include "base/run_loop.h" 18 #include "base/run_loop.h"
19 #include "build/build_config.h" 19 #include "build/build_config.h"
20 #include "ipc/attachment_broker_privileged.h"
20 #include "ipc/ipc_channel.h" 21 #include "ipc/ipc_channel.h"
21 #include "ipc/ipc_channel_proxy.h" 22 #include "ipc/ipc_channel_proxy.h"
22 #include "ipc/ipc_listener.h" 23 #include "ipc/ipc_listener.h"
23 #include "ipc/ipc_message.h" 24 #include "ipc/ipc_message.h"
24 #include "ipc/ipc_platform_file.h" 25 #include "ipc/ipc_platform_file.h"
25 #include "remoting/base/auto_thread.h" 26 #include "remoting/base/auto_thread.h"
26 #include "remoting/base/auto_thread_task_runner.h" 27 #include "remoting/base/auto_thread_task_runner.h"
27 #include "remoting/base/constants.h" 28 #include "remoting/base/constants.h"
28 #include "remoting/host/chromoting_messages.h" 29 #include "remoting/host/chromoting_messages.h"
29 #include "remoting/host/desktop_process.h" 30 #include "remoting/host/desktop_process.h"
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 // Runs until there are references to |task_runner_|. 234 // Runs until there are references to |task_runner_|.
234 base::RunLoop main_run_loop_; 235 base::RunLoop main_run_loop_;
235 }; 236 };
236 237
237 IpcDesktopEnvironmentTest::IpcDesktopEnvironmentTest() 238 IpcDesktopEnvironmentTest::IpcDesktopEnvironmentTest()
238 : client_jid_("user@domain/rest-of-jid"), 239 : client_jid_("user@domain/rest-of-jid"),
239 clipboard_stub_(nullptr), 240 clipboard_stub_(nullptr),
240 remote_input_injector_(nullptr), 241 remote_input_injector_(nullptr),
241 terminal_id_(-1), 242 terminal_id_(-1),
242 client_session_control_factory_(&client_session_control_) { 243 client_session_control_factory_(&client_session_control_) {
244 IPC::AttachmentBrokerPrivileged::CreateBrokerForSingleProcessTests();
243 } 245 }
244 246
245 IpcDesktopEnvironmentTest::~IpcDesktopEnvironmentTest() { 247 IpcDesktopEnvironmentTest::~IpcDesktopEnvironmentTest() {
246 } 248 }
247 249
248 void IpcDesktopEnvironmentTest::SetUp() { 250 void IpcDesktopEnvironmentTest::SetUp() {
249 // Arrange to run |message_loop_| until no components depend on it. 251 // Arrange to run |message_loop_| until no components depend on it.
250 task_runner_ = new AutoThreadTaskRunner( 252 task_runner_ = new AutoThreadTaskRunner(
251 message_loop_.task_runner(), main_run_loop_.QuitClosure()); 253 message_loop_.task_runner(), main_run_loop_.QuitClosure());
252 254
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 .WillOnce(InvokeWithoutArgs( 742 .WillOnce(InvokeWithoutArgs(
741 this, &IpcDesktopEnvironmentTest::DeleteDesktopEnvironment)); 743 this, &IpcDesktopEnvironmentTest::DeleteDesktopEnvironment));
742 744
743 // Change the desktop resolution. 745 // Change the desktop resolution.
744 screen_controls_->SetScreenResolution(ScreenResolution( 746 screen_controls_->SetScreenResolution(ScreenResolution(
745 webrtc::DesktopSize(100, 100), 747 webrtc::DesktopSize(100, 100),
746 webrtc::DesktopVector(96, 96))); 748 webrtc::DesktopVector(96, 96)));
747 } 749 }
748 750
749 } // namespace remoting 751 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_session_proxy.cc ('k') | remoting/host/remoting_me2me_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698