OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 EXPECT_CALL(*channel_proxy_, GetDecodingCallStatistics()) | 150 EXPECT_CALL(*channel_proxy_, GetDecodingCallStatistics()) |
151 .WillOnce(Return(kAudioDecodeStats)); | 151 .WillOnce(Return(kAudioDecodeStats)); |
152 | 152 |
153 EXPECT_CALL(voice_engine_, GetRecCodec(kChannelId, _)) | 153 EXPECT_CALL(voice_engine_, GetRecCodec(kChannelId, _)) |
154 .WillOnce(DoAll(SetArgReferee<1>(kCodecInst), Return(0))); | 154 .WillOnce(DoAll(SetArgReferee<1>(kCodecInst), Return(0))); |
155 } | 155 } |
156 | 156 |
157 private: | 157 private: |
158 SimulatedClock simulated_clock_; | 158 SimulatedClock simulated_clock_; |
159 PacketRouter packet_router_; | 159 PacketRouter packet_router_; |
160 testing::NiceMock<MockCongestionObserver> bitrate_observer_; | 160 testing::NiceMock<MockBitrateObserver> bitrate_observer_; |
161 testing::NiceMock<MockRemoteBitrateObserver> remote_bitrate_observer_; | 161 testing::NiceMock<MockRemoteBitrateObserver> remote_bitrate_observer_; |
162 MockCongestionController congestion_controller_; | 162 MockCongestionController congestion_controller_; |
163 MockRemoteBitrateEstimator remote_bitrate_estimator_; | 163 MockRemoteBitrateEstimator remote_bitrate_estimator_; |
164 testing::StrictMock<MockVoiceEngine> voice_engine_; | 164 testing::StrictMock<MockVoiceEngine> voice_engine_; |
165 rtc::scoped_refptr<AudioState> audio_state_; | 165 rtc::scoped_refptr<AudioState> audio_state_; |
166 AudioReceiveStream::Config stream_config_; | 166 AudioReceiveStream::Config stream_config_; |
167 testing::StrictMock<MockVoEChannelProxy>* channel_proxy_ = nullptr; | 167 testing::StrictMock<MockVoEChannelProxy>* channel_proxy_ = nullptr; |
168 }; | 168 }; |
169 | 169 |
170 void BuildOneByteExtension(std::vector<uint8_t>::iterator it, | 170 void BuildOneByteExtension(std::vector<uint8_t>::iterator it, |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 EXPECT_EQ(kAudioDecodeStats.calls_to_neteq, stats.decoding_calls_to_neteq); | 331 EXPECT_EQ(kAudioDecodeStats.calls_to_neteq, stats.decoding_calls_to_neteq); |
332 EXPECT_EQ(kAudioDecodeStats.decoded_normal, stats.decoding_normal); | 332 EXPECT_EQ(kAudioDecodeStats.decoded_normal, stats.decoding_normal); |
333 EXPECT_EQ(kAudioDecodeStats.decoded_plc, stats.decoding_plc); | 333 EXPECT_EQ(kAudioDecodeStats.decoded_plc, stats.decoding_plc); |
334 EXPECT_EQ(kAudioDecodeStats.decoded_cng, stats.decoding_cng); | 334 EXPECT_EQ(kAudioDecodeStats.decoded_cng, stats.decoding_cng); |
335 EXPECT_EQ(kAudioDecodeStats.decoded_plc_cng, stats.decoding_plc_cng); | 335 EXPECT_EQ(kAudioDecodeStats.decoded_plc_cng, stats.decoding_plc_cng); |
336 EXPECT_EQ(kCallStats.capture_start_ntp_time_ms_, | 336 EXPECT_EQ(kCallStats.capture_start_ntp_time_ms_, |
337 stats.capture_start_ntp_time_ms); | 337 stats.capture_start_ntp_time_ms); |
338 } | 338 } |
339 } // namespace test | 339 } // namespace test |
340 } // namespace webrtc | 340 } // namespace webrtc |
OLD | NEW |