OLD | NEW |
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" |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 114 |
115 EXPECT_TRUE(handled); | 115 EXPECT_TRUE(handled); |
116 return handled; | 116 return handled; |
117 } | 117 } |
118 | 118 |
119 } // namespace | 119 } // namespace |
120 | 120 |
121 class IpcDesktopEnvironmentTest : public testing::Test { | 121 class IpcDesktopEnvironmentTest : public testing::Test { |
122 public: | 122 public: |
123 IpcDesktopEnvironmentTest(); | 123 IpcDesktopEnvironmentTest(); |
124 virtual ~IpcDesktopEnvironmentTest(); | 124 ~IpcDesktopEnvironmentTest() override; |
125 | 125 |
126 virtual void SetUp() override; | 126 void SetUp() override; |
127 | 127 |
128 void ConnectTerminal(int terminal_id, | 128 void ConnectTerminal(int terminal_id, |
129 const ScreenResolution& resolution, | 129 const ScreenResolution& resolution, |
130 bool virtual_terminal); | 130 bool virtual_terminal); |
131 void DisconnectTerminal(int terminal_id); | 131 void DisconnectTerminal(int terminal_id); |
132 | 132 |
133 // Creates a DesktopEnvironment with a fake webrtc::DesktopCapturer, to mock | 133 // Creates a DesktopEnvironment with a fake webrtc::DesktopCapturer, to mock |
134 // DesktopEnvironmentFactory::Create(). | 134 // DesktopEnvironmentFactory::Create(). |
135 DesktopEnvironment* CreateDesktopEnvironment(); | 135 DesktopEnvironment* CreateDesktopEnvironment(); |
136 | 136 |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
655 screen_controls_->SetScreenResolution(ScreenResolution( | 655 screen_controls_->SetScreenResolution(ScreenResolution( |
656 webrtc::DesktopSize(100, 100), | 656 webrtc::DesktopSize(100, 100), |
657 webrtc::DesktopVector(96, 96))); | 657 webrtc::DesktopVector(96, 96))); |
658 | 658 |
659 task_runner_ = NULL; | 659 task_runner_ = NULL; |
660 io_task_runner_ = NULL; | 660 io_task_runner_ = NULL; |
661 main_run_loop_.Run(); | 661 main_run_loop_.Run(); |
662 } | 662 } |
663 | 663 |
664 } // namespace remoting | 664 } // namespace remoting |
OLD | NEW |