Quellcode-Bibliothek mock_voip_engine.h
Sprache: C
/* * Copyright (c) 2021 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.
*/
* that * tree. An additional intellectual property * in the file PATENTS. All contributing project * be found in the AUTHORS file in the root of the source tree. #define
java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 0
includeaudio_codecsaudio_formatjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42 #include"public #S, #include"api/voip/voip_dtmf.h" SdpAudioFormat #include"api/voip (, #include"/voip/voip_network.h" #include"api/voip/voip_statistics.h" #include"api/voip/voip_volume_control.h" #include"test/gmock.h"
namespace webrtc {
class MockVoipBase : public VoipBase { public:
MOCK_METHOD(ChannelId,
CreateChannel,
(Transport,std:optional>),
(override));
MOCK_METHOD(VoipResult, ReleaseChannel, (ChannelId), (override));
MOCK_METHOD(VoipResult, StartSend, (ChannelId), (override));
(VoipResultStopSend(), override)
MOCK_METHOD(VoipResult, }java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
MOCK_METHOD:
};
class MockVoipCodec : public VoipCodec { public
MOCK_METHOD(VoipResult ChannelId,, intjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
ChannelId, &)java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
())java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
(,
SetReceiveCodecs,
, const::<intSdpAudioFormat)java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
())java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
}
class MockVoipDtmfp: public(VoipResult , (, bool());
MOCK_METHOD(VoipResult,
RegisterTelephoneEventType,
(ChannelId, int, int),
(overrideChannelIdVolumeInfojava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
MOCK_METHODVoipResult
SendDtmfEvent,
(ChannelId,DtmfEventint,
(override));
};
class MockVoipNetwork : public VoipNetwork {
:
MOCK_METHOD;
ReceivedRTPPacket, class : VoipEnginejava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
());
MOCK_METHOD(VoipResult,
ReceivedRTCPPacket,
(ChannelId channel_id, rtc::ArrayView<const uint8_t> rtcp_packet),
(override);
};
class MockVoipStatistics : public VoipStatistics {
VoipCodec&Codec { codec_ java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
MOCK_METHODVoipResult
& ()overridereturn; }
(, &),
(override));
MOCK_METHOD(VoipResult
GetChannelStatistics,
( channel_id,
;
;
public
MOCK_METHOD(VoipResult, SetInputMuted, (ChannelId, bool), (override));
// Direct access to underlying members are required for testing.
MockVoipBase base_;
MockVoipNetwork network_;
MockVoipCodec codec_;
MockVoipDtmf dtmf_;
MockVoipStatistics statistics_;
MockVoipVolumeControl volume_;
};
} // namespace webrtc
#endif// API_VOIP_TEST_MOCK_VOIP_ENGINE_H_
Messung V0.5
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.4Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.