webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Macros | Functions | Variables
voe_cmd_test.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <memory>
#include <vector>
#include "gflags/gflags.h"
#include "webrtc/base/format_macros.h"
#include "webrtc/modules/audio_processing/include/audio_processing.h"
#include "webrtc/test/gtest.h"
#include "webrtc/test/testsupport/fileutils.h"
#include "webrtc/test/testsupport/trace_to_stderr.h"
#include "webrtc/typedefs.h"
#include "webrtc/voice_engine/include/voe_audio_processing.h"
#include "webrtc/voice_engine/include/voe_base.h"
#include "webrtc/voice_engine/include/voe_codec.h"
#include "webrtc/voice_engine/include/voe_errors.h"
#include "webrtc/voice_engine/include/voe_file.h"
#include "webrtc/voice_engine/include/voe_hardware.h"
#include "webrtc/voice_engine/include/voe_neteq_stats.h"
#include "webrtc/voice_engine/include/voe_network.h"
#include "webrtc/voice_engine/include/voe_rtp_rtcp.h"
#include "webrtc/voice_engine/include/voe_volume_control.h"
#include "webrtc/voice_engine/test/channel_transport/channel_transport.h"

Classes

class  MyObserver
 

Macros

#define VALIDATE
 

Functions

 DEFINE_bool (use_log_file, false, "Output logs to a file; by default they will be printed to stderr.")
 
void RunTest (std::string out_path)
 
void SetStereoIfOpus (bool use_stereo, CodecInst *codec_params)
 
void PrintCodecs (bool opus_stereo)
 
int main (int argc, char **argv)
 

Variables

VoiceEnginem_voe = NULL
 
VoEBasebase1 = NULL
 
VoECodeccodec = NULL
 
VoEVolumeControlvolume = NULL
 
VoERTP_RTCPrtp_rtcp = NULL
 
VoEAudioProcessingapm = NULL
 
VoENetworknetw = NULL
 
VoEFilefile = NULL
 
VoEHardwarehardware = NULL
 
VoENetEqStatsneteqst = NULL
 

Macro Definition Documentation

◆ VALIDATE

#define VALIDATE
Value:
if (res != 0) { \
printf("*** Error at line %i \n", __LINE__); \
printf("*** Error code = %i \n", base1->LastError()); \
}
VoEBase * base1
Definition: voe_cmd_test.cc:53
virtual int LastError()=0
res
Definition: harness.py:111

Function Documentation

◆ DEFINE_bool()

DEFINE_bool ( use_log_file  ,
false  ,
"Output logs to a file; by default they will be printed to stderr."   
)

◆ main()

int main ( int  argc,
char **  argv 
)

◆ PrintCodecs()

void PrintCodecs ( bool  opus_stereo)

◆ RunTest()

void RunTest ( std::string  out_path)

◆ SetStereoIfOpus()

void SetStereoIfOpus ( bool  use_stereo,
CodecInst codec_params 
)

Variable Documentation

◆ apm

◆ base1

VoEBase* base1 = NULL

◆ codec

VoECodec* codec = NULL

◆ file

VoEFile* file = NULL

◆ hardware

VoEHardware* hardware = NULL

◆ m_voe

VoiceEngine* m_voe = NULL

◆ neteqst

VoENetEqStats* neteqst = NULL

◆ netw

VoENetwork* netw = NULL

◆ rtp_rtcp

VoERTP_RTCP* rtp_rtcp = NULL

◆ volume

double volume = NULL