VoE: Remove unused interfaces
BUG=4690 I have removed methods in VoE interfaces that were marked to be removed. I have removed them also in fake and mock implementations. I have also updated the callers in various ways: 1. Project win_test had some calls to the removed methods, but it turned out that the project is not used anymore, so I removed it entirely. 2. There were some calls to removed methods in jni methods. I have removed couple of jni methods as now they seem to do nothing. 3. With the remaining callers I just removed the calls to removed methods. R=pbos@webrtc.org Review URL: https://webrtc-codereview.appspot.com/53519004 Cr-Commit-Position: refs/heads/master@{#9281}
This commit is contained in:
parent
32c2023fb6
commit
f09e09c7ee
@ -512,8 +512,6 @@ class FakeWebRtcVoiceEngine
|
||||
}
|
||||
WEBRTC_STUB(GetVersion, (char version[1024]));
|
||||
WEBRTC_STUB(LastError, ());
|
||||
WEBRTC_STUB(SetOnHoldStatus, (int, bool, webrtc::OnHoldModes));
|
||||
WEBRTC_STUB(GetOnHoldStatus, (int, bool&, webrtc::OnHoldModes&));
|
||||
WEBRTC_FUNC(AssociateSendChannel, (int channel,
|
||||
int accociate_send_channel)) {
|
||||
WEBRTC_CHECK_CHANNEL(channel);
|
||||
@ -577,14 +575,6 @@ class FakeWebRtcVoiceEngine
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
WEBRTC_STUB(SetAMREncFormat, (int channel, webrtc::AmrMode mode));
|
||||
WEBRTC_STUB(SetAMRDecFormat, (int channel, webrtc::AmrMode mode));
|
||||
WEBRTC_STUB(SetAMRWbEncFormat, (int channel, webrtc::AmrMode mode));
|
||||
WEBRTC_STUB(SetAMRWbDecFormat, (int channel, webrtc::AmrMode mode));
|
||||
WEBRTC_STUB(SetISACInitTargetRate, (int channel, int rateBps,
|
||||
bool useFixedFrameSize));
|
||||
WEBRTC_STUB(SetISACMaxRate, (int channel, int rateBps));
|
||||
WEBRTC_STUB(SetISACMaxPayloadSize, (int channel, int sizeBytes));
|
||||
WEBRTC_FUNC(SetRecPayloadType, (int channel,
|
||||
const webrtc::CodecInst& codec)) {
|
||||
WEBRTC_CHECK_CHANNEL(channel);
|
||||
@ -722,9 +712,6 @@ class FakeWebRtcVoiceEngine
|
||||
dtmf_info_.dtmf_length_ms = length_ms;
|
||||
return 0;
|
||||
}
|
||||
WEBRTC_STUB(StartPlayingDtmfTone,
|
||||
(int eventCode, int attenuationDb = 10));
|
||||
WEBRTC_STUB(StopPlayingDtmfTone, ());
|
||||
|
||||
// webrtc::VoEFile
|
||||
WEBRTC_FUNC(StartPlayingFileLocally, (int channel, const char* fileNameUTF8,
|
||||
@ -752,7 +739,6 @@ class FakeWebRtcVoiceEngine
|
||||
WEBRTC_CHECK_CHANNEL(channel);
|
||||
return (channels_[channel]->file) ? 1 : 0;
|
||||
}
|
||||
WEBRTC_STUB(ScaleLocalFilePlayout, (int channel, float scale));
|
||||
WEBRTC_STUB(StartPlayingFileAsMicrophone, (int channel,
|
||||
const char* fileNameUTF8,
|
||||
bool loop,
|
||||
@ -766,7 +752,6 @@ class FakeWebRtcVoiceEngine
|
||||
float volumeScaling));
|
||||
WEBRTC_STUB(StopPlayingFileAsMicrophone, (int channel));
|
||||
WEBRTC_STUB(IsPlayingFileAsMicrophone, (int channel));
|
||||
WEBRTC_STUB(ScaleFileAsMicrophonePlayout, (int channel, float scale));
|
||||
WEBRTC_STUB(StartRecordingPlayout, (int channel, const char* fileNameUTF8,
|
||||
webrtc::CodecInst* compression,
|
||||
int maxSizeBytes));
|
||||
@ -797,30 +782,8 @@ class FakeWebRtcVoiceEngine
|
||||
recording_microphone_ = false;
|
||||
return 0;
|
||||
}
|
||||
WEBRTC_STUB(ConvertPCMToWAV, (const char* fileNameInUTF8,
|
||||
const char* fileNameOutUTF8));
|
||||
WEBRTC_STUB(ConvertPCMToWAV, (webrtc::InStream* streamIn,
|
||||
webrtc::OutStream* streamOut));
|
||||
WEBRTC_STUB(ConvertWAVToPCM, (const char* fileNameInUTF8,
|
||||
const char* fileNameOutUTF8));
|
||||
WEBRTC_STUB(ConvertWAVToPCM, (webrtc::InStream* streamIn,
|
||||
webrtc::OutStream* streamOut));
|
||||
WEBRTC_STUB(ConvertPCMToCompressed, (const char* fileNameInUTF8,
|
||||
const char* fileNameOutUTF8,
|
||||
webrtc::CodecInst* compression));
|
||||
WEBRTC_STUB(ConvertPCMToCompressed, (webrtc::InStream* streamIn,
|
||||
webrtc::OutStream* streamOut,
|
||||
webrtc::CodecInst* compression));
|
||||
WEBRTC_STUB(ConvertCompressedToPCM, (const char* fileNameInUTF8,
|
||||
const char* fileNameOutUTF8));
|
||||
WEBRTC_STUB(ConvertCompressedToPCM, (webrtc::InStream* streamIn,
|
||||
webrtc::OutStream* streamOut));
|
||||
WEBRTC_STUB(GetFileDuration, (const char* fileNameUTF8, int& durationMs,
|
||||
webrtc::FileFormats format));
|
||||
WEBRTC_STUB(GetPlaybackPosition, (int channel, int& positionMs));
|
||||
|
||||
// webrtc::VoEHardware
|
||||
WEBRTC_STUB(GetCPULoad, (int&));
|
||||
WEBRTC_FUNC(GetNumOfRecordingDevices, (int& num)) {
|
||||
return GetNumDevices(num);
|
||||
}
|
||||
@ -837,12 +800,6 @@ class FakeWebRtcVoiceEngine
|
||||
WEBRTC_STUB(SetPlayoutDevice, (int));
|
||||
WEBRTC_STUB(SetAudioDeviceLayer, (webrtc::AudioLayers));
|
||||
WEBRTC_STUB(GetAudioDeviceLayer, (webrtc::AudioLayers&));
|
||||
WEBRTC_STUB(GetPlayoutDeviceStatus, (bool&));
|
||||
WEBRTC_STUB(GetRecordingDeviceStatus, (bool&));
|
||||
WEBRTC_STUB(ResetAudioDevice, ());
|
||||
WEBRTC_STUB(AudioDeviceControl, (unsigned int, unsigned int, unsigned int));
|
||||
WEBRTC_STUB(SetLoudspeakerStatus, (bool enable));
|
||||
WEBRTC_STUB(GetLoudspeakerStatus, (bool& enabled));
|
||||
WEBRTC_FUNC(SetRecordingSampleRate, (unsigned int samples_per_sec)) {
|
||||
recording_sample_rate_ = samples_per_sec;
|
||||
return 0;
|
||||
@ -860,7 +817,6 @@ class FakeWebRtcVoiceEngine
|
||||
return 0;
|
||||
}
|
||||
WEBRTC_STUB(EnableBuiltInAEC, (bool enable));
|
||||
virtual bool BuiltInAECIsEnabled() const { return true; }
|
||||
virtual bool BuiltInAECIsAvailable() const { return false; }
|
||||
|
||||
// webrtc::VoENetEqStats
|
||||
@ -912,9 +868,6 @@ class FakeWebRtcVoiceEngine
|
||||
size_t length));
|
||||
|
||||
// webrtc::VoERTP_RTCP
|
||||
WEBRTC_STUB(RegisterRTPObserver, (int channel,
|
||||
webrtc::VoERTPObserver& observer));
|
||||
WEBRTC_STUB(DeRegisterRTPObserver, (int channel));
|
||||
WEBRTC_FUNC(SetLocalSSRC, (int channel, unsigned int ssrc)) {
|
||||
WEBRTC_CHECK_CHANNEL(channel);
|
||||
channels_[channel]->send_ssrc = ssrc;
|
||||
@ -955,7 +908,6 @@ class FakeWebRtcVoiceEngine
|
||||
return 0;
|
||||
}
|
||||
|
||||
WEBRTC_STUB(GetRemoteCSRCs, (int channel, unsigned int arrCSRC[15]));
|
||||
WEBRTC_STUB(SetRTCPStatus, (int channel, bool enable));
|
||||
WEBRTC_STUB(GetRTCPStatus, (int channel, bool& enabled));
|
||||
WEBRTC_STUB(SetRTCP_CNAME, (int channel, const char cname[256]));
|
||||
@ -967,8 +919,6 @@ class FakeWebRtcVoiceEngine
|
||||
unsigned int& playoutTimestamp,
|
||||
unsigned int* jitter,
|
||||
unsigned short* fractionLost));
|
||||
WEBRTC_STUB(GetRemoteRTCPSenderInfo, (int channel,
|
||||
webrtc::SenderInfo* sender_info));
|
||||
WEBRTC_FUNC(GetRemoteRTCPReportBlocks,
|
||||
(int channel, std::vector<webrtc::ReportBlock>* receive_blocks)) {
|
||||
WEBRTC_CHECK_CHANNEL(channel);
|
||||
@ -986,11 +936,6 @@ class FakeWebRtcVoiceEngine
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
WEBRTC_STUB(SendApplicationDefinedRTCPPacket, (int channel,
|
||||
unsigned char subType,
|
||||
unsigned int name,
|
||||
const char* data,
|
||||
unsigned short dataLength));
|
||||
WEBRTC_STUB(GetRTPStatistics, (int channel, unsigned int& averageJitterMs,
|
||||
unsigned int& maxJitterMs,
|
||||
unsigned int& discardedPackets));
|
||||
@ -1035,11 +980,6 @@ class FakeWebRtcVoiceEngine
|
||||
channels_[channel]->nack_max_packets = maxNoPackets;
|
||||
return 0;
|
||||
}
|
||||
WEBRTC_STUB(InsertExtraRTPPacket, (int channel, unsigned char payloadType,
|
||||
bool markerBit, const char* payloadData,
|
||||
unsigned short payloadSize));
|
||||
WEBRTC_STUB(GetLastRemoteTimeStamp, (int channel,
|
||||
uint32_t* lastRemoteTimeStamp));
|
||||
|
||||
// webrtc::VoEVideoSync
|
||||
WEBRTC_STUB(GetPlayoutBufferSize, (int& bufferMs));
|
||||
@ -1056,14 +996,10 @@ class FakeWebRtcVoiceEngine
|
||||
// webrtc::VoEVolumeControl
|
||||
WEBRTC_STUB(SetSpeakerVolume, (unsigned int));
|
||||
WEBRTC_STUB(GetSpeakerVolume, (unsigned int&));
|
||||
WEBRTC_STUB(SetSystemOutputMute, (bool));
|
||||
WEBRTC_STUB(GetSystemOutputMute, (bool&));
|
||||
WEBRTC_STUB(SetMicVolume, (unsigned int));
|
||||
WEBRTC_STUB(GetMicVolume, (unsigned int&));
|
||||
WEBRTC_STUB(SetInputMute, (int, bool));
|
||||
WEBRTC_STUB(GetInputMute, (int, bool&));
|
||||
WEBRTC_STUB(SetSystemInputMute, (bool));
|
||||
WEBRTC_STUB(GetSystemInputMute, (bool&));
|
||||
WEBRTC_STUB(GetSpeechInputLevel, (unsigned int&));
|
||||
WEBRTC_STUB(GetSpeechOutputLevel, (int, unsigned int&));
|
||||
WEBRTC_STUB(GetSpeechInputLevelFullRange, (unsigned int&));
|
||||
@ -1249,14 +1185,6 @@ class FakeWebRtcVoiceEngine
|
||||
media_processor_ = NULL;
|
||||
return 0;
|
||||
}
|
||||
WEBRTC_STUB(SetExternalRecordingStatus, (bool enable));
|
||||
WEBRTC_STUB(SetExternalPlayoutStatus, (bool enable));
|
||||
WEBRTC_STUB(ExternalRecordingInsertData,
|
||||
(const int16_t speechData10ms[], int lengthSamples,
|
||||
int samplingFreqHz, int current_delay_ms));
|
||||
WEBRTC_STUB(ExternalPlayoutGetData,
|
||||
(int16_t speechData10ms[], int samplingFreqHz,
|
||||
int current_delay_ms, int& lengthSamples));
|
||||
WEBRTC_STUB(GetAudioFrame, (int channel, int desired_sample_rate_hz,
|
||||
webrtc::AudioFrame* frame));
|
||||
WEBRTC_STUB(SetExternalMixing, (int channel, bool enable));
|
||||
|
@ -273,12 +273,6 @@ JOWW(jint, VoiceEngine_setSpeakerVolume)(JNIEnv* jni, jobject j_voe,
|
||||
return voe_data->volume->SetSpeakerVolume(level);
|
||||
}
|
||||
|
||||
JOWW(jint, VoiceEngine_setLoudspeakerStatus)(JNIEnv* jni, jobject j_voe,
|
||||
jboolean enable) {
|
||||
VoiceEngineData* voe_data = GetVoiceEngineData(jni, j_voe);
|
||||
return voe_data->hardware->SetLoudspeakerStatus(enable);
|
||||
}
|
||||
|
||||
JOWW(jint, VoiceEngine_startPlayingFileLocally)(JNIEnv* jni, jobject j_voe,
|
||||
jint channel,
|
||||
jstring j_filename,
|
||||
|
@ -181,18 +181,7 @@ class WEBRTC_DLLEXPORT VoEBase {
|
||||
// Used for obtaining RTT for a receive-only channel.
|
||||
// One should be careful not to crate a circular association, e.g.,
|
||||
// 1 <- 2 <- 1.
|
||||
virtual int AssociateSendChannel(int channel, int accociate_send_channel) =
|
||||
0;
|
||||
|
||||
// To be removed. Don't use.
|
||||
virtual int SetOnHoldStatus(int channel,
|
||||
bool enable,
|
||||
OnHoldModes mode = kHoldSendAndPlay) {
|
||||
return -1;
|
||||
}
|
||||
virtual int GetOnHoldStatus(int channel, bool& enabled, OnHoldModes& mode) {
|
||||
return -1;
|
||||
}
|
||||
virtual int AssociateSendChannel(int channel, int accociate_send_channel) = 0;
|
||||
|
||||
protected:
|
||||
VoEBase() {}
|
||||
|
@ -131,19 +131,6 @@ class WEBRTC_DLLEXPORT VoECodec {
|
||||
// success, and -1 if failed.
|
||||
virtual int SetOpusDtx(int channel, bool enable_dtx) = 0;
|
||||
|
||||
// Don't use. To be removed.
|
||||
virtual int SetAMREncFormat(int channel, AmrMode mode) { return -1; }
|
||||
virtual int SetAMRDecFormat(int channel, AmrMode mode) { return -1; }
|
||||
virtual int SetAMRWbEncFormat(int channel, AmrMode mode) { return -1; }
|
||||
virtual int SetAMRWbDecFormat(int channel, AmrMode mode) { return -1; }
|
||||
virtual int SetISACInitTargetRate(int channel,
|
||||
int rateBps,
|
||||
bool useFixedFrameSize = false) {
|
||||
return -1;
|
||||
}
|
||||
virtual int SetISACMaxRate(int channel, int rateBps) { return -1; }
|
||||
virtual int SetISACMaxPayloadSize(int channel, int sizeBytes) { return -1; }
|
||||
|
||||
protected:
|
||||
VoECodec() {}
|
||||
virtual ~VoECodec() {}
|
||||
|
@ -82,12 +82,6 @@ class WEBRTC_DLLEXPORT VoEDtmf {
|
||||
int lengthMs = 200,
|
||||
int attenuationDb = 10) = 0;
|
||||
|
||||
// To be removed. Don't use.
|
||||
virtual int StartPlayingDtmfTone(int eventCode, int attenuationDb = 10) {
|
||||
return -1;
|
||||
}
|
||||
virtual int StopPlayingDtmfTone() { return -1; }
|
||||
|
||||
protected:
|
||||
VoEDtmf() {}
|
||||
virtual ~VoEDtmf() {}
|
||||
|
@ -75,22 +75,6 @@ class WEBRTC_DLLEXPORT VoEExternalMedia {
|
||||
// Sets the state of external mixing. Cannot be changed during playback.
|
||||
virtual int SetExternalMixing(int channel, bool enable) = 0;
|
||||
|
||||
// Don't use. To be removed.
|
||||
virtual int SetExternalRecordingStatus(bool enable) { return -1; }
|
||||
virtual int SetExternalPlayoutStatus(bool enable) { return -1; }
|
||||
virtual int ExternalRecordingInsertData(const int16_t speechData10ms[],
|
||||
int lengthSamples,
|
||||
int samplingFreqHz,
|
||||
int current_delay_ms) {
|
||||
return -1;
|
||||
}
|
||||
virtual int ExternalPlayoutGetData(int16_t speechData10ms[],
|
||||
int samplingFreqHz,
|
||||
int current_delay_ms,
|
||||
int& lengthSamples) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
protected:
|
||||
VoEExternalMedia() {}
|
||||
virtual ~VoEExternalMedia() {}
|
||||
|
@ -134,49 +134,6 @@ class WEBRTC_DLLEXPORT VoEFile {
|
||||
// Stops recording the microphone signal.
|
||||
virtual int StopRecordingMicrophone() = 0;
|
||||
|
||||
// Don't use. To be removed.
|
||||
virtual int ScaleLocalFilePlayout(int channel, float scale) { return -1; }
|
||||
virtual int ScaleFileAsMicrophonePlayout(int channel, float scale) {
|
||||
return -1;
|
||||
}
|
||||
virtual int GetFileDuration(const char* fileNameUTF8,
|
||||
int& durationMs,
|
||||
FileFormats format = kFileFormatPcm16kHzFile) {
|
||||
return -1;
|
||||
}
|
||||
virtual int GetPlaybackPosition(int channel, int& positionMs) { return -1; }
|
||||
virtual int ConvertPCMToWAV(const char* fileNameInUTF8,
|
||||
const char* fileNameOutUTF8) {
|
||||
return -1;
|
||||
}
|
||||
virtual int ConvertPCMToWAV(InStream* streamIn, OutStream* streamOut) {
|
||||
return -1;
|
||||
}
|
||||
virtual int ConvertWAVToPCM(const char* fileNameInUTF8,
|
||||
const char* fileNameOutUTF8) {
|
||||
return -1;
|
||||
}
|
||||
virtual int ConvertWAVToPCM(InStream* streamIn, OutStream* streamOut) {
|
||||
return -1;
|
||||
}
|
||||
virtual int ConvertPCMToCompressed(const char* fileNameInUTF8,
|
||||
const char* fileNameOutUTF8,
|
||||
CodecInst* compression) {
|
||||
return -1;
|
||||
}
|
||||
virtual int ConvertPCMToCompressed(InStream* streamIn,
|
||||
OutStream* streamOut,
|
||||
CodecInst* compression) {
|
||||
return -1;
|
||||
}
|
||||
virtual int ConvertCompressedToPCM(const char* fileNameInUTF8,
|
||||
const char* fileNameOutUTF8) {
|
||||
return -1;
|
||||
}
|
||||
virtual int ConvertCompressedToPCM(InStream* streamIn, OutStream* streamOut) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
protected:
|
||||
VoEFile() {}
|
||||
virtual ~VoEFile() {}
|
||||
|
@ -94,20 +94,6 @@ class WEBRTC_DLLEXPORT VoEHardware {
|
||||
virtual bool BuiltInAECIsAvailable() const = 0;
|
||||
virtual int EnableBuiltInAEC(bool enable) = 0;
|
||||
|
||||
// To be removed. Don't use.
|
||||
virtual bool BuiltInAECIsEnabled() const { return false; }
|
||||
virtual int GetRecordingDeviceStatus(bool& isAvailable) { return -1; }
|
||||
virtual int GetPlayoutDeviceStatus(bool& isAvailable) { return -1; }
|
||||
virtual int ResetAudioDevice() { return -1; }
|
||||
virtual int AudioDeviceControl(unsigned int par1,
|
||||
unsigned int par2,
|
||||
unsigned int par3) {
|
||||
return -1;
|
||||
}
|
||||
virtual int SetLoudspeakerStatus(bool enable) { return -1; }
|
||||
virtual int GetLoudspeakerStatus(bool& enabled) { return -1; }
|
||||
virtual int GetCPULoad(int& loadPercent) { return -1; }
|
||||
|
||||
protected:
|
||||
VoEHardware() {}
|
||||
virtual ~VoEHardware() {}
|
||||
|
@ -221,37 +221,6 @@ class WEBRTC_DLLEXPORT VoERTP_RTCP {
|
||||
// If using NACK, NACK should be enabled on both endpoints in a call.
|
||||
virtual int SetNACKStatus(int channel, bool enable, int maxNoPackets) = 0;
|
||||
|
||||
// Will be removed. Don't use.
|
||||
virtual int RegisterRTPObserver(int channel, VoERTPObserver& observer) {
|
||||
return -1;
|
||||
};
|
||||
virtual int DeRegisterRTPObserver(int channel) { return -1; };
|
||||
virtual int GetRemoteCSRCs(int channel, unsigned int arrCSRC[15]) {
|
||||
return -1;
|
||||
};
|
||||
virtual int InsertExtraRTPPacket(int channel,
|
||||
unsigned char payloadType,
|
||||
bool markerBit,
|
||||
const char* payloadData,
|
||||
unsigned short payloadSize) {
|
||||
return -1;
|
||||
};
|
||||
virtual int GetRemoteRTCPSenderInfo(int channel, SenderInfo* sender_info) {
|
||||
return -1;
|
||||
};
|
||||
virtual int SendApplicationDefinedRTCPPacket(
|
||||
int channel,
|
||||
unsigned char subType,
|
||||
unsigned int name,
|
||||
const char* data,
|
||||
unsigned short dataLengthInBytes) {
|
||||
return -1;
|
||||
};
|
||||
virtual int GetLastRemoteTimeStamp(int channel,
|
||||
uint32_t* lastRemoteTimeStamp) {
|
||||
return -1;
|
||||
};
|
||||
|
||||
protected:
|
||||
VoERTP_RTCP() {}
|
||||
virtual ~VoERTP_RTCP() {}
|
||||
|
@ -104,12 +104,6 @@ class WEBRTC_DLLEXPORT VoEVolumeControl {
|
||||
// Gets the current left and right scaling factors.
|
||||
virtual int GetOutputVolumePan(int channel, float& left, float& right) = 0;
|
||||
|
||||
// Don't use. Will be removed.
|
||||
virtual int SetSystemOutputMute(bool enable) { return -1; }
|
||||
virtual int GetSystemOutputMute(bool& enabled) { return -1; }
|
||||
virtual int SetSystemInputMute(bool enable) { return -1; }
|
||||
virtual int GetSystemInputMute(bool& enabled) { return -1; }
|
||||
|
||||
protected:
|
||||
VoEVolumeControl(){};
|
||||
virtual ~VoEVolumeControl(){};
|
||||
|
@ -35,14 +35,6 @@ class FakeVoEExternalMedia : public VoEExternalMedia {
|
||||
callback_map_.erase(type);
|
||||
return 0;
|
||||
}
|
||||
WEBRTC_STUB(SetExternalRecordingStatus, (bool enable));
|
||||
WEBRTC_STUB(SetExternalPlayoutStatus, (bool enable));
|
||||
WEBRTC_STUB(ExternalRecordingInsertData,
|
||||
(const int16_t speechData10ms[], int lengthSamples,
|
||||
int samplingFreqHz, int current_delay_ms));
|
||||
WEBRTC_STUB(ExternalPlayoutGetData,
|
||||
(int16_t speechData10ms[], int samplingFreqHz,
|
||||
int current_delay_ms, int& lengthSamples));
|
||||
WEBRTC_STUB(GetAudioFrame, (int channel, int desired_sample_rate_hz,
|
||||
AudioFrame* frame));
|
||||
WEBRTC_STUB(SetExternalMixing, (int channel, bool enable));
|
||||
|
@ -23,14 +23,10 @@ class MockVoEVolumeControl : public VoEVolumeControl {
|
||||
MOCK_METHOD0(Release, int());
|
||||
MOCK_METHOD1(SetSpeakerVolume, int(unsigned int volume));
|
||||
MOCK_METHOD1(GetSpeakerVolume, int(unsigned int& volume));
|
||||
MOCK_METHOD1(SetSystemOutputMute, int(bool enable));
|
||||
MOCK_METHOD1(GetSystemOutputMute, int(bool &enabled));
|
||||
MOCK_METHOD1(SetMicVolume, int(unsigned int volume));
|
||||
MOCK_METHOD1(GetMicVolume, int(unsigned int& volume));
|
||||
MOCK_METHOD2(SetInputMute, int(int channel, bool enable));
|
||||
MOCK_METHOD2(GetInputMute, int(int channel, bool& enabled));
|
||||
MOCK_METHOD1(SetSystemInputMute, int(bool enable));
|
||||
MOCK_METHOD1(GetSystemInputMute, int(bool& enabled));
|
||||
MOCK_METHOD1(GetSpeechInputLevel, int(unsigned int& level));
|
||||
MOCK_METHOD2(GetSpeechOutputLevel, int(int channel, unsigned int& level));
|
||||
MOCK_METHOD1(GetSpeechInputLevelFullRange, int(unsigned int& level));
|
||||
|
@ -221,7 +221,6 @@ bool ThreadTest::Process()
|
||||
__android_log_write(ANDROID_LOG_ERROR, WEBRTC_LOG_TAG,
|
||||
"set local receiver 2 failed");
|
||||
}
|
||||
veData2.hardware->SetLoudspeakerStatus(false);
|
||||
veData2.volume->SetSpeakerVolume(204);
|
||||
veData2.base->StartReceive(0);
|
||||
if(veData2.base->StartPlayout(0) < 0)
|
||||
@ -1115,43 +1114,6 @@ Java_org_webrtc_voiceengine_test_AndroidTest_SetSpeakerVolume(
|
||||
return 0;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////
|
||||
// [Hardware] Set loudspeaker status
|
||||
//
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_org_webrtc_voiceengine_test_AndroidTest_SetLoudspeakerStatus(
|
||||
JNIEnv *,
|
||||
jobject,
|
||||
jboolean enable)
|
||||
{
|
||||
VALIDATE_HARDWARE_POINTER;
|
||||
if (veData1.hardware->SetLoudspeakerStatus(enable) != 0)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*VALIDATE_RTP_RTCP_POINTER;
|
||||
|
||||
if (veData1.rtp_rtcp->SetREDStatus(0, enable, -1) != 0)
|
||||
{
|
||||
__android_log_write(ANDROID_LOG_ERROR, WEBRTC_LOG_TAG,
|
||||
"Could not set RED");
|
||||
return -1;
|
||||
}
|
||||
else if(enable)
|
||||
{
|
||||
__android_log_write(ANDROID_LOG_ERROR, WEBRTC_LOG_TAG,
|
||||
"Could enable RED");
|
||||
}
|
||||
else
|
||||
{
|
||||
__android_log_write(ANDROID_LOG_ERROR, WEBRTC_LOG_TAG,
|
||||
"Could disable RED");
|
||||
}*/
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////
|
||||
// "Local" functions (i.e. not Java accessible)
|
||||
//////////////////////////////////////////////////////////////////
|
||||
|
@ -239,14 +239,6 @@ JNIEXPORT jint JNICALL Java_org_webrtc_voiceengine_test_AndroidTest_SetECStatus
|
||||
JNIEXPORT jint JNICALL Java_org_webrtc_voiceengine_test_AndroidTest_SetSpeakerVolume
|
||||
(JNIEnv *, jobject, jint);
|
||||
|
||||
/*
|
||||
* Class: org_webrtc_voiceengine_test_AndroidTest
|
||||
* Method: SetLoudspeakerStatus
|
||||
* Signature: (Z)I
|
||||
*/
|
||||
JNIEXPORT jint JNICALL Java_org_webrtc_voiceengine_test_AndroidTest_SetLoudspeakerStatus
|
||||
(JNIEnv *, jobject, jboolean);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -28,11 +28,6 @@ AfterInitializationFixture::AfterInitializationFixture()
|
||||
webrtc::AudioProcessing* audioproc = webrtc::AudioProcessing::Create(config);
|
||||
|
||||
EXPECT_EQ(0, voe_base_->Init(NULL, audioproc));
|
||||
|
||||
#if defined(WEBRTC_ANDROID)
|
||||
EXPECT_EQ(0, voe_hardware_->SetLoudspeakerStatus(false));
|
||||
#endif
|
||||
|
||||
EXPECT_EQ(0, voe_base_->RegisterVoiceEngineObserver(*error_observer_));
|
||||
}
|
||||
|
||||
|
@ -25,14 +25,6 @@ TEST_F(HardwareBeforeStreamingTest,
|
||||
EXPECT_EQ(VE_ALREADY_INITED, voe_base_->LastError());
|
||||
}
|
||||
|
||||
// Tests that only apply to mobile:
|
||||
|
||||
#ifdef WEBRTC_IOS
|
||||
TEST_F(HardwareBeforeStreamingTest, ResetsAudioDeviceOnIphone) {
|
||||
EXPECT_EQ(0, voe_hardware_->ResetAudioDevice());
|
||||
}
|
||||
#endif
|
||||
|
||||
// Tests that only apply to desktop:
|
||||
#if !defined(WEBRTC_IOS) & !defined(WEBRTC_ANDROID)
|
||||
|
||||
|
@ -1,241 +0,0 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Visual C++ generated include file.
|
||||
// Used by WinTest.rc
|
||||
//
|
||||
#define IDM_ABOUTBOX 0x0010
|
||||
#define IDD_ABOUTBOX 100
|
||||
#define IDS_ABOUTBOX 101
|
||||
#define IDD_WINTEST_DIALOG 102
|
||||
#define IDR_MAINFRAME 128
|
||||
#define IDD_DTMF_DIALOG 129
|
||||
#define IDC_BUTTON_CREATE_1 1000
|
||||
#define IDC_BUTTON_DELETE_1 1001
|
||||
#define IDC_EDIT_1 1002
|
||||
#define IDC_BUTTON_CREATE_2 1003
|
||||
#define IDC_BUTTON_DELETE_2 1004
|
||||
#define IDC_EDIT_2 1005
|
||||
#define IDC_EDIT_MESSAGE 1006
|
||||
#define IDC_BUTTON_START_LISTEN_1 1007
|
||||
#define IDC_COMBO_IP_1 1008
|
||||
#define IDC_EDIT_TX_PORT_1 1009
|
||||
#define IDC_EDIT_RX_PORT_1 1010
|
||||
#define IDC_COMBO_CODEC_1 1011
|
||||
#define IDC_BUTTON_STOP_LISTEN_1 1012
|
||||
#define IDC_STATIC_LISTEN 1013
|
||||
#define IDC_BUTTON_START_PLAYOUT_1 1014
|
||||
#define IDC_BUTTON_STOP_PLAYOUT_1 1015
|
||||
#define IDC_STATIC_PLAY 1016
|
||||
#define IDC_BUTTON_START_SEND_1 1017
|
||||
#define IDC_BUTTON_STOP_SEND_1 1018
|
||||
#define IDC_STATIC_SEND 1019
|
||||
#define IDC_COMBO_IP_2 1020
|
||||
#define IDC_STATIC_IP 1021
|
||||
#define IDC_STATIC_PORTS 1022
|
||||
#define IDC_STATIC_CODEC 1023
|
||||
#define IDC_STATIC_CHANNEL 1024
|
||||
#define IDC_STATIC_ID 1025
|
||||
#define IDC_EDIT_TX_PORT_2 1026
|
||||
#define IDC_EDIT_RX_PORT_2 1027
|
||||
#define IDC_COMBO_CODEC_2 1028
|
||||
#define IDC_BUTTON_START_LISTEN_2 1029
|
||||
#define IDC_BUTTON_STOP_LISTEN_2 1030
|
||||
#define IDC_BUTTON_START_PLAYOUT_2 1031
|
||||
#define IDC_BUTTON_STOP_PLAYOUT_2 1032
|
||||
#define IDC_BUTTON_START_SEND_2 1033
|
||||
#define IDC_BUTTON_STOP_SEND_2 1034
|
||||
#define IDC_BUTTON_START_SEND_3 1035
|
||||
#define IDC_BUTTON_TEST_1_1 1035
|
||||
#define IDC_BUTTON_TEST_1 1035
|
||||
#define IDC_EDIT_RESULT 1036
|
||||
#define IDC_EDIT_N_FAILS 1037
|
||||
#define IDC_STATIC_ERROR 1038
|
||||
#define IDC_EDIT_LAST_ERROR 1039
|
||||
#define IDC_STATIC_LAST_ERROR 1040
|
||||
#define IDC_STATIC_PLAY_FILE 1041
|
||||
#define IDC_STATIC_EXTERNAL 1042
|
||||
#define IDC_CHECK_EXT_TRANS_1 1043
|
||||
#define IDC_CHECK2 1044
|
||||
#define IDC_CHECK_PLAY_FILE_IN_1 1044
|
||||
#define IDC_CHECK_PLAY_FILE_OUT_1 1045
|
||||
#define IDC_CHECK_PLAY_FILE_IN_2 1046
|
||||
#define IDC_CHECK_PLAY_FILE_OUT_2 1047
|
||||
#define IDC_CHECK_EXT_TRANS_2 1048
|
||||
#define IDC_STATIC_ALL_CHANNELS 1049
|
||||
#define IDC_CHECK_PLAY_FILE_IN 1050
|
||||
#define IDC_CHECK_PLAY_FILE_OUT 1051
|
||||
#define IDC_CHECK_EXT_MEDIA_IN_1 1051
|
||||
#define IDC_COMBO_REC_DEVICE 1052
|
||||
#define IDC_STATIC_REC_DEVICE 1053
|
||||
#define IDC_COMBO_PLAY_DEVICE2 1054
|
||||
#define IDC_COMBO_PLAY_DEVICE 1054
|
||||
#define IDC_STATIC_PLAY_DEVICE 1055
|
||||
#define IDC_CHECK_EXT_MEDIA_PLAY_1 1056
|
||||
#define IDC_CHECK_EXT_MEDIA_OUT_1 1056
|
||||
#define IDC_STATIC_PLAY_FILE2 1057
|
||||
#define IDC_SLIDER_INPUT_VOLUME 1058
|
||||
#define IDC_STATIC_MIC_VOLUME 1059
|
||||
#define IDC_SLIDER_OUTPUT_VOLUME 1060
|
||||
#define IDC_STATIC_SPK_VOLUME2 1061
|
||||
#define IDC_STATIC_SPK_VOLUME 1061
|
||||
#define IDC_CHECK_PLAY_FILE_IN2 1062
|
||||
#define IDC_CHECK_AGC 1062
|
||||
#define IDC_STATIC_MIC_VOLUME2 1063
|
||||
#define IDC_STATIC_AUDIO_LEVEL_IN 1063
|
||||
#define IDC_PROGRESS_AUDIO_LEVEL_IN 1064
|
||||
#define IDC_CHECK_AGC2 1065
|
||||
#define IDC_CHECK_NS 1065
|
||||
#define IDC_BUTTON_1 1065
|
||||
#define IDC_CHECK_VAD 1066
|
||||
#define IDC_CHECK_EXT_MEDIA_IN_2 1066
|
||||
#define IDC_BUTTON_2 1066
|
||||
#define IDC_CHECK_VAD2 1067
|
||||
#define IDC_CHECK_EC 1067
|
||||
#define IDC_BUTTON_3 1067
|
||||
#define IDC_CHECK_VAD_1 1068
|
||||
#define IDC_BUTTON_4 1068
|
||||
#define IDC_CHECK_VAD_2 1069
|
||||
#define IDC_CHECK_EXT_MEDIA_OUT_2 1069
|
||||
#define IDC_BUTTON_5 1069
|
||||
#define IDC_CHECK_VAD_3 1070
|
||||
#define IDC_BUTTON_6 1070
|
||||
#define IDC_CHECK_MUTE_IN 1071
|
||||
#define IDC_BUTTON_7 1071
|
||||
#define IDC_CHECK_MUTE_IN_1 1072
|
||||
#define IDC_BUTTON_8 1072
|
||||
#define IDC_CHECK_MUTE_IN_2 1073
|
||||
#define IDC_BUTTON_9 1073
|
||||
#define IDC_CHECK_SRTP_TX_1 1074
|
||||
#define IDC_BUTTON_10 1074
|
||||
#define IDC_CHECK_SRTP_RX_1 1075
|
||||
#define IDC_BUTTON_11 1075
|
||||
#define IDC_STATIC_PLAY_FILE3 1076
|
||||
#define IDC_STATIC_SRTP 1076
|
||||
#define IDC_BUTTON_12 1076
|
||||
#define IDC_CHECK_SRTP_TX_2 1077
|
||||
#define IDC_BUTTON_13 1077
|
||||
#define IDC_CHECK_SRTP_RX_2 1078
|
||||
#define IDC_BUTTON_14 1078
|
||||
#define IDC_CHECK_EXT_ENCRYPTION_1 1079
|
||||
#define IDC_BUTTON_15 1079
|
||||
#define IDC_STATIC_PLAY_FILE4 1080
|
||||
#define IDC_BUTTON_16 1080
|
||||
#define IDC_CHECK_EXT_ENCRYPTION_2 1081
|
||||
#define IDC_BUTTON_17 1081
|
||||
#define IDC_BUTTON_DTMF_1 1082
|
||||
#define IDC_BUTTON_18 1082
|
||||
#define IDC_EDIT_DTMF_EVENT 1083
|
||||
#define IDC_CHECK_REC_ 1083
|
||||
#define IDC_CHECK_REC_MIC 1083
|
||||
#define IDC_STATIC_DTMF_EVENT 1084
|
||||
#define IDC_BUTTON_DTMF_2 1084
|
||||
#define IDC_STATIC_GROUP_DTMF 1085
|
||||
#define IDC_CHECK_CONFERENCE_1 1085
|
||||
#define IDC_BUTTON_19 1086
|
||||
#define IDC_CHECK_CONFERENCE_2 1086
|
||||
#define IDC_BUTTON_20 1087
|
||||
#define IDC_CHECK_ON_HOLD_1 1087
|
||||
#define IDC_BUTTON_21 1088
|
||||
#define IDC_CHECK_ON_HOLD_2 1088
|
||||
#define IDC_BUTTON_22 1089
|
||||
#define IDC_CHECK_DTMF_PLAYOUT_RX 1089
|
||||
#define IDC_CHECK_EXT_MEDIA_IN 1089
|
||||
#define IDC_STATIC_PLAYOUT_RX 1090
|
||||
#define IDC_EDIT_GET_OUTPUT 1090
|
||||
#define IDC_CHECK_DTMF_PLAY_TONE 1091
|
||||
#define IDC_STATIC_LAST_ERROR2 1091
|
||||
#define IDC_STATIC_GET 1091
|
||||
#define IDC_STATIC_PLAY_TONE 1092
|
||||
#define IDC_CHECK_EXT_MEDIA_OUT 1092
|
||||
#define IDC_CHECK_START_STOP_MODE 1093
|
||||
#define IDC_BUTTON_SET_TX_TELEPHONE_PT 1093
|
||||
#define IDC_PROGRESS_AUDIO_LEVEL_IN2 1093
|
||||
#define IDC_PROGRESS_AUDIO_LEVEL_OUT 1093
|
||||
#define IDC_EDIT_EVENT_LENGTH 1094
|
||||
#define IDC_EDIT_RX_PORT_3 1094
|
||||
#define IDC_EDIT_DELAY_ESTIMATE_1 1094
|
||||
#define IDC_STATIC_EVENT_LENGTH 1095
|
||||
#define IDC_EDIT_PLAYOUT_BUFFER_SIZE 1095
|
||||
#define IDC_STATIC_START_STOP_MODE 1096
|
||||
#define IDC_EDIT_EVENT_RX_PT 1096
|
||||
#define IDC_CHECK_DELAY_ESTIMATE_1 1096
|
||||
#define IDC_EDIT_EVENT_ATTENUATION 1097
|
||||
#define IDC_CHECK_AGC_1 1097
|
||||
#define IDC_CHECK_EVENT_INBAND 1098
|
||||
#define IDC_CHECK_NS_1 1098
|
||||
#define IDC_STATIC_EVENT_ATTENUATION 1099
|
||||
#define IDC_STATIC_SRTP2 1099
|
||||
#define IDC_STATIC_RX_VQE 1099
|
||||
#define IDC_EDIT_EVENT_TX_PT 1100
|
||||
#define IDC_CHECK_REC_MIC2 1100
|
||||
#define IDC_CHECK_REC_CALL 1100
|
||||
#define IDC_CHECK_DTMF_FEEDBACK 1101
|
||||
#define IDC_CHECK_REC_CALL2 1101
|
||||
#define IDC_CHECK_TYPING_DETECTION 1101
|
||||
#define IDC_CHECK_START_STOP_MODE2 1102
|
||||
#define IDC_CHECK_DIRECT_FEEDBACK 1102
|
||||
#define IDC_CHECK_RED 1102
|
||||
#define IDC_BUTTON_SET_RX_TELEPHONE_PT_TYPE 1103
|
||||
#define IDC_BUTTON_SET_RX_TELEPHONE_PT 1103
|
||||
#define IDC_BUTTON_CLEAR_ERROR_CALLBACK 1103
|
||||
#define IDC_EDIT_EVENT_CODE 1104
|
||||
#define IDC_STATIC_DIRECT_FEEDBACK 1105
|
||||
#define IDC_RADIO_SINGLE 1106
|
||||
#define IDC_RADIO_MULTI 1107
|
||||
#define IDC_RADIO_START_STOP 1108
|
||||
#define IDC_STATIC_MODE 1109
|
||||
#define IDC_STATIC_EVENT_RX_PT 1110
|
||||
#define IDC_STATIC_EVENT_TX_PT 1111
|
||||
#define IDC_STATIC_PT 1112
|
||||
#define IDC_BUTTON_SEND_TELEPHONE_EVENT 1113
|
||||
#define IDC_STATIC_EVENT_CODE 1114
|
||||
#define IDC_CHECK_EVENT_DETECTION 1115
|
||||
#define IDC_CHECK_DETECT_INBAND 1116
|
||||
#define IDC_CHECK_DETECT_OUT_OF_BAND 1117
|
||||
#define IDC_STATIC_INBAND_DETECTION 1118
|
||||
#define IDC_STATIC_OUT_OF_BAND_DETECTION 1119
|
||||
#define IDC_STATIC_EVENT_DETECTION 1120
|
||||
#define IDC_STATIC_TELEPHONE_EVENTS 1121
|
||||
#define IDC_EDIT_EVENT_CODE2 1122
|
||||
#define IDC_EDIT_ON_EVENT 1122
|
||||
#define IDC_EDIT_ON_EVENT_OUT_OF_BAND 1122
|
||||
#define IDC_STATIC_ON_EVENT 1123
|
||||
#define IDC_EDIT_ON_EVENT_INBAND 1123
|
||||
#define IDC_STATIC_EVEN 1124
|
||||
#define IDC_STATIC_LINE 1125
|
||||
#define IDC_LIST_CODEC_1 1128
|
||||
#define IDC_EDIT2 1129
|
||||
#define IDC_EDIT_CODEC_1 1129
|
||||
#define IDC_STATIC_PANNING 1131
|
||||
#define IDC_SLIDER_PAN_LEFT 1132
|
||||
#define IDC_SLIDER_PAN_RIGHT 1133
|
||||
#define IDC_STATIC_LEFT 1134
|
||||
#define IDC_STATIC_LEFT2 1135
|
||||
#define IDC_STATIC_RIGHT 1135
|
||||
#define IDC_BUTTON_VERSION 1136
|
||||
#define IDC_STATIC_PLAYOUT_BUFFER 1137
|
||||
#define IDC_CHECK_RXVAD 1138
|
||||
#define IDC_EDIT1 1139
|
||||
#define IDC_EDIT_RXVAD 1139
|
||||
#define IDC_STATIC_RX_PORT 1140
|
||||
#define IDC_STATIC_RX_PORT2 1141
|
||||
#define IDC_EDIT3 1142
|
||||
#define IDC_EDIT_AUDIO_LAYER 1142
|
||||
#define IDC_EDIT_AUDIO_LAYER2 1143
|
||||
#define IDC_EDIT_CPU_LOAD 1143
|
||||
#define IDC_STATIC_ERROR_CALLBACK 1144
|
||||
#define IDC_EDIT_ERROR_CALLBACK 1145
|
||||
#define IDC_EDIT_RX_CODEC_1 1146
|
||||
#define IDC_STATIC_BYTES_SENT_TEXT 1147
|
||||
#define IDC_EDIT_RTCP_STAT 1147
|
||||
#define IDC_EDIT_RTCP_STAT_1 1147
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 130
|
||||
#define _APS_NEXT_COMMAND_VALUE 32771
|
||||
#define _APS_NEXT_CONTROL_VALUE 1148
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
Binary file not shown.
@ -1,75 +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 "webrtc/voice_engine/test/win_test/WinTest.h"
|
||||
#include "webrtc/voice_engine/test/win_test/WinTestDlg.h"
|
||||
#include "webrtc/voice_engine/test/win_test/stdafx.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
#define new DEBUG_NEW
|
||||
#endif
|
||||
|
||||
|
||||
// CWinTestApp
|
||||
|
||||
BEGIN_MESSAGE_MAP(CWinTestApp, CWinApp)
|
||||
ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
|
||||
END_MESSAGE_MAP()
|
||||
|
||||
|
||||
// CWinTestApp construction
|
||||
|
||||
CWinTestApp::CWinTestApp()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
// The one and only CWinTestApp object
|
||||
|
||||
CWinTestApp theApp;
|
||||
|
||||
|
||||
// CWinTestApp initialization
|
||||
|
||||
BOOL CWinTestApp::InitInstance()
|
||||
{
|
||||
// InitCommonControlsEx() is required on Windows XP if an application
|
||||
// manifest specifies use of ComCtl32.dll version 6 or later to enable
|
||||
// visual styles. Otherwise, any window creation will fail.
|
||||
INITCOMMONCONTROLSEX InitCtrls;
|
||||
InitCtrls.dwSize = sizeof(InitCtrls);
|
||||
// Set this to include all the common control classes you want to use
|
||||
// in your application.
|
||||
InitCtrls.dwICC = ICC_WIN95_CLASSES;
|
||||
InitCommonControlsEx(&InitCtrls);
|
||||
|
||||
CWinApp::InitInstance();
|
||||
|
||||
// Standard initialization
|
||||
// If you are not using these features and wish to reduce the size
|
||||
// of your final executable, you should remove from the following
|
||||
// the specific initialization routines you do not need
|
||||
// Change the registry key under which our settings are stored
|
||||
SetRegistryKey(_T("Local AppWizard-Generated Applications"));
|
||||
|
||||
CWinTestDlg dlg;
|
||||
m_pMainWnd = &dlg;
|
||||
INT_PTR nResponse = dlg.DoModal();
|
||||
if (nResponse == IDOK)
|
||||
{
|
||||
}
|
||||
else if (nResponse == IDCANCEL)
|
||||
{
|
||||
}
|
||||
|
||||
// Since the dialog has been closed, return FALSE so that we exit the
|
||||
// application, rather than start the application's message pump.
|
||||
return FALSE;
|
||||
}
|
@ -1,40 +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 WEBRTC_VOICE_ENGINE_TEST_WIN_TEST_WINTEST_H_
|
||||
#define WEBRTC_VOICE_ENGINE_TEST_WIN_TEST_WINTEST_H_
|
||||
|
||||
#ifndef __AFXWIN_H__
|
||||
#error "include 'stdafx.h' before including this file for PCH"
|
||||
#endif
|
||||
|
||||
#include "resource.h" // main symbols
|
||||
|
||||
|
||||
// CWinTestApp:
|
||||
// See WinTest.cpp for the implementation of this class
|
||||
//
|
||||
|
||||
class CWinTestApp : public CWinApp
|
||||
{
|
||||
public:
|
||||
CWinTestApp();
|
||||
|
||||
// Overrides
|
||||
public:
|
||||
virtual BOOL InitInstance();
|
||||
|
||||
// Implementation
|
||||
|
||||
DECLARE_MESSAGE_MAP()
|
||||
};
|
||||
|
||||
extern CWinTestApp theApp;
|
||||
|
||||
#endif // WEBRTC_VOICE_ENGINE_TEST_WIN_TEST_WINTEST_H_
|
@ -1,394 +0,0 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Swedish resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_SVE)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_SWEDISH, SUBLANG_DEFAULT
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#define _AFX_NO_SPLITTER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_OLE_RESOURCES\r\n"
|
||||
"#define _AFX_NO_TRACKER_RESOURCES\r\n"
|
||||
"#define _AFX_NO_PROPERTY_RESOURCES\r\n"
|
||||
"\r\n"
|
||||
"#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_SVE)\r\n"
|
||||
"LANGUAGE 29, 1\r\n"
|
||||
"#pragma code_page(1252)\r\n"
|
||||
"#include ""res\\WinTest.rc2"" // non-Microsoft Visual C++ edited resources\r\n"
|
||||
"#include ""afxres.rc"" // Standard components\r\n"
|
||||
"#endif\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDR_MAINFRAME ICON "res\\WinTest.ico"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_ABOUTBOX DIALOGEX 0, 0, 235, 55
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "About WinTest"
|
||||
FONT 8, "MS Shell Dlg", 0, 0, 0x1
|
||||
BEGIN
|
||||
ICON IDR_MAINFRAME,IDC_STATIC,11,17,20,20
|
||||
LTEXT "WinTest Version 1.0",IDC_STATIC,40,10,119,8,SS_NOPREFIX
|
||||
LTEXT "Copyright (C) 2010",IDC_STATIC,40,25,119,8
|
||||
DEFPUSHBUTTON "OK",IDOK,178,7,50,16,WS_GROUP
|
||||
END
|
||||
|
||||
IDD_WINTEST_DIALOG DIALOGEX 0, 0, 796, 278
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
EXSTYLE WS_EX_APPWINDOW
|
||||
CAPTION "WinTest"
|
||||
FONT 8, "MS Shell Dlg", 0, 0, 0x1
|
||||
BEGIN
|
||||
PUSHBUTTON "Create",IDC_BUTTON_CREATE_1,28,24,32,14
|
||||
PUSHBUTTON "Delete",IDC_BUTTON_DELETE_1,28,40,32,14
|
||||
EDITTEXT IDC_EDIT_1,6,32,18,14,ES_AUTOHSCROLL | ES_READONLY
|
||||
PUSHBUTTON "Create",IDC_BUTTON_CREATE_2,28,72,32,14
|
||||
PUSHBUTTON "Delete",IDC_BUTTON_DELETE_2,28,88,32,14
|
||||
EDITTEXT IDC_EDIT_2,6,82,18,14,ES_AUTOHSCROLL | ES_READONLY
|
||||
EDITTEXT IDC_EDIT_MESSAGE,28,244,764,12,ES_AUTOHSCROLL
|
||||
COMBOBOX IDC_COMBO_IP_1,64,24,76,30,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
|
||||
EDITTEXT IDC_EDIT_TX_PORT_1,144,24,28,14,ES_AUTOHSCROLL
|
||||
EDITTEXT IDC_EDIT_RX_PORT_1,144,40,28,14,ES_AUTOHSCROLL
|
||||
COMBOBOX IDC_COMBO_CODEC_1,176,24,76,156,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
|
||||
PUSHBUTTON "Start",IDC_BUTTON_START_LISTEN_1,256,24,32,14
|
||||
PUSHBUTTON "Stop",IDC_BUTTON_STOP_LISTEN_1,256,40,32,14
|
||||
LTEXT "Receive",IDC_STATIC_LISTEN,262,8,26,8
|
||||
PUSHBUTTON "Start",IDC_BUTTON_START_PLAYOUT_1,292,24,32,14
|
||||
PUSHBUTTON "Stop",IDC_BUTTON_STOP_PLAYOUT_1,292,40,32,14
|
||||
LTEXT "Playout",IDC_STATIC_PLAY,295,8,25,8
|
||||
PUSHBUTTON "Start",IDC_BUTTON_START_SEND_1,328,24,32,14
|
||||
PUSHBUTTON "Stop",IDC_BUTTON_STOP_SEND_1,328,40,32,14
|
||||
LTEXT "Send",IDC_STATIC_SEND,335,8,17,8
|
||||
COMBOBOX IDC_COMBO_IP_2,64,72,76,30,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP
|
||||
LTEXT "Destination IP address",IDC_STATIC_IP,64,8,73,8
|
||||
LTEXT "Ports",IDC_STATIC_PORTS,145,8,18,8
|
||||
LTEXT "Codec",IDC_STATIC_CODEC,177,8,21,8
|
||||
LTEXT "Channel",IDC_STATIC_CHANNEL,30,8,27,8
|
||||
LTEXT "ID",IDC_STATIC_ID,12,8,8,8
|
||||
EDITTEXT IDC_EDIT_TX_PORT_2,144,72,28,14,ES_AUTOHSCROLL
|
||||
EDITTEXT IDC_EDIT_RX_PORT_2,144,88,28,14,ES_AUTOHSCROLL
|
||||
COMBOBOX IDC_COMBO_CODEC_2,176,72,76,156,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
|
||||
PUSHBUTTON "Start",IDC_BUTTON_START_LISTEN_2,256,72,32,14
|
||||
PUSHBUTTON "Stop",IDC_BUTTON_STOP_LISTEN_2,256,88,32,14
|
||||
PUSHBUTTON "Start",IDC_BUTTON_START_PLAYOUT_2,292,72,32,14
|
||||
PUSHBUTTON "Stop",IDC_BUTTON_STOP_PLAYOUT_2,292,88,32,14
|
||||
PUSHBUTTON "Start",IDC_BUTTON_START_SEND_2,328,72,32,14
|
||||
PUSHBUTTON "Stop",IDC_BUTTON_STOP_SEND_2,328,88,32,14
|
||||
PUSHBUTTON "TEST 1",IDC_BUTTON_TEST_1,756,224,36,14
|
||||
LTEXT "API",IDC_STATIC,4,247,12,8
|
||||
EDITTEXT IDC_EDIT_RESULT,28,260,96,12,ES_AUTOHSCROLL
|
||||
LTEXT "Result",IDC_STATIC,3,263,21,8
|
||||
EDITTEXT IDC_EDIT_N_FAILS,156,260,30,12,ES_AUTOHSCROLL
|
||||
LTEXT "#Fails",IDC_STATIC_ERROR,132,263,20,8
|
||||
EDITTEXT IDC_EDIT_LAST_ERROR,228,260,36,12,ES_AUTOHSCROLL
|
||||
LTEXT "Last Error",IDC_STATIC_LAST_ERROR,192,262,32,8
|
||||
LTEXT "Ext. Trans.",IDC_STATIC_EXTERNAL,361,8,37,8
|
||||
CONTROL "",IDC_CHECK_EXT_TRANS_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,371,33,16,10
|
||||
CONTROL "In",IDC_CHECK_PLAY_FILE_IN_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,396,24,36,14,WS_EX_DLGMODALFRAME
|
||||
LTEXT "Play File",IDC_STATIC_PLAY_FILE,401,8,27,8
|
||||
CONTROL "Out",IDC_CHECK_PLAY_FILE_OUT_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,396,40,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "In",IDC_CHECK_PLAY_FILE_IN_2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,396,72,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "Out",IDC_CHECK_PLAY_FILE_OUT_2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,396,88,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "",IDC_CHECK_EXT_TRANS_2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,371,82,16,10
|
||||
GROUPBOX "",IDC_STATIC_ALL_CHANNELS,6,107,662,113
|
||||
CONTROL "PlayFileAsMic",IDC_CHECK_PLAY_FILE_IN,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,396,122,60,14,WS_EX_DLGMODALFRAME
|
||||
COMBOBOX IDC_COMBO_REC_DEVICE,12,132,184,80,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
|
||||
LTEXT "Recording device",IDC_STATIC_REC_DEVICE,12,120,56,8
|
||||
COMBOBOX IDC_COMBO_PLAY_DEVICE,12,180,184,80,CBS_DROPDOWN | WS_VSCROLL | WS_TABSTOP
|
||||
LTEXT "Playout device",IDC_STATIC_PLAY_DEVICE,12,167,56,8
|
||||
CONTROL "In",IDC_CHECK_EXT_MEDIA_IN_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,436,24,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "Out",IDC_CHECK_EXT_MEDIA_OUT_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,436,40,36,14,WS_EX_DLGMODALFRAME
|
||||
LTEXT "Ext. Media",IDC_STATIC_PLAY_FILE2,437,8,35,8
|
||||
CONTROL "",IDC_SLIDER_INPUT_VOLUME,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,196,130,72,15
|
||||
LTEXT "Microphone Volume",IDC_STATIC_MIC_VOLUME,202,120,62,8
|
||||
CONTROL "",IDC_SLIDER_OUTPUT_VOLUME,"msctls_trackbar32",TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,196,179,72,15
|
||||
LTEXT "Speaker Volume",IDC_STATIC_SPK_VOLUME,202,167,52,8
|
||||
CONTROL "AGC",IDC_CHECK_AGC,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,316,122,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "",IDC_PROGRESS_AUDIO_LEVEL_IN,"msctls_progress32",WS_BORDER,268,135,42,6
|
||||
LTEXT "Audio Level",IDC_STATIC_AUDIO_LEVEL_IN,271,120,38,8,NOT WS_GROUP
|
||||
CONTROL "NS",IDC_CHECK_NS,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,316,142,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "EC",IDC_CHECK_EC,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,356,122,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "VAD",IDC_CHECK_VAD_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,476,24,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "In",IDC_CHECK_EXT_MEDIA_IN_2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,436,72,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "Out",IDC_CHECK_EXT_MEDIA_OUT_2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,436,88,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "VAD",IDC_CHECK_VAD_3,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,476,72,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "Mute",IDC_CHECK_MUTE_IN,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,356,142,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "Mute",IDC_CHECK_MUTE_IN_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,476,40,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "Mute",IDC_CHECK_MUTE_IN_2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,476,88,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "TX",IDC_CHECK_SRTP_TX_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,516,24,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "RX",IDC_CHECK_SRTP_RX_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,516,40,36,14,WS_EX_DLGMODALFRAME
|
||||
LTEXT "SRTP",IDC_STATIC_SRTP,525,8,18,8
|
||||
CONTROL "TX",IDC_CHECK_SRTP_TX_2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,516,72,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "RX",IDC_CHECK_SRTP_RX_2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,516,88,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "",IDC_CHECK_EXT_ENCRYPTION_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,564,33,16,10
|
||||
LTEXT "Encrypt",IDC_STATIC_PLAY_FILE4,556,8,26,8
|
||||
CONTROL "",IDC_CHECK_EXT_ENCRYPTION_2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,564,82,16,10
|
||||
PUSHBUTTON "DTMF>>",IDC_BUTTON_DTMF_1,584,24,36,14
|
||||
CONTROL "RecMicToFile",IDC_CHECK_REC_MIC,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,396,142,60,14,WS_EX_DLGMODALFRAME
|
||||
PUSHBUTTON "DTMF>>",IDC_BUTTON_DTMF_2,584,72,36,14
|
||||
CONTROL "Conf",IDC_CHECK_CONFERENCE_1,"Button",BS_AUTOCHECKBOX | NOT WS_VISIBLE | WS_TABSTOP,584,40,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "Conf",IDC_CHECK_CONFERENCE_2,"Button",BS_AUTOCHECKBOX | NOT WS_VISIBLE | WS_TABSTOP,584,88,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "Hold",IDC_CHECK_ON_HOLD_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,708,24,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "Hold",IDC_CHECK_ON_HOLD_2,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,708,72,36,14,WS_EX_DLGMODALFRAME
|
||||
EDITTEXT IDC_EDIT_GET_OUTPUT,292,260,500,12,ES_AUTOHSCROLL
|
||||
LTEXT "Get",IDC_STATIC_GET,276,262,12,8
|
||||
CONTROL "Ext. Media",IDC_CHECK_EXT_MEDIA_IN,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,460,122,52,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "Ext. Media",IDC_CHECK_EXT_MEDIA_OUT,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,460,180,52,14,WS_EX_DLGMODALFRAME
|
||||
LISTBOX IDC_LIST_CODEC_1,208,40,44,28,LBS_NOINTEGRALHEIGHT | NOT WS_BORDER | WS_VSCROLL | WS_TABSTOP,WS_EX_CLIENTEDGE
|
||||
EDITTEXT IDC_EDIT_CODEC_1,176,40,28,14,ES_AUTOHSCROLL
|
||||
CONTROL "",IDC_PROGRESS_AUDIO_LEVEL_OUT,"msctls_progress32",WS_BORDER,268,184,42,6
|
||||
LTEXT "Panning",IDC_STATIC_PANNING,328,167,26,8
|
||||
CONTROL "",IDC_SLIDER_PAN_LEFT,"msctls_trackbar32",TBS_VERT | TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,328,175,12,28
|
||||
CONTROL "",IDC_SLIDER_PAN_RIGHT,"msctls_trackbar32",TBS_VERT | TBS_BOTH | TBS_NOTICKS | WS_TABSTOP,344,175,12,28
|
||||
LTEXT "L",IDC_STATIC_LEFT,332,200,8,8
|
||||
LTEXT "R",IDC_STATIC_RIGHT,347,201,8,8
|
||||
PUSHBUTTON "Version",IDC_BUTTON_VERSION,624,200,36,14
|
||||
EDITTEXT IDC_EDIT_PLAYOUT_BUFFER_SIZE,363,181,28,12,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_TABSTOP
|
||||
LTEXT "Buffer Size",IDC_STATIC_PLAYOUT_BUFFER,361,167,36,8
|
||||
CONTROL "Delay",IDC_CHECK_DELAY_ESTIMATE_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,624,24,36,14,WS_EX_DLGMODALFRAME
|
||||
EDITTEXT IDC_EDIT_DELAY_ESTIMATE_1,631,40,24,14,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_TABSTOP
|
||||
CONTROL "RxVAD",IDC_CHECK_RXVAD,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,664,24,40,14,WS_EX_DLGMODALFRAME
|
||||
EDITTEXT IDC_EDIT_RXVAD,671,40,24,14,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY
|
||||
CONTROL "AGC",IDC_CHECK_AGC_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,748,24,36,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "NS",IDC_CHECK_NS_1,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,748,40,36,14,WS_EX_DLGMODALFRAME
|
||||
LTEXT "RX VQE",IDC_STATIC_RX_VQE,753,8,25,8
|
||||
CONTROL "RecordCall",IDC_CHECK_REC_CALL,"Button",BS_AUTOCHECKBOX | NOT WS_VISIBLE | WS_TABSTOP,517,156,52,14,WS_EX_DLGMODALFRAME
|
||||
LTEXT "RX",IDC_STATIC_RX_PORT,133,42,10,8
|
||||
LTEXT "RX",IDC_STATIC_RX_PORT2,133,91,10,8
|
||||
CONTROL "TypingDetect",IDC_CHECK_TYPING_DETECTION,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,572,156,60,14,WS_EX_DLGMODALFRAME
|
||||
EDITTEXT IDC_EDIT_AUDIO_LAYER,28,224,116,14,ES_AUTOHSCROLL | ES_READONLY
|
||||
EDITTEXT IDC_EDIT_CPU_LOAD,152,224,116,14,ES_AUTOHSCROLL | ES_READONLY
|
||||
CONTROL "RED",IDC_CHECK_RED,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,176,55,28,14,WS_EX_DLGMODALFRAME
|
||||
LTEXT "=> Callbacks",IDC_STATIC_ERROR_CALLBACK,283,226,43,8
|
||||
EDITTEXT IDC_EDIT_ERROR_CALLBACK,328,224,312,14,ES_AUTOHSCROLL
|
||||
PUSHBUTTON "Clear",IDC_BUTTON_CLEAR_ERROR_CALLBACK,644,224,24,14
|
||||
EDITTEXT IDC_EDIT_RX_CODEC_1,256,56,216,12,ES_AUTOHSCROLL | ES_READONLY
|
||||
EDITTEXT IDC_EDIT_RTCP_STAT_1,476,56,316,12,ES_AUTOHSCROLL | ES_READONLY
|
||||
END
|
||||
|
||||
IDD_DTMF_DIALOG DIALOGEX 0, 0, 316, 212
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Telehone Events"
|
||||
FONT 8, "MS Shell Dlg", 400, 0, 0x1
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,260,192,50,14
|
||||
PUSHBUTTON "1",IDC_BUTTON_1,16,20,16,14
|
||||
PUSHBUTTON "2",IDC_BUTTON_2,36,20,16,14
|
||||
PUSHBUTTON "3",IDC_BUTTON_3,56,20,16,14
|
||||
PUSHBUTTON "4",IDC_BUTTON_4,16,36,16,14
|
||||
PUSHBUTTON "5",IDC_BUTTON_5,36,36,16,14
|
||||
PUSHBUTTON "6",IDC_BUTTON_6,56,36,16,14
|
||||
PUSHBUTTON "7",IDC_BUTTON_7,16,52,16,14
|
||||
PUSHBUTTON "8",IDC_BUTTON_8,36,52,16,14
|
||||
PUSHBUTTON "9",IDC_BUTTON_9,56,52,16,14
|
||||
PUSHBUTTON "*",IDC_BUTTON_10,16,68,16,14
|
||||
PUSHBUTTON "0",IDC_BUTTON_11,36,68,16,14
|
||||
PUSHBUTTON "#",IDC_BUTTON_12,56,68,16,14
|
||||
PUSHBUTTON "A",IDC_BUTTON_13,76,20,16,14
|
||||
PUSHBUTTON "B",IDC_BUTTON_14,76,36,16,14
|
||||
PUSHBUTTON "C",IDC_BUTTON_15,76,52,16,14
|
||||
PUSHBUTTON "D",IDC_BUTTON_16,76,68,16,14
|
||||
EDITTEXT IDC_EDIT_DTMF_EVENT,56,90,16,12,ES_AUTOHSCROLL | ES_READONLY
|
||||
LTEXT "Event code",IDC_STATIC_DTMF_EVENT,17,91,37,8
|
||||
PUSHBUTTON "1",IDC_BUTTON_17,16,20,16,14
|
||||
PUSHBUTTON "2",IDC_BUTTON_18,36,20,16,14
|
||||
PUSHBUTTON "3",IDC_BUTTON_19,56,20,16,14
|
||||
PUSHBUTTON "4",IDC_BUTTON_20,16,36,16,14
|
||||
PUSHBUTTON "A",IDC_BUTTON_21,76,20,16,14
|
||||
GROUPBOX "DTMF Events",IDC_STATIC_GROUP_DTMF,4,4,188,132
|
||||
CONTROL "",IDC_CHECK_DTMF_PLAYOUT_RX,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,160,21,12,14
|
||||
LTEXT "Play out-band RX",IDC_STATIC_PLAYOUT_RX,101,24,56,8
|
||||
CONTROL "",IDC_CHECK_DTMF_PLAY_TONE,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,160,39,12,14
|
||||
LTEXT "Play tone locally",IDC_STATIC_PLAY_TONE,101,41,52,8
|
||||
EDITTEXT IDC_EDIT_EVENT_LENGTH,44,163,28,14,ES_AUTOHSCROLL
|
||||
LTEXT "Duration",IDC_STATIC_EVENT_LENGTH,12,165,28,8
|
||||
EDITTEXT IDC_EDIT_EVENT_ATTENUATION,44,183,28,14,ES_AUTOHSCROLL
|
||||
LTEXT "Volume",IDC_STATIC_EVENT_ATTENUATION,12,186,24,8
|
||||
CONTROL "Inband",IDC_CHECK_EVENT_INBAND,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,84,163,40,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "Feedback",IDC_CHECK_DTMF_FEEDBACK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,16,112,48,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "",IDC_CHECK_DIRECT_FEEDBACK,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,96,112,12,14
|
||||
LTEXT "Direct",IDC_STATIC_DIRECT_FEEDBACK,72,115,20,8
|
||||
CONTROL "Single",IDC_RADIO_SINGLE,"Button",BS_AUTORADIOBUTTON | WS_GROUP,112,68,35,10
|
||||
CONTROL "Sequence",IDC_RADIO_MULTI,"Button",BS_AUTORADIOBUTTON,112,80,47,10
|
||||
CONTROL "Start/Stop",IDC_RADIO_START_STOP,"Button",BS_AUTORADIOBUTTON,112,92,49,10
|
||||
GROUPBOX "Mode",IDC_STATIC_MODE,100,56,68,52
|
||||
EDITTEXT IDC_EDIT_EVENT_RX_PT,220,20,24,14,ES_AUTOHSCROLL
|
||||
EDITTEXT IDC_EDIT_EVENT_TX_PT,220,41,24,14,ES_AUTOHSCROLL
|
||||
LTEXT "RX",IDC_STATIC_EVENT_RX_PT,208,22,10,8
|
||||
LTEXT "TX",IDC_STATIC_EVENT_TX_PT,208,42,9,8
|
||||
PUSHBUTTON "Set",IDC_BUTTON_SET_TX_TELEPHONE_PT,248,41,24,14
|
||||
PUSHBUTTON "Set",IDC_BUTTON_SET_RX_TELEPHONE_PT,248,20,24,14
|
||||
GROUPBOX "Payload Type",IDC_STATIC_PT,200,4,80,56
|
||||
EDITTEXT IDC_EDIT_EVENT_CODE,128,163,28,14,ES_AUTOHSCROLL
|
||||
LTEXT "Event code",IDC_STATIC_EVENT_CODE,125,152,37,8
|
||||
PUSHBUTTON "Send",IDC_BUTTON_SEND_TELEPHONE_EVENT,160,163,24,14
|
||||
CONTROL "On/Off",IDC_CHECK_EVENT_DETECTION,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,208,80,40,14,WS_EX_DLGMODALFRAME
|
||||
CONTROL "",IDC_CHECK_DETECT_INBAND,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,208,100,12,14
|
||||
CONTROL "",IDC_CHECK_DETECT_OUT_OF_BAND,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,208,116,12,14
|
||||
LTEXT "Inband",IDC_STATIC_INBAND_DETECTION,220,103,24,8
|
||||
LTEXT "Outband",IDC_STATIC_OUT_OF_BAND_DETECTION,220,120,29,8
|
||||
GROUPBOX "Event Detection",IDC_STATIC_EVENT_DETECTION,200,68,108,68
|
||||
GROUPBOX "Telephone Events",IDC_STATIC_TELEPHONE_EVENTS,4,140,188,64
|
||||
EDITTEXT IDC_EDIT_ON_EVENT_OUT_OF_BAND,252,117,48,14,ES_AUTOHSCROLL
|
||||
EDITTEXT IDC_EDIT_ON_EVENT_INBAND,252,101,48,14,ES_AUTOHSCROLL
|
||||
LTEXT "=> Detections",IDC_STATIC_EVEN,253,90,48,8
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,0,0
|
||||
PRODUCTVERSION 1,0,0,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x4L
|
||||
FILETYPE 0x1L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904e4"
|
||||
BEGIN
|
||||
VALUE "FileDescription", "WebRTC VoiceEngine Test"
|
||||
VALUE "FileVersion", "1.0.0.0"
|
||||
VALUE "InternalName", "WinTest.exe"
|
||||
VALUE "LegalCopyright", "Copyright (c) 2011 The WebRTC project authors. All Rights Reserved."
|
||||
VALUE "OriginalFilename", "WinTest.exe"
|
||||
VALUE "ProductName", "WebRTC VoiceEngine"
|
||||
VALUE "ProductVersion", "1.0.0.0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1252
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO
|
||||
BEGIN
|
||||
IDD_ABOUTBOX, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 228
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 48
|
||||
END
|
||||
|
||||
IDD_WINTEST_DIALOG, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 789
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 271
|
||||
END
|
||||
|
||||
IDD_DTMF_DIALOG, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 309
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 205
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_ABOUTBOX "&About WinTest..."
|
||||
END
|
||||
|
||||
#endif // Swedish resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
#define _AFX_NO_SPLITTER_RESOURCES
|
||||
#define _AFX_NO_OLE_RESOURCES
|
||||
#define _AFX_NO_TRACKER_RESOURCES
|
||||
#define _AFX_NO_PROPERTY_RESOURCES
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_SVE)
|
||||
LANGUAGE 29, 1
|
||||
#pragma code_page(1252)
|
||||
#include "res\WinTest.rc2" // non-Microsoft Visual C++ edited resources
|
||||
#include "afxres.rc" // Standard components
|
||||
#endif
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,274 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2012 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 WEBRTC_VOICE_ENGINE_TEST_WIN_TEST_WINTESTDLG_H_
|
||||
#define WEBRTC_VOICE_ENGINE_TEST_WIN_TEST_WINTESTDLG_H_
|
||||
|
||||
#if (_MSC_VER >= 1400)
|
||||
#define PRINT_GET_RESULT(...) \
|
||||
{ \
|
||||
_strMsg.Format(__VA_ARGS__); \
|
||||
SetDlgItemText(IDC_EDIT_GET_OUTPUT, _strMsg); \
|
||||
} \
|
||||
|
||||
#define TEST(x, ...) \
|
||||
if (!(x)) \
|
||||
{ \
|
||||
_strMsg.Format(__VA_ARGS__); \
|
||||
SetDlgItemText(IDC_EDIT_MESSAGE, _strMsg); \
|
||||
_strErr.Format(_T("FAILED (error=%d)"), _veBasePtr->LastError()); \
|
||||
SetDlgItemText(IDC_EDIT_RESULT, _strErr); \
|
||||
_failCount++; \
|
||||
SetDlgItemInt(IDC_EDIT_N_FAILS, _failCount); \
|
||||
SetDlgItemInt(IDC_EDIT_LAST_ERROR, _veBasePtr->LastError()); \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
_strMsg.Format(__VA_ARGS__); \
|
||||
SetDlgItemText(IDC_EDIT_MESSAGE, _strMsg); \
|
||||
SetDlgItemText(IDC_EDIT_RESULT, _T("OK")); \
|
||||
} \
|
||||
|
||||
#define TEST2(x, ...) \
|
||||
if (!(x)) \
|
||||
{ \
|
||||
_strMsg.Format(__VA_ARGS__); \
|
||||
((CWinTestDlg*)_parentDialogPtr)->UpdateTest(true, _strMsg); \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
_strMsg.Format(__VA_ARGS__); \
|
||||
((CWinTestDlg*)_parentDialogPtr)->UpdateTest(false, _strMsg); \
|
||||
}
|
||||
#else
|
||||
#define TEST(x, exp) \
|
||||
if (!(x)) \
|
||||
{ \
|
||||
_strMsg.Format(exp); \
|
||||
SetDlgItemText(IDC_EDIT_MESSAGE, _strMsg); \
|
||||
_strErr.Format("FAILED (error=%d)", _veBasePtr->LastError()); \
|
||||
SetDlgItemText(IDC_EDIT_RESULT, _strErr); \
|
||||
_failCount++; \
|
||||
SetDlgItemInt(IDC_EDIT_N_FAILS, _failCount); \
|
||||
SetDlgItemInt(IDC_EDIT_LAST_ERROR, _veBasePtr->LastError()); \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
_strMsg.Format(exp); \
|
||||
SetDlgItemText(IDC_EDIT_MESSAGE, _strMsg); \
|
||||
SetDlgItemText(IDC_EDIT_RESULT, _T("OK")); \
|
||||
} \
|
||||
|
||||
#define TEST2(x, exp) \
|
||||
if (!(x)) \
|
||||
{ \
|
||||
_strMsg.Format(exp); \
|
||||
((CWinTestDlg*)_parentDialogPtr)->UpdateTest(true, _strMsg); \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
_strMsg.Format(exp); \
|
||||
((CWinTestDlg*)_parentDialogPtr)->UpdateTest(false, _strMsg); \
|
||||
}
|
||||
#endif
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "webrtc/voice_engine/include/voe_base.h"
|
||||
#include "webrtc/voice_engine/include/voe_codec.h"
|
||||
#include "webrtc/voice_engine/include/voe_dtmf.h"
|
||||
#include "webrtc/voice_engine/include/voe_external_media.h"
|
||||
#include "webrtc/voice_engine/include/voe_file.h"
|
||||
#include "webrtc/voice_engine/include/voe_hardware.h"
|
||||
#include "webrtc/voice_engine/include/voe_network.h"
|
||||
#include "webrtc/voice_engine/include/voe_rtp_rtcp.h"
|
||||
#include "webrtc/voice_engine/include/voe_video_sync.h"
|
||||
#include "webrtc/voice_engine/include/voe_volume_control.h"
|
||||
|
||||
#include "webrtc/voice_engine/include/voe_audio_processing.h"
|
||||
#include "webrtc/voice_engine/include/voe_errors.h"
|
||||
#include "webrtc/voice_engine/include/voe_rtp_rtcp.h"
|
||||
|
||||
class MediaProcessImpl;
|
||||
class RxCallback;
|
||||
class MyTransport;
|
||||
|
||||
using namespace webrtc;
|
||||
|
||||
#define MAX_NUM_OF_CHANNELS 10
|
||||
|
||||
// CWinTestDlg dialog
|
||||
class CWinTestDlg : public CDialog,
|
||||
public VoiceEngineObserver,
|
||||
public VoERTPObserver
|
||||
{
|
||||
// Construction
|
||||
public:
|
||||
CWinTestDlg(CWnd* pParent = NULL); // standard constructor
|
||||
virtual ~CWinTestDlg();
|
||||
|
||||
// Dialog Data
|
||||
enum { IDD = IDD_WINTEST_DIALOG };
|
||||
|
||||
BOOL UpdateTest(bool failed, const CString& strMsg);
|
||||
|
||||
protected:
|
||||
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
||||
|
||||
protected: // VoiceEngineObserver
|
||||
virtual void CallbackOnError(int channel, int errCode);
|
||||
|
||||
protected: // VoERTPObserver
|
||||
virtual void OnIncomingCSRCChanged(
|
||||
int channel, unsigned int CSRC, bool added);
|
||||
virtual void OnIncomingSSRCChanged(
|
||||
int channel, unsigned int SSRC);
|
||||
|
||||
// Implementation
|
||||
protected:
|
||||
HICON m_hIcon;
|
||||
|
||||
// Generated message map functions
|
||||
virtual BOOL OnInitDialog();
|
||||
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
|
||||
afx_msg void OnPaint();
|
||||
afx_msg HCURSOR OnQueryDragIcon();
|
||||
DECLARE_MESSAGE_MAP()
|
||||
public:
|
||||
afx_msg void OnBnClickedButtonCreate1();
|
||||
afx_msg void OnBnClickedButtonDelete1();
|
||||
|
||||
private:
|
||||
VoiceEngine* _vePtr;
|
||||
|
||||
VoECodec* _veCodecPtr;
|
||||
VoEExternalMedia* _veExternalMediaPtr;
|
||||
VoEVolumeControl* _veVolumeControlPtr;
|
||||
VoEHardware* _veHardwarePtr;
|
||||
VoEVideoSync* _veVideoSyncPtr;
|
||||
VoENetwork* _veNetworkPtr;
|
||||
VoEFile* _veFilePtr;
|
||||
VoEAudioProcessing* _veApmPtr;
|
||||
VoEBase* _veBasePtr;
|
||||
VoERTP_RTCP* _veRtpRtcpPtr;
|
||||
|
||||
MyTransport* _transportPtr;
|
||||
MediaProcessImpl* _externalMediaPtr;
|
||||
RxCallback* _rxVadObserverPtr;
|
||||
|
||||
private:
|
||||
int _failCount;
|
||||
CString _strMsg;
|
||||
CString _strErr;
|
||||
bool _externalTransport;
|
||||
bool _externalTransportBuild;
|
||||
int _checkPlayFileIn;
|
||||
int _checkPlayFileIn1;
|
||||
int _checkPlayFileIn2;
|
||||
int _checkPlayFileOut1;
|
||||
int _checkPlayFileOut2;
|
||||
int _checkAGC;
|
||||
int _checkAGC1;
|
||||
int _checkNS;
|
||||
int _checkNS1;
|
||||
int _checkEC;
|
||||
int _checkVAD1;
|
||||
int _checkVAD2;
|
||||
int _checkSrtpTx1;
|
||||
int _checkSrtpTx2;
|
||||
int _checkSrtpRx1;
|
||||
int _checkSrtpRx2;
|
||||
int _checkConference1;
|
||||
int _checkConference2;
|
||||
int _checkOnHold1;
|
||||
int _checkOnHold2;
|
||||
bool _delayEstimate1;
|
||||
bool _delayEstimate2;
|
||||
bool _rxVad;
|
||||
int _nErrorCallbacks;
|
||||
int _timerTicks;
|
||||
std::string _long_audio_file_path;
|
||||
|
||||
public:
|
||||
afx_msg void OnBnClickedButtonCreate2();
|
||||
afx_msg void OnBnClickedButtonDelete2();
|
||||
afx_msg void OnCbnSelchangeComboCodec1();
|
||||
afx_msg void OnBnClickedButtonStartListen1();
|
||||
afx_msg void OnBnClickedButtonStopListen1();
|
||||
afx_msg void OnBnClickedButtonStartPlayout1();
|
||||
afx_msg void OnBnClickedButtonStopPlayout1();
|
||||
afx_msg void OnBnClickedButtonStartSend1();
|
||||
afx_msg void OnBnClickedButtonStopSend1();
|
||||
afx_msg void OnCbnSelchangeComboIp2();
|
||||
afx_msg void OnCbnSelchangeComboIp1();
|
||||
afx_msg void OnCbnSelchangeComboCodec2();
|
||||
afx_msg void OnBnClickedButtonStartListen2();
|
||||
afx_msg void OnBnClickedButtonStopListen2();
|
||||
afx_msg void OnBnClickedButtonStartPlayout2();
|
||||
afx_msg void OnBnClickedButtonStopPlayout2();
|
||||
afx_msg void OnBnClickedButtonStartSend2();
|
||||
afx_msg void OnBnClickedButtonStopSend2();
|
||||
afx_msg void OnBnClickedButtonTest11();
|
||||
afx_msg void OnBnClickedCheckExtTrans1();
|
||||
afx_msg void OnBnClickedCheckPlayFileIn1();
|
||||
afx_msg void OnBnClickedCheckPlayFileOut1();
|
||||
afx_msg void OnBnClickedCheckExtTrans2();
|
||||
afx_msg void OnBnClickedCheckPlayFileIn2();
|
||||
afx_msg void OnBnClickedCheckPlayFileOut2();
|
||||
afx_msg void OnBnClickedCheckPlayFileIn();
|
||||
afx_msg void OnBnClickedCheckPlayFileOut();
|
||||
afx_msg void OnCbnSelchangeComboRecDevice();
|
||||
afx_msg void OnCbnSelchangeComboPlayDevice();
|
||||
afx_msg void OnBnClickedCheckExtMediaIn1();
|
||||
afx_msg void OnBnClickedCheckExtMediaOut1();
|
||||
afx_msg void OnNMReleasedcaptureSliderInputVolume(NMHDR *pNMHDR, LRESULT *pResult);
|
||||
afx_msg void OnNMReleasedcaptureSliderOutputVolume(NMHDR *pNMHDR, LRESULT *pResult);
|
||||
afx_msg void OnTimer(UINT_PTR nIDEvent);
|
||||
afx_msg void OnBnClickedCheckAgc();
|
||||
CString _strComboIp1;
|
||||
CString _strComboIp2;
|
||||
afx_msg void OnBnClickedCheckNs();
|
||||
afx_msg void OnBnClickedCheckEc();
|
||||
afx_msg void OnBnClickedCheckVad1();
|
||||
afx_msg void OnBnClickedCheckVad2();
|
||||
afx_msg void OnBnClickedCheckExtMediaIn2();
|
||||
afx_msg void OnBnClickedCheckExtMediaOut2();
|
||||
afx_msg void OnBnClickedCheckMuteIn();
|
||||
afx_msg void OnBnClickedCheckMuteIn1();
|
||||
afx_msg void OnBnClickedCheckMuteIn2();
|
||||
afx_msg void OnBnClickedCheckSrtpTx1();
|
||||
afx_msg void OnBnClickedCheckSrtpRx1();
|
||||
afx_msg void OnBnClickedCheckSrtpTx2();
|
||||
afx_msg void OnBnClickedCheckSrtpRx2();
|
||||
afx_msg void OnBnClickedButtonDtmf1();
|
||||
afx_msg void OnBnClickedCheckRecMic();
|
||||
afx_msg void OnBnClickedButtonDtmf2();
|
||||
afx_msg void OnBnClickedButtonTest1();
|
||||
afx_msg void OnBnClickedCheckConference1();
|
||||
afx_msg void OnBnClickedCheckConference2();
|
||||
afx_msg void OnBnClickedCheckOnHold1();
|
||||
afx_msg void OnBnClickedCheckOnHold2();
|
||||
afx_msg void OnBnClickedCheckExtMediaIn();
|
||||
afx_msg void OnBnClickedCheckExtMediaOut();
|
||||
afx_msg void OnLbnSelchangeListCodec1();
|
||||
afx_msg void OnNMReleasedcaptureSliderPanLeft(NMHDR *pNMHDR, LRESULT *pResult);
|
||||
afx_msg void OnNMReleasedcaptureSliderPanRight(NMHDR *pNMHDR, LRESULT *pResult);
|
||||
afx_msg void OnBnClickedButtonVersion();
|
||||
afx_msg void OnBnClickedCheckDelayEstimate1();
|
||||
afx_msg void OnBnClickedCheckRxvad();
|
||||
afx_msg void OnBnClickedCheckAgc1();
|
||||
afx_msg void OnBnClickedCheckNs1();
|
||||
afx_msg void OnBnClickedCheckRecCall();
|
||||
afx_msg void OnBnClickedCheckTypingDetection();
|
||||
afx_msg void OnBnClickedCheckRED();
|
||||
afx_msg void OnBnClickedButtonClearErrorCallback();
|
||||
afx_msg void OnBnClickedCheckBwe1();
|
||||
};
|
||||
|
||||
#endif // WEBRTC_VOICE_ENGINE_TEST_WIN_TEST_WINTESTDLG_H_
|
Binary file not shown.
Before Width: | Height: | Size: 21 KiB |
@ -1,13 +0,0 @@
|
||||
//
|
||||
// WinTest.RC2 - resources Microsoft Visual C++ does not edit directly
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#error this file is not editable by Microsoft Visual C++
|
||||
#endif //APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Add manually edited resources here...
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
@ -1,15 +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.
|
||||
*/
|
||||
|
||||
// stdafx.cpp : source file that includes just the standard includes
|
||||
// WinTest.pch will be the pre-compiled header
|
||||
// stdafx.obj will contain the pre-compiled type information
|
||||
|
||||
#include "webrtc/voice_engine/test/win_test/stdafx.h"
|
@ -1,71 +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 WEBRTC_VOICE_ENGINE_TEST_WIN_TEST_STDAFX_H_
|
||||
#define WEBRTC_VOICE_ENGINE_TEST_WIN_TEST_STDAFX_H_
|
||||
|
||||
// stdafx.h : include file for standard system include files,
|
||||
// or project specific include files that are used frequently,
|
||||
// but are changed infrequently
|
||||
|
||||
#ifndef _SECURE_ATL
|
||||
#define _SECURE_ATL 1
|
||||
#endif
|
||||
|
||||
#ifndef VC_EXTRALEAN
|
||||
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
|
||||
#endif
|
||||
|
||||
// Modify the following defines if you have to target a platform prior to the ones specified below.
|
||||
// Refer to MSDN for the latest info on corresponding values for different platforms.
|
||||
#ifndef WINVER // Allow use of features specific to Windows XP or later.
|
||||
#define WINVER 0x0501 // Change this to the appropriate value to target other versions of Windows.
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or later.
|
||||
#define _WIN32_WINNT 0x0501 // Change this to the appropriate value to target other versions of Windows.
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_WINDOWS // Allow use of features specific to Windows 98 or later.
|
||||
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
|
||||
#endif
|
||||
|
||||
#ifndef _WIN32_IE // Allow use of features specific to IE 6.0 or later.
|
||||
#define _WIN32_IE 0x0600 // Change this to the appropriate value to target other versions of IE.
|
||||
#endif
|
||||
|
||||
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
|
||||
|
||||
// turns off MFC's hiding of some common and often safely ignored warning messages
|
||||
#define _AFX_ALL_WARNINGS
|
||||
|
||||
#include <afxwin.h> // MFC core and standard components
|
||||
#include <afxext.h> // MFC extensions
|
||||
|
||||
#ifndef _AFX_NO_OLE_SUPPORT
|
||||
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
|
||||
#endif
|
||||
#ifndef _AFX_NO_AFXCMN_SUPPORT
|
||||
#include <afxcmn.h> // MFC support for Windows Common Controls
|
||||
#endif // _AFX_NO_AFXCMN_SUPPORT
|
||||
|
||||
#ifdef _UNICODE
|
||||
#if defined _M_IX86
|
||||
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
||||
#elif defined _M_IA64
|
||||
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
||||
#elif defined _M_X64
|
||||
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
||||
#else
|
||||
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // WEBRTC_VOICE_ENGINE_TEST_WIN_TEST_STDAFX_H_
|
@ -228,52 +228,6 @@
|
||||
},
|
||||
], # targets
|
||||
'conditions': [
|
||||
# TODO(kjellander): Support UseoFMFC on VS2010.
|
||||
# http://code.google.com/p/webrtc/issues/detail?id=709
|
||||
['OS=="win" and MSVS_VERSION < "2010"', {
|
||||
'targets': [
|
||||
# WinTest - GUI test for Windows
|
||||
{
|
||||
'target_name': 'voe_ui_win_test',
|
||||
'type': 'executable',
|
||||
'dependencies': [
|
||||
'voice_engine',
|
||||
'<(webrtc_root)/system_wrappers/system_wrappers.gyp:system_wrappers',
|
||||
'<(webrtc_root)/test/test.gyp:test_support',
|
||||
],
|
||||
'sources': [
|
||||
'test/win_test/Resource.h',
|
||||
'test/win_test/WinTest.cc',
|
||||
'test/win_test/WinTest.h',
|
||||
'test/win_test/WinTest.rc',
|
||||
'test/win_test/WinTestDlg.cc',
|
||||
'test/win_test/WinTestDlg.h',
|
||||
'test/win_test/res/WinTest.ico',
|
||||
'test/win_test/res/WinTest.rc2',
|
||||
'test/win_test/stdafx.cc',
|
||||
'test/win_test/stdafx.h',
|
||||
],
|
||||
'configurations': {
|
||||
'Common_Base': {
|
||||
'msvs_configuration_attributes': {
|
||||
'conditions': [
|
||||
['component=="shared_library"', {
|
||||
'UseOfMFC': '2', # Shared DLL
|
||||
},{
|
||||
'UseOfMFC': '1', # Static
|
||||
}],
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
'msvs_settings': {
|
||||
'VCLinkerTool': {
|
||||
'SubSystem': '2', # Windows
|
||||
},
|
||||
},
|
||||
},
|
||||
], # targets
|
||||
}],
|
||||
['OS=="android"', {
|
||||
'targets': [
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user