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

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

Issue 3007383002: Replace voe_auto_test (Closed)
Patch Set: reviewer comment 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
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11 #include "voice_engine/test/auto_test/fixtures/before_initialization_fixture.h"
12
13 #include "system_wrappers/include/sleep.h"
14
15 BeforeInitializationFixture::BeforeInitializationFixture()
16 : voice_engine_(webrtc::VoiceEngine::Create()) {
17 EXPECT_TRUE(voice_engine_ != NULL);
18
19 voe_base_ = webrtc::VoEBase::GetInterface(voice_engine_);
20 voe_codec_ = webrtc::VoECodec::GetInterface(voice_engine_);
21 voe_rtp_rtcp_ = webrtc::VoERTP_RTCP::GetInterface(voice_engine_);
22 voe_network_ = webrtc::VoENetwork::GetInterface(voice_engine_);
23 voe_file_ = webrtc::VoEFile::GetInterface(voice_engine_);
24 }
25
26 BeforeInitializationFixture::~BeforeInitializationFixture() {
27 voe_base_->Release();
28 voe_codec_->Release();
29 voe_rtp_rtcp_->Release();
30 voe_network_->Release();
31 voe_file_->Release();
32
33 EXPECT_TRUE(webrtc::VoiceEngine::Delete(voice_engine_));
34 }
35
36 void BeforeInitializationFixture::Sleep(long milliseconds) {
37 webrtc::SleepMs(milliseconds);
38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698