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

Unified Diff: voice_engine/test/auto_test/fixtures/after_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 side-by-side diff with in-line comments
Download patch
Index: voice_engine/test/auto_test/fixtures/after_initialization_fixture.cc
diff --git a/voice_engine/test/auto_test/fixtures/after_initialization_fixture.cc b/voice_engine/test/auto_test/fixtures/after_initialization_fixture.cc
deleted file mode 100644
index 6aa6d6ef462d5163f16f98eb96ad635fd6ff048c..0000000000000000000000000000000000000000
--- a/voice_engine/test/auto_test/fixtures/after_initialization_fixture.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#include "modules/audio_processing/include/audio_processing.h"
-#include "voice_engine/test/auto_test/fixtures/after_initialization_fixture.h"
-
-class TestErrorObserver : public webrtc::VoiceEngineObserver {
- public:
- TestErrorObserver() {}
- virtual ~TestErrorObserver() {}
- void CallbackOnError(int channel, int error_code) {
- ADD_FAILURE() << "Unexpected error on channel " << channel <<
- ": error code " << error_code;
- }
-};
-
-AfterInitializationFixture::AfterInitializationFixture()
- : error_observer_(new TestErrorObserver()) {
- webrtc::Config config;
- config.Set<webrtc::ExperimentalAgc>(new webrtc::ExperimentalAgc(false));
- webrtc::AudioProcessing* audioproc = webrtc::AudioProcessing::Create(config);
-
- EXPECT_EQ(0, voe_base_->Init(NULL, audioproc));
- EXPECT_EQ(0, voe_base_->RegisterVoiceEngineObserver(*error_observer_));
-}
-
-AfterInitializationFixture::~AfterInitializationFixture() {
- EXPECT_EQ(0, voe_base_->DeRegisterVoiceEngineObserver());
-}

Powered by Google App Engine
This is Rietveld 408576698