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

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

Issue 1844143002: Add VideoLayout message. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
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/client_session.h" 5 #include "remoting/host/client_session.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 EXPECT_TRUE(connection_->clipboard_stub()); 205 EXPECT_TRUE(connection_->clipboard_stub());
206 EXPECT_TRUE(connection_->input_stub()); 206 EXPECT_TRUE(connection_->input_stub());
207 207
208 client_session_->OnConnectionChannelsConnected(client_session_->connection()); 208 client_session_->OnConnectionChannelsConnected(client_session_->connection());
209 } 209 }
210 210
211 void ClientSessionTest::NotifyVideoSize() { 211 void ClientSessionTest::NotifyVideoSize() {
212 connection_->last_video_stream()->size_callback().Run( 212 connection_->last_video_stream()->size_callback().Run(
213 webrtc::DesktopSize(protocol::FakeDesktopCapturer::kWidth, 213 webrtc::DesktopSize(protocol::FakeDesktopCapturer::kWidth,
214 protocol::FakeDesktopCapturer::kHeight)); 214 protocol::FakeDesktopCapturer::kHeight),
215 webrtc::DesktopVector(kDefaultDpi, kDefaultDpi));
215 } 216 }
216 217
217 TEST_F(ClientSessionTest, DisableInputs) { 218 TEST_F(ClientSessionTest, DisableInputs) {
218 CreateClientSession(); 219 CreateClientSession();
219 ConnectClientSession(); 220 ConnectClientSession();
220 NotifyVideoSize(); 221 NotifyVideoSize();
221 222
222 FakeInputInjector* input_injector = 223 FakeInputInjector* input_injector =
223 desktop_environment_factory_->last_desktop_environment() 224 desktop_environment_factory_->last_desktop_environment()
224 ->last_input_injector() 225 ->last_input_injector()
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 482
482 client_session_->DisconnectSession(protocol::OK); 483 client_session_->DisconnectSession(protocol::OK);
483 client_session_.reset(); 484 client_session_.reset();
484 485
485 // ext1 was instantiated and wrapped the video capturer. 486 // ext1 was instantiated and wrapped the video capturer.
486 EXPECT_TRUE(extension.was_instantiated()); 487 EXPECT_TRUE(extension.was_instantiated());
487 EXPECT_TRUE(extension.has_wrapped_video_capturer()); 488 EXPECT_TRUE(extension.has_wrapped_video_capturer());
488 } 489 }
489 490
490 } // namespace remoting 491 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/host/security_key/gnubby_extension_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698