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

Side by Side Diff: talk/app/webrtc/rtpsenderreceiver_unittest.cc

Issue 1668493002: Replace uses of cricket::VideoRenderer by rtc::VideoSinkInterface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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 | « talk/app/webrtc/mediastreamprovider.h ('k') | talk/app/webrtc/webrtcsession.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2012 Google Inc. 3 * Copyright 2012 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 81
82 // Helper class to test RtpSender/RtpReceiver. 82 // Helper class to test RtpSender/RtpReceiver.
83 class MockVideoProvider : public VideoProviderInterface { 83 class MockVideoProvider : public VideoProviderInterface {
84 public: 84 public:
85 virtual ~MockVideoProvider() {} 85 virtual ~MockVideoProvider() {}
86 MOCK_METHOD2(SetCaptureDevice, 86 MOCK_METHOD2(SetCaptureDevice,
87 bool(uint32_t ssrc, cricket::VideoCapturer* camera)); 87 bool(uint32_t ssrc, cricket::VideoCapturer* camera));
88 MOCK_METHOD3(SetVideoPlayout, 88 MOCK_METHOD3(SetVideoPlayout,
89 void(uint32_t ssrc, 89 void(uint32_t ssrc,
90 bool enable, 90 bool enable,
91 cricket::VideoRenderer* renderer)); 91 rtc::VideoSinkInterface<cricket::VideoFrame>* sink));
92 MOCK_METHOD3(SetVideoSend, 92 MOCK_METHOD3(SetVideoSend,
93 void(uint32_t ssrc, 93 void(uint32_t ssrc,
94 bool enable, 94 bool enable,
95 const cricket::VideoOptions* options)); 95 const cricket::VideoOptions* options));
96 }; 96 };
97 97
98 class FakeVideoSource : public Notifier<VideoSourceInterface> { 98 class FakeVideoSource : public Notifier<VideoSourceInterface> {
99 public: 99 public:
100 static rtc::scoped_refptr<FakeVideoSource> Create(bool remote) { 100 static rtc::scoped_refptr<FakeVideoSource> Create(bool remote) {
101 return new rtc::RefCountedObject<FakeVideoSource>(remote); 101 return new rtc::RefCountedObject<FakeVideoSource>(remote);
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 video_track_->GetSource()->GetVideoCapturer())); 506 video_track_->GetSource()->GetVideoCapturer()));
507 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, true, _)); 507 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, true, _));
508 sender->SetSsrc(kVideoSsrc2); 508 sender->SetSsrc(kVideoSsrc2);
509 509
510 // Calls expected from destructor. 510 // Calls expected from destructor.
511 EXPECT_CALL(video_provider_, SetCaptureDevice(kVideoSsrc2, nullptr)).Times(1); 511 EXPECT_CALL(video_provider_, SetCaptureDevice(kVideoSsrc2, nullptr)).Times(1);
512 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, false, _)).Times(1); 512 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, false, _)).Times(1);
513 } 513 }
514 514
515 } // namespace webrtc 515 } // namespace webrtc
OLDNEW
« no previous file with comments | « talk/app/webrtc/mediastreamprovider.h ('k') | talk/app/webrtc/webrtcsession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698