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

Side by Side Diff: webrtc/media/engine/webrtcvoiceengine_unittest.cc

Issue 1955363003: Configure VoE NACK through AudioSendStream::Config. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: misc Created 4 years, 6 months 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) 2008 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2008 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 const cricket::AudioCodec kTelephoneEventCodec(106, 42 const cricket::AudioCodec kTelephoneEventCodec(106,
43 "telephone-event", 43 "telephone-event",
44 8000, 44 8000,
45 0, 45 0,
46 1); 46 1);
47 const uint32_t kSsrc1 = 0x99; 47 const uint32_t kSsrc1 = 0x99;
48 const uint32_t kSsrc2 = 2; 48 const uint32_t kSsrc2 = 2;
49 const uint32_t kSsrc3 = 3; 49 const uint32_t kSsrc3 = 3;
50 const uint32_t kSsrcs4[] = { 1, 2, 3, 4 }; 50 const uint32_t kSsrcs4[] = { 1, 2, 3, 4 };
51 51
52 const int kRtpHistoryMs = 5000;
kwiberg-webrtc 2016/06/13 13:30:31 constexpr
the sun 2016/06/13 15:51:43 Changed here, and in webrtcvoiceengince.cc.
53
52 class FakeVoEWrapper : public cricket::VoEWrapper { 54 class FakeVoEWrapper : public cricket::VoEWrapper {
53 public: 55 public:
54 explicit FakeVoEWrapper(cricket::FakeWebRtcVoiceEngine* engine) 56 explicit FakeVoEWrapper(cricket::FakeWebRtcVoiceEngine* engine)
55 : cricket::VoEWrapper(engine, // processing 57 : cricket::VoEWrapper(engine, // processing
56 engine, // base 58 engine, // base
57 engine, // codec 59 engine, // codec
58 engine, // hw 60 engine, // hw
59 engine, // rtp 61 engine, // rtp
60 engine) { // volume 62 engine) { // volume
61 } 63 }
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 1351
1350 parameters.codecs[0].params["maxaveragebitrate"] = "200000"; 1352 parameters.codecs[0].params["maxaveragebitrate"] = "200000";
1351 EXPECT_TRUE(channel_->SetSendParameters(parameters)); 1353 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1352 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec)); 1354 EXPECT_EQ(0, voe_.GetSendCodec(channel_num, gcodec));
1353 EXPECT_EQ(200000, gcodec.rate); 1355 EXPECT_EQ(200000, gcodec.rate);
1354 } 1356 }
1355 1357
1356 // Test that we can enable NACK with opus as caller. 1358 // Test that we can enable NACK with opus as caller.
1357 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecEnableNackAsCaller) { 1359 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecEnableNackAsCaller) {
1358 EXPECT_TRUE(SetupSendStream()); 1360 EXPECT_TRUE(SetupSendStream());
1359 int channel_num = voe_.GetLastChannel();
1360 cricket::AudioSendParameters parameters; 1361 cricket::AudioSendParameters parameters;
1361 parameters.codecs.push_back(kOpusCodec); 1362 parameters.codecs.push_back(kOpusCodec);
1362 parameters.codecs[0].AddFeedbackParam( 1363 parameters.codecs[0].AddFeedbackParam(
1363 cricket::FeedbackParam(cricket::kRtcpFbParamNack, 1364 cricket::FeedbackParam(cricket::kRtcpFbParamNack,
1364 cricket::kParamValueEmpty)); 1365 cricket::kParamValueEmpty));
1365 EXPECT_FALSE(voe_.GetNACK(channel_num)); 1366 EXPECT_EQ(0, GetSendStreamConfig(kSsrc1).rtp.nack.rtp_history_ms);
1366 EXPECT_TRUE(channel_->SetSendParameters(parameters)); 1367 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1367 EXPECT_TRUE(voe_.GetNACK(channel_num)); 1368 EXPECT_EQ(kRtpHistoryMs, GetSendStreamConfig(kSsrc1).rtp.nack.rtp_history_ms);
kwiberg-webrtc 2016/06/13 13:30:31 Why do you replace some GetNACK calls, but not all
the sun 2016/06/13 15:51:43 Because some of them are for receive streams, whic
kwiberg-webrtc 2016/06/14 13:07:42 Acknowledged.
1368 } 1369 }
1369 1370
1370 // Test that we can enable NACK with opus as callee. 1371 // Test that we can enable NACK with opus as callee.
1371 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecEnableNackAsCallee) { 1372 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecEnableNackAsCallee) {
1372 EXPECT_TRUE(SetupRecvStream()); 1373 EXPECT_TRUE(SetupRecvStream());
1373 int channel_num = voe_.GetLastChannel(); 1374 int channel_num = voe_.GetLastChannel();
1374 cricket::AudioSendParameters parameters; 1375 cricket::AudioSendParameters parameters;
1375 parameters.codecs.push_back(kOpusCodec); 1376 parameters.codecs.push_back(kOpusCodec);
1376 parameters.codecs[0].AddFeedbackParam( 1377 parameters.codecs[0].AddFeedbackParam(
1377 cricket::FeedbackParam(cricket::kRtcpFbParamNack, 1378 cricket::FeedbackParam(cricket::kRtcpFbParamNack,
1378 cricket::kParamValueEmpty)); 1379 cricket::kParamValueEmpty));
1379 EXPECT_FALSE(voe_.GetNACK(channel_num)); 1380 EXPECT_FALSE(voe_.GetNACK(channel_num));
1380 EXPECT_TRUE(channel_->SetSendParameters(parameters)); 1381 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1381 // NACK should be enabled even with no send stream. 1382 // NACK should be enabled even with no send stream.
1382 EXPECT_TRUE(voe_.GetNACK(channel_num)); 1383 EXPECT_TRUE(voe_.GetNACK(channel_num));
1383 1384
1384 EXPECT_TRUE(channel_->AddSendStream( 1385 EXPECT_TRUE(channel_->AddSendStream(
1385 cricket::StreamParams::CreateLegacy(kSsrc1))); 1386 cricket::StreamParams::CreateLegacy(kSsrc1)));
1386 EXPECT_TRUE(voe_.GetNACK(voe_.GetLastChannel())); 1387 EXPECT_EQ(kRtpHistoryMs, GetSendStreamConfig(kSsrc1).rtp.nack.rtp_history_ms);
1387 } 1388 }
1388 1389
1389 // Test that we can enable NACK on receive streams. 1390 // Test that we can enable NACK on receive streams.
1390 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecEnableNackRecvStreams) { 1391 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecEnableNackRecvStreams) {
1391 EXPECT_TRUE(SetupSendStream()); 1392 EXPECT_TRUE(SetupSendStream());
1392 int channel_num1 = voe_.GetLastChannel();
1393 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2))); 1393 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
1394 int channel_num2 = voe_.GetLastChannel(); 1394 int channel_num2 = voe_.GetLastChannel();
1395 cricket::AudioSendParameters parameters; 1395 cricket::AudioSendParameters parameters;
1396 parameters.codecs.push_back(kOpusCodec); 1396 parameters.codecs.push_back(kOpusCodec);
1397 parameters.codecs[0].AddFeedbackParam( 1397 parameters.codecs[0].AddFeedbackParam(
1398 cricket::FeedbackParam(cricket::kRtcpFbParamNack, 1398 cricket::FeedbackParam(cricket::kRtcpFbParamNack,
1399 cricket::kParamValueEmpty)); 1399 cricket::kParamValueEmpty));
1400 EXPECT_FALSE(voe_.GetNACK(channel_num1)); 1400 EXPECT_EQ(0, GetSendStreamConfig(kSsrc1).rtp.nack.rtp_history_ms);
1401 EXPECT_FALSE(voe_.GetNACK(channel_num2)); 1401 EXPECT_FALSE(voe_.GetNACK(channel_num2));
1402 EXPECT_TRUE(channel_->SetSendParameters(parameters)); 1402 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1403 EXPECT_TRUE(voe_.GetNACK(channel_num1)); 1403 EXPECT_EQ(kRtpHistoryMs, GetSendStreamConfig(kSsrc1).rtp.nack.rtp_history_ms);
1404 EXPECT_TRUE(voe_.GetNACK(channel_num2)); 1404 EXPECT_TRUE(voe_.GetNACK(channel_num2));
1405 } 1405 }
1406 1406
1407 // Test that we can disable NACK. 1407 // Test that we can disable NACK.
1408 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecDisableNack) { 1408 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecDisableNack) {
1409 EXPECT_TRUE(SetupSendStream()); 1409 EXPECT_TRUE(SetupSendStream());
1410 int channel_num = voe_.GetLastChannel();
1411 cricket::AudioSendParameters parameters; 1410 cricket::AudioSendParameters parameters;
1412 parameters.codecs.push_back(kOpusCodec); 1411 parameters.codecs.push_back(kOpusCodec);
1413 parameters.codecs[0].AddFeedbackParam( 1412 parameters.codecs[0].AddFeedbackParam(
1414 cricket::FeedbackParam(cricket::kRtcpFbParamNack, 1413 cricket::FeedbackParam(cricket::kRtcpFbParamNack,
1415 cricket::kParamValueEmpty)); 1414 cricket::kParamValueEmpty));
1416 EXPECT_TRUE(channel_->SetSendParameters(parameters)); 1415 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1417 EXPECT_TRUE(voe_.GetNACK(channel_num)); 1416 EXPECT_EQ(kRtpHistoryMs, GetSendStreamConfig(kSsrc1).rtp.nack.rtp_history_ms);
1418 1417
1419 parameters.codecs.clear(); 1418 parameters.codecs.clear();
1420 parameters.codecs.push_back(kOpusCodec); 1419 parameters.codecs.push_back(kOpusCodec);
1421 EXPECT_TRUE(channel_->SetSendParameters(parameters)); 1420 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1422 EXPECT_FALSE(voe_.GetNACK(channel_num)); 1421 EXPECT_EQ(0, GetSendStreamConfig(kSsrc1).rtp.nack.rtp_history_ms);
1423 } 1422 }
1424 1423
1425 // Test that we can disable NACK on receive streams. 1424 // Test that we can disable NACK on receive streams.
1426 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecDisableNackRecvStreams) { 1425 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecDisableNackRecvStreams) {
1427 EXPECT_TRUE(SetupSendStream()); 1426 EXPECT_TRUE(SetupSendStream());
1428 int channel_num1 = voe_.GetLastChannel();
1429 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2))); 1427 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
1430 int channel_num2 = voe_.GetLastChannel(); 1428 int channel_num2 = voe_.GetLastChannel();
1431 cricket::AudioSendParameters parameters; 1429 cricket::AudioSendParameters parameters;
1432 parameters.codecs.push_back(kOpusCodec); 1430 parameters.codecs.push_back(kOpusCodec);
1433 parameters.codecs[0].AddFeedbackParam( 1431 parameters.codecs[0].AddFeedbackParam(
1434 cricket::FeedbackParam(cricket::kRtcpFbParamNack, 1432 cricket::FeedbackParam(cricket::kRtcpFbParamNack,
1435 cricket::kParamValueEmpty)); 1433 cricket::kParamValueEmpty));
1436 EXPECT_TRUE(channel_->SetSendParameters(parameters)); 1434 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1437 EXPECT_TRUE(voe_.GetNACK(channel_num1)); 1435 EXPECT_EQ(kRtpHistoryMs, GetSendStreamConfig(kSsrc1).rtp.nack.rtp_history_ms);
1438 EXPECT_TRUE(voe_.GetNACK(channel_num2)); 1436 EXPECT_TRUE(voe_.GetNACK(channel_num2));
1439 1437
1440 parameters.codecs.clear(); 1438 parameters.codecs.clear();
1441 parameters.codecs.push_back(kOpusCodec); 1439 parameters.codecs.push_back(kOpusCodec);
1442 EXPECT_TRUE(channel_->SetSendParameters(parameters)); 1440 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1443 EXPECT_FALSE(voe_.GetNACK(channel_num1)); 1441 EXPECT_EQ(0, GetSendStreamConfig(kSsrc1).rtp.nack.rtp_history_ms);
1444 EXPECT_FALSE(voe_.GetNACK(channel_num2)); 1442 EXPECT_FALSE(voe_.GetNACK(channel_num2));
1445 } 1443 }
1446 1444
1447 // Test that NACK is enabled on a new receive stream. 1445 // Test that NACK is enabled on a new receive stream.
1448 TEST_F(WebRtcVoiceEngineTestFake, AddRecvStreamEnableNack) { 1446 TEST_F(WebRtcVoiceEngineTestFake, AddRecvStreamEnableNack) {
1449 EXPECT_TRUE(SetupSendStream()); 1447 EXPECT_TRUE(SetupSendStream());
1450 int channel_num = voe_.GetLastChannel();
1451 cricket::AudioSendParameters parameters; 1448 cricket::AudioSendParameters parameters;
1452 parameters.codecs.push_back(kIsacCodec); 1449 parameters.codecs.push_back(kIsacCodec);
1453 parameters.codecs.push_back(kCn16000Codec); 1450 parameters.codecs.push_back(kCn16000Codec);
1454 parameters.codecs[0].AddFeedbackParam( 1451 parameters.codecs[0].AddFeedbackParam(
1455 cricket::FeedbackParam(cricket::kRtcpFbParamNack, 1452 cricket::FeedbackParam(cricket::kRtcpFbParamNack,
1456 cricket::kParamValueEmpty)); 1453 cricket::kParamValueEmpty));
1457 EXPECT_TRUE(channel_->SetSendParameters(parameters)); 1454 EXPECT_TRUE(channel_->SetSendParameters(parameters));
1458 EXPECT_TRUE(voe_.GetNACK(channel_num)); 1455 EXPECT_EQ(kRtpHistoryMs, GetSendStreamConfig(kSsrc1).rtp.nack.rtp_history_ms);
1459 1456
1460 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2))); 1457 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(2)));
1461 channel_num = voe_.GetLastChannel(); 1458 int channel_num = voe_.GetLastChannel();
1462 EXPECT_TRUE(voe_.GetNACK(channel_num)); 1459 EXPECT_TRUE(voe_.GetNACK(channel_num));
1463 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(3))); 1460 EXPECT_TRUE(channel_->AddRecvStream(cricket::StreamParams::CreateLegacy(3)));
1464 channel_num = voe_.GetLastChannel(); 1461 channel_num = voe_.GetLastChannel();
1465 EXPECT_TRUE(voe_.GetNACK(channel_num)); 1462 EXPECT_TRUE(voe_.GetNACK(channel_num));
1466 } 1463 }
1467 1464
1468 // Test that without useinbandfec, Opus FEC is off. 1465 // Test that without useinbandfec, Opus FEC is off.
1469 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecNoOpusFec) { 1466 TEST_F(WebRtcVoiceEngineTestFake, SetSendCodecNoOpusFec) {
1470 EXPECT_TRUE(SetupSendStream()); 1467 EXPECT_TRUE(SetupSendStream());
1471 int channel_num = voe_.GetLastChannel(); 1468 int channel_num = voe_.GetLastChannel();
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
2429 2426
2430 // Test we can set the correct statistics on all send streams. 2427 // Test we can set the correct statistics on all send streams.
2431 TEST_F(WebRtcVoiceEngineTestFake, GetStatsWithMultipleSendStreams) { 2428 TEST_F(WebRtcVoiceEngineTestFake, GetStatsWithMultipleSendStreams) {
2432 SetupForMultiSendStream(); 2429 SetupForMultiSendStream();
2433 2430
2434 // Create send streams. 2431 // Create send streams.
2435 for (uint32_t ssrc : kSsrcs4) { 2432 for (uint32_t ssrc : kSsrcs4) {
2436 EXPECT_TRUE(channel_->AddSendStream( 2433 EXPECT_TRUE(channel_->AddSendStream(
2437 cricket::StreamParams::CreateLegacy(ssrc))); 2434 cricket::StreamParams::CreateLegacy(ssrc)));
2438 } 2435 }
2439 SetAudioSendStreamStats();
2440 2436
2441 // Create a receive stream to check that none of the send streams end up in 2437 // Create a receive stream to check that none of the send streams end up in
2442 // the receive stream stats. 2438 // the receive stream stats.
2443 EXPECT_TRUE(channel_->AddRecvStream( 2439 EXPECT_TRUE(channel_->AddRecvStream(
2444 cricket::StreamParams::CreateLegacy(kSsrc2))); 2440 cricket::StreamParams::CreateLegacy(kSsrc2)));
2441
2445 // We need send codec to be set to get all stats. 2442 // We need send codec to be set to get all stats.
2446 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_)); 2443 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
2447 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_)); 2444 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_));
2445 SetAudioSendStreamStats();
2448 2446
2449 // Check stats for the added streams. 2447 // Check stats for the added streams.
2450 { 2448 {
2451 cricket::VoiceMediaInfo info; 2449 cricket::VoiceMediaInfo info;
2452 EXPECT_EQ(true, channel_->GetStats(&info)); 2450 EXPECT_EQ(true, channel_->GetStats(&info));
2453 2451
2454 // We have added 4 send streams. We should see empty stats for all. 2452 // We have added 4 send streams. We should see empty stats for all.
2455 EXPECT_EQ(static_cast<size_t>(arraysize(kSsrcs4)), info.senders.size()); 2453 EXPECT_EQ(static_cast<size_t>(arraysize(kSsrcs4)), info.senders.size());
2456 for (const auto& sender : info.senders) { 2454 for (const auto& sender : info.senders) {
2457 VerifyVoiceSenderInfo(sender, false); 2455 VerifyVoiceSenderInfo(sender, false);
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
2595 // Test that we can set the outgoing SSRC properly. 2593 // Test that we can set the outgoing SSRC properly.
2596 // SSRC is set in SetupSendStream() by calling AddSendStream. 2594 // SSRC is set in SetupSendStream() by calling AddSendStream.
2597 TEST_F(WebRtcVoiceEngineTestFake, SetSendSsrc) { 2595 TEST_F(WebRtcVoiceEngineTestFake, SetSendSsrc) {
2598 EXPECT_TRUE(SetupSendStream()); 2596 EXPECT_TRUE(SetupSendStream());
2599 EXPECT_TRUE(call_.GetAudioSendStream(kSsrc1)); 2597 EXPECT_TRUE(call_.GetAudioSendStream(kSsrc1));
2600 } 2598 }
2601 2599
2602 TEST_F(WebRtcVoiceEngineTestFake, GetStats) { 2600 TEST_F(WebRtcVoiceEngineTestFake, GetStats) {
2603 // Setup. We need send codec to be set to get all stats. 2601 // Setup. We need send codec to be set to get all stats.
2604 EXPECT_TRUE(SetupSendStream()); 2602 EXPECT_TRUE(SetupSendStream());
2605 SetAudioSendStreamStats();
2606 // SetupSendStream adds a send stream with kSsrc1, so the receive 2603 // SetupSendStream adds a send stream with kSsrc1, so the receive
2607 // stream has to use a different SSRC. 2604 // stream has to use a different SSRC.
2608 EXPECT_TRUE(channel_->AddRecvStream( 2605 EXPECT_TRUE(channel_->AddRecvStream(
2609 cricket::StreamParams::CreateLegacy(kSsrc2))); 2606 cricket::StreamParams::CreateLegacy(kSsrc2)));
2610 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_)); 2607 EXPECT_TRUE(channel_->SetSendParameters(send_parameters_));
2611 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_)); 2608 EXPECT_TRUE(channel_->SetRecvParameters(recv_parameters_));
2609 SetAudioSendStreamStats();
2612 2610
2613 // Check stats for the added streams. 2611 // Check stats for the added streams.
2614 { 2612 {
2615 cricket::VoiceMediaInfo info; 2613 cricket::VoiceMediaInfo info;
2616 EXPECT_EQ(true, channel_->GetStats(&info)); 2614 EXPECT_EQ(true, channel_->GetStats(&info));
2617 2615
2618 // We have added one send stream. We should see the stats we've set. 2616 // We have added one send stream. We should see the stats we've set.
2619 EXPECT_EQ(1u, info.senders.size()); 2617 EXPECT_EQ(1u, info.senders.size());
2620 VerifyVoiceSenderInfo(info.senders[0], false); 2618 VerifyVoiceSenderInfo(info.senders[0], false);
2621 // We have added one receive stream. We should see empty stats. 2619 // We have added one receive stream. We should see empty stats.
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after
3670 TEST(WebRtcVoiceEngineTest, SetRecvCodecs) { 3668 TEST(WebRtcVoiceEngineTest, SetRecvCodecs) {
3671 cricket::WebRtcVoiceEngine engine(nullptr); 3669 cricket::WebRtcVoiceEngine engine(nullptr);
3672 std::unique_ptr<webrtc::Call> call( 3670 std::unique_ptr<webrtc::Call> call(
3673 webrtc::Call::Create(webrtc::Call::Config())); 3671 webrtc::Call::Create(webrtc::Call::Config()));
3674 cricket::WebRtcVoiceMediaChannel channel(&engine, cricket::MediaConfig(), 3672 cricket::WebRtcVoiceMediaChannel channel(&engine, cricket::MediaConfig(),
3675 cricket::AudioOptions(), call.get()); 3673 cricket::AudioOptions(), call.get());
3676 cricket::AudioRecvParameters parameters; 3674 cricket::AudioRecvParameters parameters;
3677 parameters.codecs = engine.codecs(); 3675 parameters.codecs = engine.codecs();
3678 EXPECT_TRUE(channel.SetRecvParameters(parameters)); 3676 EXPECT_TRUE(channel.SetRecvParameters(parameters));
3679 } 3677 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698