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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 rtc::scoped_ptr<test::RtpGenerator> rtp_generator_; | 267 rtc::scoped_ptr<test::RtpGenerator> rtp_generator_; |
268 WebRtcRTPHeader rtp_header_; | 268 WebRtcRTPHeader rtp_header_; |
269 uint32_t last_lost_time_; | 269 uint32_t last_lost_time_; |
270 uint32_t packet_loss_interval_; | 270 uint32_t packet_loss_interval_; |
271 uint8_t payload_[kPayloadSizeByte]; | 271 uint8_t payload_[kPayloadSizeByte]; |
272 int16_t output_[kMaxOutputSize]; | 272 int16_t output_[kMaxOutputSize]; |
273 }; | 273 }; |
274 | 274 |
275 TEST(NetEqNetworkStatsTest, DecodeFec) { | 275 TEST(NetEqNetworkStatsTest, DecodeFec) { |
276 MockAudioDecoder decoder(1); | 276 MockAudioDecoder decoder(1); |
277 NetEqNetworkStatsTest test(kDecoderOpus, &decoder); | 277 NetEqNetworkStatsTest test(NetEqDecoder::kDecoderOpus, &decoder); |
278 test.DecodeFecTest(); | 278 test.DecodeFecTest(); |
279 EXPECT_CALL(decoder, Die()).Times(1); | 279 EXPECT_CALL(decoder, Die()).Times(1); |
280 } | 280 } |
281 | 281 |
282 TEST(NetEqNetworkStatsTest, StereoDecodeFec) { | 282 TEST(NetEqNetworkStatsTest, StereoDecodeFec) { |
283 MockAudioDecoder decoder(2); | 283 MockAudioDecoder decoder(2); |
284 NetEqNetworkStatsTest test(kDecoderOpus, &decoder); | 284 NetEqNetworkStatsTest test(NetEqDecoder::kDecoderOpus, &decoder); |
285 test.DecodeFecTest(); | 285 test.DecodeFecTest(); |
286 EXPECT_CALL(decoder, Die()).Times(1); | 286 EXPECT_CALL(decoder, Die()).Times(1); |
287 } | 287 } |
288 | 288 |
289 TEST(NetEqNetworkStatsTest, NoiseExpansionTest) { | 289 TEST(NetEqNetworkStatsTest, NoiseExpansionTest) { |
290 MockAudioDecoder decoder(1); | 290 MockAudioDecoder decoder(1); |
291 NetEqNetworkStatsTest test(kDecoderOpus, &decoder); | 291 NetEqNetworkStatsTest test(NetEqDecoder::kDecoderOpus, &decoder); |
292 test.NoiseExpansionTest(); | 292 test.NoiseExpansionTest(); |
293 EXPECT_CALL(decoder, Die()).Times(1); | 293 EXPECT_CALL(decoder, Die()).Times(1); |
294 } | 294 } |
295 | 295 |
296 } // namespace test | 296 } // namespace test |
297 } // namespace webrtc | 297 } // namespace webrtc |
298 | 298 |
299 | 299 |
300 | 300 |
301 | 301 |
OLD | NEW |