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

Unified Diff: remoting/host/client_session_unittest.cc

Issue 2083843002: Replace VideoStream::SizeCallback with VideoStream::Observer interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@merge-sched-stream
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/protocol/fake_connection_to_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/client_session_unittest.cc
diff --git a/remoting/host/client_session_unittest.cc b/remoting/host/client_session_unittest.cc
index b5c2d1bd6656b737aab70ccfe1aadf303e05408c..c38021a50c3ae3083f5f8b95c0b43b4a8e36773a 100644
--- a/remoting/host/client_session_unittest.cc
+++ b/remoting/host/client_session_unittest.cc
@@ -210,7 +210,8 @@ void ClientSessionTest::ConnectClientSession() {
}
void ClientSessionTest::NotifyVideoSize() {
- connection_->last_video_stream()->size_callback().Run(
+ connection_->last_video_stream()->observer()->OnVideoSizeChanged(
+ connection_->last_video_stream().get(),
webrtc::DesktopSize(protocol::FakeDesktopCapturer::kWidth,
protocol::FakeDesktopCapturer::kHeight),
webrtc::DesktopVector(kDefaultDpi, kDefaultDpi));
« no previous file with comments | « remoting/host/client_session.cc ('k') | remoting/protocol/fake_connection_to_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698