| 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 |
| 11 #include <memory> | 11 #include <memory> |
| 12 | 12 |
| 13 #include "webrtc/pc/channel.h" | 13 #include "webrtc/pc/channel.h" |
| 14 #include "webrtc/base/arraysize.h" | 14 #include "webrtc/base/arraysize.h" |
| 15 #include "webrtc/base/byteorder.h" | 15 #include "webrtc/base/byteorder.h" |
| 16 #include "webrtc/base/gunit.h" | 16 #include "webrtc/base/gunit.h" |
| 17 #include "webrtc/call.h" | 17 #include "webrtc/call.h" |
| 18 #include "webrtc/p2p/base/faketransportcontroller.h" | 18 #include "webrtc/p2p/base/faketransportcontroller.h" |
| 19 #include "webrtc/test/field_trial.h" | 19 #include "webrtc/test/field_trial.h" |
| 20 #include "webrtc/media/base/constants.h" | |
| 21 #include "webrtc/media/base/fakemediaengine.h" | 20 #include "webrtc/media/base/fakemediaengine.h" |
| 22 #include "webrtc/media/base/fakenetworkinterface.h" | 21 #include "webrtc/media/base/fakenetworkinterface.h" |
| 23 #include "webrtc/media/base/fakertp.h" | 22 #include "webrtc/media/base/fakertp.h" |
| 23 #include "webrtc/media/base/mediaconstants.h" |
| 24 #include "webrtc/media/engine/fakewebrtccall.h" | 24 #include "webrtc/media/engine/fakewebrtccall.h" |
| 25 #include "webrtc/media/engine/fakewebrtcvoiceengine.h" | 25 #include "webrtc/media/engine/fakewebrtcvoiceengine.h" |
| 26 #include "webrtc/media/engine/webrtcvoiceengine.h" | 26 #include "webrtc/media/engine/webrtcvoiceengine.h" |
| 27 | 27 |
| 28 using cricket::kRtpAudioLevelHeaderExtension; | 28 using cricket::kRtpAudioLevelHeaderExtension; |
| 29 using cricket::kRtpAbsoluteSenderTimeHeaderExtension; | 29 using cricket::kRtpAbsoluteSenderTimeHeaderExtension; |
| 30 | 30 |
| 31 namespace { | 31 namespace { |
| 32 | 32 |
| 33 const cricket::AudioCodec kPcmuCodec(0, "PCMU", 8000, 64000, 1, 0); | 33 const cricket::AudioCodec kPcmuCodec(0, "PCMU", 8000, 64000, 1, 0); |
| (...skipping 3258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3292 cricket::WebRtcVoiceEngine engine; | 3292 cricket::WebRtcVoiceEngine engine; |
| 3293 EXPECT_TRUE(engine.Init(rtc::Thread::Current())); | 3293 EXPECT_TRUE(engine.Init(rtc::Thread::Current())); |
| 3294 std::unique_ptr<webrtc::Call> call( | 3294 std::unique_ptr<webrtc::Call> call( |
| 3295 webrtc::Call::Create(webrtc::Call::Config())); | 3295 webrtc::Call::Create(webrtc::Call::Config())); |
| 3296 cricket::WebRtcVoiceMediaChannel channel(&engine, cricket::MediaConfig(), | 3296 cricket::WebRtcVoiceMediaChannel channel(&engine, cricket::MediaConfig(), |
| 3297 cricket::AudioOptions(), call.get()); | 3297 cricket::AudioOptions(), call.get()); |
| 3298 cricket::AudioRecvParameters parameters; | 3298 cricket::AudioRecvParameters parameters; |
| 3299 parameters.codecs = engine.codecs(); | 3299 parameters.codecs = engine.codecs(); |
| 3300 EXPECT_TRUE(channel.SetRecvParameters(parameters)); | 3300 EXPECT_TRUE(channel.SetRecvParameters(parameters)); |
| 3301 } | 3301 } |
| OLD | NEW |