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

Side by Side Diff: webrtc/api/rtpsenderreceiver_unittest.cc

Issue 1741933002: Prevent a voice channel from sending data before a renderer is set. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Modifying copyright header to satisfy presubmit bot. Created 4 years, 9 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 | « webrtc/api/rtpsender.cc ('k') | webrtc/api/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 * Copyright 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public: 43 public:
44 ~MockAudioProvider() override {} 44 ~MockAudioProvider() override {}
45 45
46 MOCK_METHOD2(SetAudioPlayout, 46 MOCK_METHOD2(SetAudioPlayout,
47 void(uint32_t ssrc, 47 void(uint32_t ssrc,
48 bool enable)); 48 bool enable));
49 MOCK_METHOD4(SetAudioSend, 49 MOCK_METHOD4(SetAudioSend,
50 void(uint32_t ssrc, 50 void(uint32_t ssrc,
51 bool enable, 51 bool enable,
52 const cricket::AudioOptions& options, 52 const cricket::AudioOptions& options,
53 cricket::AudioRenderer* renderer)); 53 cricket::AudioSource* source));
54 MOCK_METHOD2(SetAudioPlayoutVolume, void(uint32_t ssrc, double volume)); 54 MOCK_METHOD2(SetAudioPlayoutVolume, void(uint32_t ssrc, double volume));
55 55
56 void SetRawAudioSink(uint32_t, 56 void SetRawAudioSink(uint32_t,
57 rtc::scoped_ptr<AudioSinkInterface> sink) override { 57 rtc::scoped_ptr<AudioSinkInterface> sink) override {
58 sink_ = std::move(sink); 58 sink_ = std::move(sink);
59 } 59 }
60 60
61 private: 61 private:
62 rtc::scoped_ptr<AudioSinkInterface> sink_; 62 rtc::scoped_ptr<AudioSinkInterface> sink_;
63 }; 63 };
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 video_track_->GetSource()->GetVideoCapturer())); 490 video_track_->GetSource()->GetVideoCapturer()));
491 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, true, _)); 491 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, true, _));
492 sender->SetSsrc(kVideoSsrc2); 492 sender->SetSsrc(kVideoSsrc2);
493 493
494 // Calls expected from destructor. 494 // Calls expected from destructor.
495 EXPECT_CALL(video_provider_, SetCaptureDevice(kVideoSsrc2, nullptr)).Times(1); 495 EXPECT_CALL(video_provider_, SetCaptureDevice(kVideoSsrc2, nullptr)).Times(1);
496 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, false, _)).Times(1); 496 EXPECT_CALL(video_provider_, SetVideoSend(kVideoSsrc2, false, _)).Times(1);
497 } 497 }
498 498
499 } // namespace webrtc 499 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/rtpsender.cc ('k') | webrtc/api/webrtcsession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698