| 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/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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 | 198 |
| 199 // Stubs should be set only after connection is authenticated. | 199 // Stubs should be set only after connection is authenticated. |
| 200 EXPECT_FALSE(connection_->clipboard_stub()); | 200 EXPECT_FALSE(connection_->clipboard_stub()); |
| 201 EXPECT_FALSE(connection_->input_stub()); | 201 EXPECT_FALSE(connection_->input_stub()); |
| 202 | 202 |
| 203 client_session_->OnConnectionAuthenticated(client_session_->connection()); | 203 client_session_->OnConnectionAuthenticated(client_session_->connection()); |
| 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_->OnCreateVideoStreams(client_session_->connection()); |
| 208 client_session_->OnConnectionChannelsConnected(client_session_->connection()); | 209 client_session_->OnConnectionChannelsConnected(client_session_->connection()); |
| 209 } | 210 } |
| 210 | 211 |
| 211 void ClientSessionTest::NotifyVideoSize() { | 212 void ClientSessionTest::NotifyVideoSize() { |
| 212 connection_->last_video_stream()->size_callback().Run( | 213 connection_->last_video_stream()->size_callback().Run( |
| 213 webrtc::DesktopSize(protocol::FakeDesktopCapturer::kWidth, | 214 webrtc::DesktopSize(protocol::FakeDesktopCapturer::kWidth, |
| 214 protocol::FakeDesktopCapturer::kHeight), | 215 protocol::FakeDesktopCapturer::kHeight), |
| 215 webrtc::DesktopVector(kDefaultDpi, kDefaultDpi)); | 216 webrtc::DesktopVector(kDefaultDpi, kDefaultDpi)); |
| 216 } | 217 } |
| 217 | 218 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 | 423 |
| 423 // ext2 was instantiated but not sent a message, and wrapped video encoder. | 424 // ext2 was instantiated but not sent a message, and wrapped video encoder. |
| 424 EXPECT_TRUE(extension2.was_instantiated()); | 425 EXPECT_TRUE(extension2.was_instantiated()); |
| 425 EXPECT_FALSE(extension2.has_handled_message()); | 426 EXPECT_FALSE(extension2.has_handled_message()); |
| 426 | 427 |
| 427 // ext3 was sent a message but not instantiated. | 428 // ext3 was sent a message but not instantiated. |
| 428 EXPECT_FALSE(extension3.was_instantiated()); | 429 EXPECT_FALSE(extension3.was_instantiated()); |
| 429 } | 430 } |
| 430 | 431 |
| 431 } // namespace remoting | 432 } // namespace remoting |
| OLD | NEW |