| 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 "talk/session/media/channel.h" | 11 #include "webrtc/pc/channel.h" |
| 12 #include "webrtc/base/arraysize.h" | 12 #include "webrtc/base/arraysize.h" |
| 13 #include "webrtc/base/byteorder.h" | 13 #include "webrtc/base/byteorder.h" |
| 14 #include "webrtc/base/gunit.h" | 14 #include "webrtc/base/gunit.h" |
| 15 #include "webrtc/call.h" | 15 #include "webrtc/call.h" |
| 16 #include "webrtc/p2p/base/faketransportcontroller.h" | 16 #include "webrtc/p2p/base/faketransportcontroller.h" |
| 17 #include "webrtc/test/field_trial.h" | 17 #include "webrtc/test/field_trial.h" |
| 18 #include "webrtc/media/base/constants.h" | 18 #include "webrtc/media/base/constants.h" |
| 19 #include "webrtc/media/base/fakemediaengine.h" | 19 #include "webrtc/media/base/fakemediaengine.h" |
| 20 #include "webrtc/media/base/fakenetworkinterface.h" | 20 #include "webrtc/media/base/fakenetworkinterface.h" |
| 21 #include "webrtc/media/base/fakertp.h" | 21 #include "webrtc/media/base/fakertp.h" |
| (...skipping 3254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3276 cricket::WebRtcVoiceEngine engine; | 3276 cricket::WebRtcVoiceEngine engine; |
| 3277 EXPECT_TRUE(engine.Init(rtc::Thread::Current())); | 3277 EXPECT_TRUE(engine.Init(rtc::Thread::Current())); |
| 3278 rtc::scoped_ptr<webrtc::Call> call( | 3278 rtc::scoped_ptr<webrtc::Call> call( |
| 3279 webrtc::Call::Create(webrtc::Call::Config())); | 3279 webrtc::Call::Create(webrtc::Call::Config())); |
| 3280 cricket::WebRtcVoiceMediaChannel channel(&engine, cricket::AudioOptions(), | 3280 cricket::WebRtcVoiceMediaChannel channel(&engine, cricket::AudioOptions(), |
| 3281 call.get()); | 3281 call.get()); |
| 3282 cricket::AudioRecvParameters parameters; | 3282 cricket::AudioRecvParameters parameters; |
| 3283 parameters.codecs = engine.codecs(); | 3283 parameters.codecs = engine.codecs(); |
| 3284 EXPECT_TRUE(channel.SetRecvParameters(parameters)); | 3284 EXPECT_TRUE(channel.SetRecvParameters(parameters)); |
| 3285 } | 3285 } |
| OLD | NEW |