OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |