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

Unified Diff: voice_engine/test/auto_test/fixtures/before_initialization_fixture.h

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/before_initialization_fixture.h
diff --git a/voice_engine/test/auto_test/fixtures/before_initialization_fixture.h b/voice_engine/test/auto_test/fixtures/before_initialization_fixture.h
deleted file mode 100644
index 3319d92434209484e87835c6c9226dc7641c41b8..0000000000000000000000000000000000000000
--- a/voice_engine/test/auto_test/fixtures/before_initialization_fixture.h
+++ /dev/null
@@ -1,54 +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.
- */
-
-#ifndef SRC_VOICE_ENGINE_MAIN_TEST_AUTO_TEST_STANDARD_TEST_BASE_H_
-#define SRC_VOICE_ENGINE_MAIN_TEST_AUTO_TEST_STANDARD_TEST_BASE_H_
-
-#include "common_types.h"
-#include "test/gmock.h"
-#include "test/gtest.h"
-#include "typedefs.h"
-#include "voice_engine/include/voe_base.h"
-#include "voice_engine/include/voe_codec.h"
-#include "voice_engine/include/voe_errors.h"
-#include "voice_engine/include/voe_file.h"
-#include "voice_engine/include/voe_network.h"
-#include "voice_engine/include/voe_rtp_rtcp.h"
-#include "voice_engine/test/auto_test/voe_test_common.h"
-
-// This convenient fixture sets up all voice engine interfaces automatically for
-// use by testing subclasses. It allocates each interface and releases it once
-// which means that if a tests allocates additional interfaces from the voice
-// engine and forgets to release it, this test will fail in the destructor.
-// It will not call any init methods.
-//
-// Implementation note:
-// The interface fetching is done in the constructor and not SetUp() since
-// this relieves our subclasses from calling SetUp in the superclass if they
-// choose to override SetUp() themselves. This is fine as googletest will
-// construct new test objects for each method.
-class BeforeInitializationFixture : public testing::Test {
- public:
- BeforeInitializationFixture();
- virtual ~BeforeInitializationFixture();
-
- protected:
- // Use this sleep function to sleep in tests.
- void Sleep(long milliseconds);
-
- webrtc::VoiceEngine* voice_engine_;
- webrtc::VoEBase* voe_base_;
- webrtc::VoECodec* voe_codec_;
- webrtc::VoERTP_RTCP* voe_rtp_rtcp_;
- webrtc::VoENetwork* voe_network_;
- webrtc::VoEFile* voe_file_;
-};
-
-#endif // SRC_VOICE_ENGINE_MAIN_TEST_AUTO_TEST_STANDARD_TEST_BASE_H_

Powered by Google App Engine
This is Rietveld 408576698