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

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

Issue 1684163002: Rename webrtc/media/webrtc -> webrtc/media/engine (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rebase f396f6085f9e4f16f37471a7828e3e31308c0d52 #11590 Created 4 years, 10 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
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine.cc ('k') | webrtc/media/media.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 #include "talk/session/media/channel.h" 11 #include "talk/session/media/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"
22 #include "webrtc/media/webrtc/fakewebrtccall.h" 22 #include "webrtc/media/engine/fakewebrtccall.h"
23 #include "webrtc/media/webrtc/fakewebrtcvoiceengine.h" 23 #include "webrtc/media/engine/fakewebrtcvoiceengine.h"
24 #include "webrtc/media/webrtc/webrtcvoiceengine.h" 24 #include "webrtc/media/engine/webrtcvoiceengine.h"
25 25
26 using cricket::kRtpAudioLevelHeaderExtension; 26 using cricket::kRtpAudioLevelHeaderExtension;
27 using cricket::kRtpAbsoluteSenderTimeHeaderExtension; 27 using cricket::kRtpAbsoluteSenderTimeHeaderExtension;
28 28
29 namespace { 29 namespace {
30 30
31 const cricket::AudioCodec kPcmuCodec(0, "PCMU", 8000, 64000, 1, 0); 31 const cricket::AudioCodec kPcmuCodec(0, "PCMU", 8000, 64000, 1, 0);
32 const cricket::AudioCodec kIsacCodec(103, "ISAC", 16000, 32000, 1, 0); 32 const cricket::AudioCodec kIsacCodec(103, "ISAC", 16000, 32000, 1, 0);
33 const cricket::AudioCodec kOpusCodec(111, "opus", 48000, 64000, 2, 0); 33 const cricket::AudioCodec kOpusCodec(111, "opus", 48000, 64000, 2, 0);
34 const cricket::AudioCodec kG722CodecVoE(9, "G722", 16000, 64000, 1, 0); 34 const cricket::AudioCodec kG722CodecVoE(9, "G722", 16000, 64000, 1, 0);
(...skipping 3241 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « webrtc/media/engine/webrtcvoiceengine.cc ('k') | webrtc/media/media.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698