|
webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include <memory>#include <set>#include <string>#include <vector>#include "webrtc/api/jsepsessiondescription.h"#include "webrtc/base/checks.h"#include "webrtc/base/gunit.h"#include "webrtc/base/logging.h"#include "webrtc/base/messagedigest.h"#include "webrtc/base/sslfingerprint.h"#include "webrtc/base/stringencode.h"#include "webrtc/base/stringutils.h"#include "webrtc/media/base/mediaconstants.h"#include "webrtc/media/engine/webrtcvideoengine2.h"#include "webrtc/modules/video_coding/codecs/h264/include/h264.h"#include "webrtc/p2p/base/p2pconstants.h"#include "webrtc/pc/mediasession.h"#include "webrtc/pc/webrtcsdp.h"Classes | |
| struct | CodecParams |
| class | WebRtcSdpTest |
Typedefs | |
| typedef std::vector< AudioCodec > | AudioCodecs |
| typedef std::vector< Candidate > | Candidates |
Functions | |
| void | TestMismatch (const std::string &string1, const std::string &string2) |
| TEST_F (WebRtcSdpTest, SerializeSessionDescription) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionEmpty) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithIPv6Only) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithBothIPFamilies) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithBothProtocols) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithTCPOnly) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithFingerprint) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithFingerprintNoCryptos) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithoutCandidates) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithBundle) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithBandwidth) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithIceOptions) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithRecvOnlyContent) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithSendOnlyContent) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithInactiveContent) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithAudioRejected) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithVideoRejected) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithAudioVideoRejected) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithRtpDataChannel) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithSctpDataChannel) | |
| TEST_F (WebRtcSdpTest, SerializeWithSctpDataChannelAndNewPort) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithDataChannelAndBandwidth) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithExtmap) | |
| TEST_F (WebRtcSdpTest, SerializeCandidates) | |
| TEST_F (WebRtcSdpTest, SerializeTcpCandidates) | |
| TEST_F (WebRtcSdpTest, SerializeSessionDescriptionWithH264) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescription) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithoutMline) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithoutCarriageReturn) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithoutCandidates) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithoutRtpmap) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithoutRtpmapButWithFmtp) | |
| TEST_F (WebRtcSdpTest, DeserializeJsepSessionDescriptionWithFingerprint) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithBundle) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithBandwidth) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithIceOptions) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithUfragPwd) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithRecvOnlyContent) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithSendOnlyContent) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithInactiveContent) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithRejectedAudio) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithRejectedVideo) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithRejectedAudioVideo) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithoutMsid) | |
| TEST_F (WebRtcSdpTest, DeserializeCandidate) | |
| TEST_F (WebRtcSdpTest, DeserializeRawCandidateAttribute) | |
| TEST_F (WebRtcSdpTest, DeserializeInvalidCandidiate) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithRtpDataChannels) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithSctpDataChannels) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithSctpDataChannelsWithSctpPort) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithSctpDataChannelsWithSctpColonPort) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithMultiSctpPort) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithCorruptedSctpDataChannels) | |
| void | MutateJsepSctpPort (JsepSessionDescription &jdesc, const SessionDescription &desc) |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithSctpDataChannelAndUnusualPort) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithSctpDataChannelAndUnusualPortInAttribute) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithRtpDataChannelsAndBandwidth) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithSctpDataChannelsAndBandwidth) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithSessionLevelExtmap) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithMediaLevelExtmap) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithInvalidExtmap) | |
| TEST_F (WebRtcSdpTest, DeserializeSessionDescriptionWithoutEndLineBreak) | |
| TEST_F (WebRtcSdpTest, DeserializeCandidateWithDifferentTransport) | |
| TEST_F (WebRtcSdpTest, DeserializeCandidateWithUfragPwd) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithConferenceFlag) | |
| TEST_F (WebRtcSdpTest, DeserializeBrokenSdp) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithInvalidAttributeValue) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithReorderedPltypes) | |
| TEST_F (WebRtcSdpTest, DeserializeSerializeCodecParams) | |
| TEST_F (WebRtcSdpTest, DeserializeSerializeRtcpFb) | |
| TEST_F (WebRtcSdpTest, DeserializeSerializeRtcpFbWildcard) | |
| TEST_F (WebRtcSdpTest, DeserializeVideoFmtp) | |
| TEST_F (WebRtcSdpTest, DeserializeVideoFmtpWithSprops) | |
| TEST_F (WebRtcSdpTest, DeserializeVideoFmtpWithSpace) | |
| TEST_F (WebRtcSdpTest, SerializeAudioFmtpWithUnknownParameter) | |
| TEST_F (WebRtcSdpTest, SerializeAudioFmtpWithKnownFmtpParameter) | |
| TEST_F (WebRtcSdpTest, SerializeAudioFmtpWithPTimeAndMaxPTime) | |
| TEST_F (WebRtcSdpTest, SerializeVideoFmtp) | |
| TEST_F (WebRtcSdpTest, DeserializeSdpWithIceLite) | |
| TEST_F (WebRtcSdpTest, RoundTripSdpWithSctpDataChannelsWithCandidates) | |
| TEST_F (WebRtcSdpTest, SerializeDtlsSetupAttribute) | |
| TEST_F (WebRtcSdpTest, DeserializeDtlsSetupAttribute) | |
| TEST_F (WebRtcSdpTest, MediaContentOrderMaintainedRoundTrip) | |
| TEST_F (WebRtcSdpTest, DeserializeBundleOnlyAttribute) | |
| TEST_F (WebRtcSdpTest, IgnoreBundleOnlyWithNonzeroPort) | |
| TEST_F (WebRtcSdpTest, SerializeBundleOnlyAttribute) | |
| TEST_F (WebRtcSdpTest, DeserializePlanBSessionDescription) | |
| TEST_F (WebRtcSdpTest, SerializePlanBSessionDescription) | |
| TEST_F (WebRtcSdpTest, DeserializePlanBSessionDescriptionWithMsid) | |
| TEST_F (WebRtcSdpTest, DeserializeUnifiedPlanSessionDescription) | |
| TEST_F (WebRtcSdpTest, SerializeUnifiedPlanSessionDescription) | |
| TEST_F (WebRtcSdpTest, DeserializeSctpPortInVideoDescription) | |
| TEST_F (WebRtcSdpTest, DeserializeLargeBandwidthLimit) | |
| TEST_F (WebRtcSdpTest, IceCredentialsInCandidateStringIgnored) | |
| TEST_F (WebRtcSdpTest, DeserializeInvalidPortInCandidateAttribute) | |
| TEST_F (WebRtcSdpTest, DeserializeMsidAttributeWithMissingTrackId) | |
| TEST_F (WebRtcSdpTest, DeserializeMsidAttributeWithMissingStreamId) | |
| typedef std::vector<AudioCodec> AudioCodecs |
| typedef std::vector<Candidate> Candidates |
| void MutateJsepSctpPort | ( | JsepSessionDescription & | jdesc, |
| const SessionDescription & | desc | ||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescription | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionEmpty | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithIPv6Only | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithBothIPFamilies | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithBothProtocols | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithTCPOnly | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithFingerprint | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithFingerprintNoCryptos | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithoutCandidates | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithBundle | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithBandwidth | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithIceOptions | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithRecvOnlyContent | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithSendOnlyContent | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithInactiveContent | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithAudioRejected | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithVideoRejected | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithAudioVideoRejected | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithRtpDataChannel | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithSctpDataChannel | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeWithSctpDataChannelAndNewPort | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithDataChannelAndBandwidth | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithExtmap | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeCandidates | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeTcpCandidates | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeSessionDescriptionWithH264 | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescription | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithoutMline | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithoutCarriageReturn | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithoutCandidates | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithoutRtpmap | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithoutRtpmapButWithFmtp | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeJsepSessionDescriptionWithFingerprint | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithBundle | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithBandwidth | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithIceOptions | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithUfragPwd | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithRecvOnlyContent | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithSendOnlyContent | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithInactiveContent | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithRejectedAudio | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithRejectedVideo | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithRejectedAudioVideo | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithoutMsid | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeCandidate | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeRawCandidateAttribute | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeInvalidCandidiate | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithRtpDataChannels | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithSctpDataChannels | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithSctpDataChannelsWithSctpPort | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithSctpDataChannelsWithSctpColonPort | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithMultiSctpPort | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithCorruptedSctpDataChannels | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithSctpDataChannelAndUnusualPort | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithSctpDataChannelAndUnusualPortInAttribute | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithRtpDataChannelsAndBandwidth | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithSctpDataChannelsAndBandwidth | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithSessionLevelExtmap | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithMediaLevelExtmap | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithInvalidExtmap | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSessionDescriptionWithoutEndLineBreak | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeCandidateWithDifferentTransport | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeCandidateWithUfragPwd | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithConferenceFlag | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeBrokenSdp | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithInvalidAttributeValue | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithReorderedPltypes | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSerializeCodecParams | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSerializeRtcpFb | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSerializeRtcpFbWildcard | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeVideoFmtp | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeVideoFmtpWithSprops | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeVideoFmtpWithSpace | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeAudioFmtpWithUnknownParameter | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeAudioFmtpWithKnownFmtpParameter | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeAudioFmtpWithPTimeAndMaxPTime | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeVideoFmtp | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSdpWithIceLite | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| RoundTripSdpWithSctpDataChannelsWithCandidates | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeDtlsSetupAttribute | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeDtlsSetupAttribute | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| MediaContentOrderMaintainedRoundTrip | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeBundleOnlyAttribute | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| IgnoreBundleOnlyWithNonzeroPort | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeBundleOnlyAttribute | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializePlanBSessionDescription | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializePlanBSessionDescription | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializePlanBSessionDescriptionWithMsid | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeUnifiedPlanSessionDescription | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| SerializeUnifiedPlanSessionDescription | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeSctpPortInVideoDescription | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeLargeBandwidthLimit | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| IceCredentialsInCandidateStringIgnored | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeInvalidPortInCandidateAttribute | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeMsidAttributeWithMissingTrackId | |||
| ) |
| TEST_F | ( | WebRtcSdpTest | , |
| DeserializeMsidAttributeWithMissingStreamId | |||
| ) |
| void TestMismatch | ( | const std::string & | string1, |
| const std::string & | string2 | ||
| ) |
1.8.13