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

Side by Side Diff: voice_engine/voice_engine_fixture.cc

Issue 3018523002: Clean out unused methods from VoiceEngine and VoEBase. (Closed)
Patch Set: rebase Created 3 years, 3 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 | « voice_engine/voice_engine_fixture.h ('k') | voice_engine/voice_engine_impl.cc » ('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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 "voice_engine/voice_engine_fixture.h" 11 #include "voice_engine/voice_engine_fixture.h"
12 #include "modules/audio_processing/include/mock_audio_processing.h" 12 #include "modules/audio_processing/include/mock_audio_processing.h"
13 13
14 namespace webrtc { 14 namespace webrtc {
15 15
16 VoiceEngineFixture::VoiceEngineFixture() 16 VoiceEngineFixture::VoiceEngineFixture()
17 : voe_(VoiceEngine::Create()), 17 : voe_(VoiceEngine::Create()),
18 base_(VoEBase::GetInterface(voe_)), 18 base_(VoEBase::GetInterface(voe_)),
19 network_(VoENetwork::GetInterface(voe_)) { 19 network_(VoENetwork::GetInterface(voe_)) {
20 EXPECT_NE(nullptr, base_); 20 EXPECT_NE(nullptr, base_);
21 EXPECT_NE(nullptr, network_); 21 EXPECT_NE(nullptr, network_);
22 EXPECT_EQ(0, base_->RegisterVoiceEngineObserver(observer_));
23 apm_ = new rtc::RefCountedObject<test::MockAudioProcessing>(); 22 apm_ = new rtc::RefCountedObject<test::MockAudioProcessing>();
24 } 23 }
25 24
26 VoiceEngineFixture::~VoiceEngineFixture() { 25 VoiceEngineFixture::~VoiceEngineFixture() {
27 EXPECT_EQ(2, network_->Release()); 26 EXPECT_EQ(2, network_->Release());
28 EXPECT_EQ(0, base_->DeRegisterVoiceEngineObserver());
29 EXPECT_EQ(0, base_->Terminate()); 27 EXPECT_EQ(0, base_->Terminate());
30 EXPECT_EQ(1, base_->Release()); 28 EXPECT_EQ(1, base_->Release());
31 EXPECT_TRUE(VoiceEngine::Delete(voe_)); 29 EXPECT_TRUE(VoiceEngine::Delete(voe_));
32 } 30 }
33 31
34 } // namespace webrtc 32 } // namespace webrtc
OLDNEW
« no previous file with comments | « voice_engine/voice_engine_fixture.h ('k') | voice_engine/voice_engine_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698