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

Side by Side Diff: webrtc/modules/audio_coding/neteq/neteq_network_stats_unittest.cc

Issue 1424083002: Make an enum class out of NetEqDecoder, and hide the neteq_decoders_ table (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 1 month 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webrtc/modules/audio_coding/neteq/neteq_impl_unittest.cc ('k') | webrtc/modules/audio_coding/neteq/neteq_stereo_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698