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

Side by Side Diff: webrtc/voice_engine/test/auto_test/fixtures/before_initialization_fixture.cc

Issue 1723153002: Remove the VoEDtmf interface. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 9 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) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 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 "webrtc/voice_engine/test/auto_test/fixtures/before_initialization_fixt ure.h" 11 #include "webrtc/voice_engine/test/auto_test/fixtures/before_initialization_fixt ure.h"
12 12
13 #include "webrtc/system_wrappers/include/sleep.h" 13 #include "webrtc/system_wrappers/include/sleep.h"
14 14
15 BeforeInitializationFixture::BeforeInitializationFixture() 15 BeforeInitializationFixture::BeforeInitializationFixture()
16 : voice_engine_(webrtc::VoiceEngine::Create()) { 16 : voice_engine_(webrtc::VoiceEngine::Create()) {
17 EXPECT_TRUE(voice_engine_ != NULL); 17 EXPECT_TRUE(voice_engine_ != NULL);
18 18
19 voe_base_ = webrtc::VoEBase::GetInterface(voice_engine_); 19 voe_base_ = webrtc::VoEBase::GetInterface(voice_engine_);
20 voe_codec_ = webrtc::VoECodec::GetInterface(voice_engine_); 20 voe_codec_ = webrtc::VoECodec::GetInterface(voice_engine_);
21 voe_volume_control_ = webrtc::VoEVolumeControl::GetInterface(voice_engine_); 21 voe_volume_control_ = webrtc::VoEVolumeControl::GetInterface(voice_engine_);
22 voe_dtmf_ = webrtc::VoEDtmf::GetInterface(voice_engine_);
23 voe_rtp_rtcp_ = webrtc::VoERTP_RTCP::GetInterface(voice_engine_); 22 voe_rtp_rtcp_ = webrtc::VoERTP_RTCP::GetInterface(voice_engine_);
24 voe_apm_ = webrtc::VoEAudioProcessing::GetInterface(voice_engine_); 23 voe_apm_ = webrtc::VoEAudioProcessing::GetInterface(voice_engine_);
25 voe_network_ = webrtc::VoENetwork::GetInterface(voice_engine_); 24 voe_network_ = webrtc::VoENetwork::GetInterface(voice_engine_);
26 voe_file_ = webrtc::VoEFile::GetInterface(voice_engine_); 25 voe_file_ = webrtc::VoEFile::GetInterface(voice_engine_);
27 voe_vsync_ = webrtc::VoEVideoSync::GetInterface(voice_engine_); 26 voe_vsync_ = webrtc::VoEVideoSync::GetInterface(voice_engine_);
28 voe_hardware_ = webrtc::VoEHardware::GetInterface(voice_engine_); 27 voe_hardware_ = webrtc::VoEHardware::GetInterface(voice_engine_);
29 voe_xmedia_ = webrtc::VoEExternalMedia::GetInterface(voice_engine_); 28 voe_xmedia_ = webrtc::VoEExternalMedia::GetInterface(voice_engine_);
30 voe_neteq_stats_ = webrtc::VoENetEqStats::GetInterface(voice_engine_); 29 voe_neteq_stats_ = webrtc::VoENetEqStats::GetInterface(voice_engine_);
31 } 30 }
32 31
33 BeforeInitializationFixture::~BeforeInitializationFixture() { 32 BeforeInitializationFixture::~BeforeInitializationFixture() {
34 voe_base_->Release(); 33 voe_base_->Release();
35 voe_codec_->Release(); 34 voe_codec_->Release();
36 voe_volume_control_->Release(); 35 voe_volume_control_->Release();
37 voe_dtmf_->Release();
38 voe_rtp_rtcp_->Release(); 36 voe_rtp_rtcp_->Release();
39 voe_apm_->Release(); 37 voe_apm_->Release();
40 voe_network_->Release(); 38 voe_network_->Release();
41 voe_file_->Release(); 39 voe_file_->Release();
42 voe_vsync_->Release(); 40 voe_vsync_->Release();
43 voe_hardware_->Release(); 41 voe_hardware_->Release();
44 voe_xmedia_->Release(); 42 voe_xmedia_->Release();
45 voe_neteq_stats_->Release(); 43 voe_neteq_stats_->Release();
46 44
47 EXPECT_TRUE(webrtc::VoiceEngine::Delete(voice_engine_)); 45 EXPECT_TRUE(webrtc::VoiceEngine::Delete(voice_engine_));
48 } 46 }
49 47
50 void BeforeInitializationFixture::Sleep(long milliseconds) { 48 void BeforeInitializationFixture::Sleep(long milliseconds) {
51 webrtc::SleepMs(milliseconds); 49 webrtc::SleepMs(milliseconds);
52 } 50 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698