OLD | NEW |
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 3426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3437 if (it->name == "CN" && it->clockrate == 16000) { | 3437 if (it->name == "CN" && it->clockrate == 16000) { |
3438 EXPECT_EQ(105, it->id); | 3438 EXPECT_EQ(105, it->id); |
3439 } else if (it->name == "CN" && it->clockrate == 32000) { | 3439 } else if (it->name == "CN" && it->clockrate == 32000) { |
3440 EXPECT_EQ(106, it->id); | 3440 EXPECT_EQ(106, it->id); |
3441 } else if (it->name == "ISAC" && it->clockrate == 16000) { | 3441 } else if (it->name == "ISAC" && it->clockrate == 16000) { |
3442 EXPECT_EQ(103, it->id); | 3442 EXPECT_EQ(103, it->id); |
3443 } else if (it->name == "ISAC" && it->clockrate == 32000) { | 3443 } else if (it->name == "ISAC" && it->clockrate == 32000) { |
3444 EXPECT_EQ(104, it->id); | 3444 EXPECT_EQ(104, it->id); |
3445 } else if (it->name == "G722" && it->clockrate == 8000) { | 3445 } else if (it->name == "G722" && it->clockrate == 8000) { |
3446 EXPECT_EQ(9, it->id); | 3446 EXPECT_EQ(9, it->id); |
3447 } else if (it->name == "telephone-event") { | 3447 } else if (it->name == "telephone-event" && it->clockrate == 8000) { |
3448 EXPECT_EQ(126, it->id); | 3448 EXPECT_EQ(126, it->id); |
3449 } else if (it->name == "opus") { | 3449 } else if (it->name == "opus") { |
3450 EXPECT_EQ(111, it->id); | 3450 EXPECT_EQ(111, it->id); |
3451 ASSERT_TRUE(it->params.find("minptime") != it->params.end()); | 3451 ASSERT_TRUE(it->params.find("minptime") != it->params.end()); |
3452 EXPECT_EQ("10", it->params.find("minptime")->second); | 3452 EXPECT_EQ("10", it->params.find("minptime")->second); |
3453 ASSERT_TRUE(it->params.find("useinbandfec") != it->params.end()); | 3453 ASSERT_TRUE(it->params.find("useinbandfec") != it->params.end()); |
3454 EXPECT_EQ("1", it->params.find("useinbandfec")->second); | 3454 EXPECT_EQ("1", it->params.find("useinbandfec")->second); |
3455 } | 3455 } |
3456 } | 3456 } |
3457 } | 3457 } |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3493 cricket::WebRtcVoiceEngine engine( | 3493 cricket::WebRtcVoiceEngine engine( |
3494 nullptr, webrtc::CreateBuiltinAudioDecoderFactory()); | 3494 nullptr, webrtc::CreateBuiltinAudioDecoderFactory()); |
3495 std::unique_ptr<webrtc::Call> call( | 3495 std::unique_ptr<webrtc::Call> call( |
3496 webrtc::Call::Create(webrtc::Call::Config())); | 3496 webrtc::Call::Create(webrtc::Call::Config())); |
3497 cricket::WebRtcVoiceMediaChannel channel(&engine, cricket::MediaConfig(), | 3497 cricket::WebRtcVoiceMediaChannel channel(&engine, cricket::MediaConfig(), |
3498 cricket::AudioOptions(), call.get()); | 3498 cricket::AudioOptions(), call.get()); |
3499 cricket::AudioRecvParameters parameters; | 3499 cricket::AudioRecvParameters parameters; |
3500 parameters.codecs = engine.recv_codecs(); | 3500 parameters.codecs = engine.recv_codecs(); |
3501 EXPECT_TRUE(channel.SetRecvParameters(parameters)); | 3501 EXPECT_TRUE(channel.SetRecvParameters(parameters)); |
3502 } | 3502 } |
OLD | NEW |