Index: webrtc/modules/audio_coding/main/acm2/acm_receive_test.cc |
diff --git a/webrtc/modules/audio_coding/main/acm2/acm_receive_test.cc b/webrtc/modules/audio_coding/main/acm2/acm_receive_test.cc |
index b5a86d0bde3e2f6c68dbe915699dbc2463d6f967..e01b263127098e8201c9d6fbe3c62f8582b0d3f3 100644 |
--- a/webrtc/modules/audio_coding/main/acm2/acm_receive_test.cc |
+++ b/webrtc/modules/audio_coding/main/acm2/acm_receive_test.cc |
@@ -38,9 +38,13 @@ AcmReceiveTest::AcmReceiveTest(PacketSource* packet_source, |
} |
void AcmReceiveTest::RegisterDefaultCodecs() { |
+#ifdef WEBRTC_CODEC_OPUS |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kOpus, 120)); |
+#endif |
+#if defined(WEBRTC_CODEC_ISAC) || defined(WEBRTC_CODEC_ISACFX) |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kISAC, 103)); |
-#ifndef WEBRTC_ANDROID |
+#endif |
+#ifdef WEBRTC_CODEC_ISAC |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kISACSWB, 104)); |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kISACFB, 105)); |
#endif |
@@ -56,13 +60,19 @@ void AcmReceiveTest::RegisterDefaultCodecs() { |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kPCMA, 8)); |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kPCMU_2ch, 110)); |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kPCMA_2ch, 118)); |
+#ifdef WEBRTC_CODEC_ILBC |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kILBC, 102)); |
+#endif |
+#ifdef WEBRTC_CODEC_G722 |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kG722, 9)); |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kG722_2ch, 119)); |
+#endif |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kCNNB, 13)); |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kCNWB, 98)); |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kCNSWB, 99)); |
+#ifdef WEBRTC_CODEC_RED |
ASSERT_TRUE(acm_->RegisterReceiveCodec(acm2::ACMCodecDB::kRED, 127)); |
+#endif |
} |
void AcmReceiveTest::RegisterNetEqTestCodecs() { |
hlundin-webrtc
2015/09/30 12:53:26
Won't this method need the same treatment as above
kwiberg-webrtc
2015/09/30 13:25:41
It would, if it was called from a test that wasn't
|