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

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

Issue 1934513002: Remove usage of VoENetwork from VoEWrapper and FakeWebRtcVoiceEngine. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 7 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 const uint32_t kSsrc3 = 3; 51 const uint32_t kSsrc3 = 3;
52 const uint32_t kSsrcs4[] = { 1, 2, 3, 4 }; 52 const uint32_t kSsrcs4[] = { 1, 2, 3, 4 };
53 53
54 class FakeVoEWrapper : public cricket::VoEWrapper { 54 class FakeVoEWrapper : public cricket::VoEWrapper {
55 public: 55 public:
56 explicit FakeVoEWrapper(cricket::FakeWebRtcVoiceEngine* engine) 56 explicit FakeVoEWrapper(cricket::FakeWebRtcVoiceEngine* engine)
57 : cricket::VoEWrapper(engine, // processing 57 : cricket::VoEWrapper(engine, // processing
58 engine, // base 58 engine, // base
59 engine, // codec 59 engine, // codec
60 engine, // hw 60 engine, // hw
61 engine, // network
62 engine, // rtp 61 engine, // rtp
63 engine) { // volume 62 engine) { // volume
64 } 63 }
65 }; 64 };
66 } // namespace 65 } // namespace
67 66
68 // Tests that our stub library "works". 67 // Tests that our stub library "works".
69 TEST(WebRtcVoiceEngineTestStubLibrary, StartupShutdown) { 68 TEST(WebRtcVoiceEngineTestStubLibrary, StartupShutdown) {
70 StrictMock<webrtc::test::MockAudioDeviceModule> adm; 69 StrictMock<webrtc::test::MockAudioDeviceModule> adm;
71 EXPECT_CALL(adm, AddRef()).WillOnce(Return(0)); 70 EXPECT_CALL(adm, AddRef()).WillOnce(Return(0));
(...skipping 3525 matching lines...) Expand 10 before | Expand all | Expand 10 after
3597 TEST(WebRtcVoiceEngineTest, SetRecvCodecs) { 3596 TEST(WebRtcVoiceEngineTest, SetRecvCodecs) {
3598 cricket::WebRtcVoiceEngine engine(nullptr); 3597 cricket::WebRtcVoiceEngine engine(nullptr);
3599 std::unique_ptr<webrtc::Call> call( 3598 std::unique_ptr<webrtc::Call> call(
3600 webrtc::Call::Create(webrtc::Call::Config())); 3599 webrtc::Call::Create(webrtc::Call::Config()));
3601 cricket::WebRtcVoiceMediaChannel channel(&engine, cricket::MediaConfig(), 3600 cricket::WebRtcVoiceMediaChannel channel(&engine, cricket::MediaConfig(),
3602 cricket::AudioOptions(), call.get()); 3601 cricket::AudioOptions(), call.get());
3603 cricket::AudioRecvParameters parameters; 3602 cricket::AudioRecvParameters parameters;
3604 parameters.codecs = engine.codecs(); 3603 parameters.codecs = engine.codecs();
3605 EXPECT_TRUE(channel.SetRecvParameters(parameters)); 3604 EXPECT_TRUE(channel.SetRecvParameters(parameters));
3606 } 3605 }
OLDNEW
« webrtc/media/engine/webrtcvoiceengine.cc ('K') | « webrtc/media/engine/webrtcvoiceengine.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698