2011-07-07 08:21:25 +00:00
|
|
|
/*
|
2012-03-22 12:56:54 +00:00
|
|
|
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
|
2011-07-07 08:21:25 +00:00
|
|
|
*
|
|
|
|
|
* 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 WEBRTC_VIDEO_ENGINE_MAIN_TEST_AUTOTEST_INTERFACE_TB_INTERFACES_H_
|
|
|
|
|
#define WEBRTC_VIDEO_ENGINE_MAIN_TEST_AUTOTEST_INTERFACE_TB_INTERFACES_H_
|
|
|
|
|
|
2012-03-22 12:56:54 +00:00
|
|
|
#include <string>
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2012-04-26 17:05:32 +00:00
|
|
|
#include "constructor_magic.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
#include "common_types.h"
|
2012-03-22 12:56:54 +00:00
|
|
|
#include "video_engine/include/vie_base.h"
|
|
|
|
|
#include "video_engine/include/vie_capture.h"
|
|
|
|
|
#include "video_engine/include/vie_codec.h"
|
|
|
|
|
#include "video_engine/include/vie_image_process.h"
|
|
|
|
|
#include "video_engine/include/vie_network.h"
|
|
|
|
|
#include "video_engine/include/vie_render.h"
|
|
|
|
|
#include "video_engine/include/vie_rtp_rtcp.h"
|
|
|
|
|
#include "video_engine/include/vie_encryption.h"
|
|
|
|
|
#include "video_engine/vie_defines.h"
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2011-11-17 10:46:59 +00:00
|
|
|
// This class deals with all the tedium of setting up video engine interfaces.
|
|
|
|
|
// It does its work in constructor and destructor, so keeping it in scope is
|
2012-03-22 12:56:54 +00:00
|
|
|
// enough. It also sets up tracing.
|
2011-11-17 10:46:59 +00:00
|
|
|
class TbInterfaces
|
2011-07-07 08:21:25 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2012-03-22 12:56:54 +00:00
|
|
|
// Sets up all interfaces and creates a trace file
|
2012-04-26 17:05:32 +00:00
|
|
|
TbInterfaces(const std::string& test_name);
|
2011-11-17 10:46:59 +00:00
|
|
|
~TbInterfaces(void);
|
|
|
|
|
|
|
|
|
|
webrtc::VideoEngine* video_engine;
|
|
|
|
|
webrtc::ViEBase* base;
|
|
|
|
|
webrtc::ViECapture* capture;
|
|
|
|
|
webrtc::ViERender* render;
|
|
|
|
|
webrtc::ViERTP_RTCP* rtp_rtcp;
|
|
|
|
|
webrtc::ViECodec* codec;
|
|
|
|
|
webrtc::ViENetwork* network;
|
|
|
|
|
webrtc::ViEImageProcess* image_process;
|
|
|
|
|
webrtc::ViEEncryption* encryption;
|
2011-07-07 08:21:25 +00:00
|
|
|
|
2011-11-23 15:23:11 +00:00
|
|
|
int LastError() {
|
2011-11-17 10:46:59 +00:00
|
|
|
return base->LastError();
|
2011-07-07 08:21:25 +00:00
|
|
|
}
|
2012-04-26 17:05:32 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
DISALLOW_COPY_AND_ASSIGN(TbInterfaces);
|
2011-07-07 08:21:25 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // WEBRTC_VIDEO_ENGINE_MAIN_TEST_AUTOTEST_INTERFACE_TB_INTERFACES_H_
|