webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Protected Member Functions | Protected Attributes | List of all members
PeerConnectionInterfaceTest Class Reference
Inheritance diagram for PeerConnectionInterfaceTest:
testing::Test

Protected Member Functions

 PeerConnectionInterfaceTest ()
 
virtual void SetUp ()
 
void CreatePeerConnection ()
 
void CreatePeerConnectionWithoutDtls ()
 
void CreatePeerConnection (webrtc::MediaConstraintsInterface *constraints)
 
void CreatePeerConnectionWithIceTransportsType (PeerConnectionInterface::IceTransportsType type)
 
void CreatePeerConnectionWithIceServer (const std::string &uri, const std::string &password)
 
void CreatePeerConnection (PeerConnectionInterface::RTCConfiguration config, webrtc::MediaConstraintsInterface *constraints)
 
void CreatePeerConnectionExpectFail (const std::string &uri)
 
void CreatePeerConnectionWithDifferentConfigurations ()
 
void ReleasePeerConnection ()
 
void AddVideoStream (const std::string &label)
 
void AddVoiceStream (const std::string &label)
 
void AddAudioVideoStream (const std::string &stream_label, const std::string &audio_track_label, const std::string &video_track_label)
 
bool DoCreateOfferAnswer (std::unique_ptr< SessionDescriptionInterface > *desc, bool offer, MediaConstraintsInterface *constraints)
 
bool DoCreateOffer (std::unique_ptr< SessionDescriptionInterface > *desc, MediaConstraintsInterface *constraints)
 
bool DoCreateAnswer (std::unique_ptr< SessionDescriptionInterface > *desc, MediaConstraintsInterface *constraints)
 
bool DoSetSessionDescription (SessionDescriptionInterface *desc, bool local)
 
bool DoSetLocalDescription (SessionDescriptionInterface *desc)
 
bool DoSetRemoteDescription (SessionDescriptionInterface *desc)
 
bool DoGetStats (MediaStreamTrackInterface *track)
 
void InitiateCall ()
 
void VerifyRemoteRtpHeaderExtensions ()
 
void CreateOfferAsRemoteDescription ()
 
void CreateAndSetRemoteOffer (const std::string &sdp)
 
void CreateAnswerAsLocalDescription ()
 
void CreatePrAnswerAsLocalDescription ()
 
void CreateOfferReceiveAnswer ()
 
void CreateOfferAsLocalDescription ()
 
void CreateAnswerAsRemoteDescription (const std::string &sdp)
 
void CreatePrAnswerAndAnswerAsRemoteDescription (const std::string &sdp)
 
void WaitAndVerifyOnAddStream (const std::string &stream_label)
 
void CreateOfferReceiveAnswerWithoutSsrc ()
 
std::unique_ptr< SessionDescriptionInterfaceCreateSessionDescriptionAndReference (size_t number_of_audio_tracks, size_t number_of_video_tracks)
 
void AddAudioTrack (const std::string &track_id, MediaStreamInterface *stream)
 
void AddVideoTrack (const std::string &track_id, MediaStreamInterface *stream)
 
std::unique_ptr< SessionDescriptionInterfaceCreateOfferWithOneAudioStream ()
 
std::unique_ptr< SessionDescriptionInterfaceCreateAnswerWithOneAudioStream ()
 
const std::stringGetFirstAudioStreamCname (const SessionDescriptionInterface *desc)
 
- Protected Member Functions inherited from testing::Test
 Test ()
 
virtual void TearDown ()
 

Protected Attributes

cricket::FakePortAllocatorport_allocator_ = nullptr
 
FakeRTCCertificateGeneratorfake_certificate_generator_ = nullptr
 
rtc::scoped_refptr< webrtc::PeerConnectionFactoryInterfacepc_factory_
 
rtc::scoped_refptr< PeerConnectionFactoryForTestpc_factory_for_test_
 
rtc::scoped_refptr< PeerConnectionInterfacepc_
 
MockPeerConnectionObserver observer_
 
rtc::scoped_refptr< StreamCollectionreference_collection_
 

Constructor & Destructor Documentation

◆ PeerConnectionInterfaceTest()

PeerConnectionInterfaceTest::PeerConnectionInterfaceTest ( )
inlineprotected

Member Function Documentation

◆ AddAudioTrack()

void PeerConnectionInterfaceTest::AddAudioTrack ( const std::string track_id,
MediaStreamInterface stream 
)
inlineprotected

◆ AddAudioVideoStream()

void PeerConnectionInterfaceTest::AddAudioVideoStream ( const std::string stream_label,
const std::string audio_track_label,
const std::string video_track_label 
)
inlineprotected

◆ AddVideoStream()

void PeerConnectionInterfaceTest::AddVideoStream ( const std::string label)
inlineprotected

◆ AddVideoTrack()

void PeerConnectionInterfaceTest::AddVideoTrack ( const std::string track_id,
MediaStreamInterface stream 
)
inlineprotected

◆ AddVoiceStream()

void PeerConnectionInterfaceTest::AddVoiceStream ( const std::string label)
inlineprotected

◆ CreateAndSetRemoteOffer()

void PeerConnectionInterfaceTest::CreateAndSetRemoteOffer ( const std::string sdp)
inlineprotected

◆ CreateAnswerAsLocalDescription()

void PeerConnectionInterfaceTest::CreateAnswerAsLocalDescription ( )
inlineprotected

◆ CreateAnswerAsRemoteDescription()

void PeerConnectionInterfaceTest::CreateAnswerAsRemoteDescription ( const std::string sdp)
inlineprotected

◆ CreateAnswerWithOneAudioStream()

std::unique_ptr<SessionDescriptionInterface> PeerConnectionInterfaceTest::CreateAnswerWithOneAudioStream ( )
inlineprotected

◆ CreateOfferAsLocalDescription()

void PeerConnectionInterfaceTest::CreateOfferAsLocalDescription ( )
inlineprotected

◆ CreateOfferAsRemoteDescription()

void PeerConnectionInterfaceTest::CreateOfferAsRemoteDescription ( )
inlineprotected

◆ CreateOfferReceiveAnswer()

void PeerConnectionInterfaceTest::CreateOfferReceiveAnswer ( )
inlineprotected

◆ CreateOfferReceiveAnswerWithoutSsrc()

void PeerConnectionInterfaceTest::CreateOfferReceiveAnswerWithoutSsrc ( )
inlineprotected

◆ CreateOfferWithOneAudioStream()

std::unique_ptr<SessionDescriptionInterface> PeerConnectionInterfaceTest::CreateOfferWithOneAudioStream ( )
inlineprotected

◆ CreatePeerConnection() [1/3]

void PeerConnectionInterfaceTest::CreatePeerConnection ( )
inlineprotected

◆ CreatePeerConnection() [2/3]

void PeerConnectionInterfaceTest::CreatePeerConnection ( webrtc::MediaConstraintsInterface constraints)
inlineprotected

◆ CreatePeerConnection() [3/3]

void PeerConnectionInterfaceTest::CreatePeerConnection ( PeerConnectionInterface::RTCConfiguration  config,
webrtc::MediaConstraintsInterface constraints 
)
inlineprotected

◆ CreatePeerConnectionExpectFail()

void PeerConnectionInterfaceTest::CreatePeerConnectionExpectFail ( const std::string uri)
inlineprotected

◆ CreatePeerConnectionWithDifferentConfigurations()

void PeerConnectionInterfaceTest::CreatePeerConnectionWithDifferentConfigurations ( )
inlineprotected

◆ CreatePeerConnectionWithIceServer()

void PeerConnectionInterfaceTest::CreatePeerConnectionWithIceServer ( const std::string uri,
const std::string password 
)
inlineprotected

◆ CreatePeerConnectionWithIceTransportsType()

void PeerConnectionInterfaceTest::CreatePeerConnectionWithIceTransportsType ( PeerConnectionInterface::IceTransportsType  type)
inlineprotected

◆ CreatePeerConnectionWithoutDtls()

void PeerConnectionInterfaceTest::CreatePeerConnectionWithoutDtls ( )
inlineprotected

◆ CreatePrAnswerAndAnswerAsRemoteDescription()

void PeerConnectionInterfaceTest::CreatePrAnswerAndAnswerAsRemoteDescription ( const std::string sdp)
inlineprotected

◆ CreatePrAnswerAsLocalDescription()

void PeerConnectionInterfaceTest::CreatePrAnswerAsLocalDescription ( )
inlineprotected

◆ CreateSessionDescriptionAndReference()

std::unique_ptr<SessionDescriptionInterface> PeerConnectionInterfaceTest::CreateSessionDescriptionAndReference ( size_t  number_of_audio_tracks,
size_t  number_of_video_tracks 
)
inlineprotected

◆ DoCreateAnswer()

bool PeerConnectionInterfaceTest::DoCreateAnswer ( std::unique_ptr< SessionDescriptionInterface > *  desc,
MediaConstraintsInterface constraints 
)
inlineprotected

◆ DoCreateOffer()

bool PeerConnectionInterfaceTest::DoCreateOffer ( std::unique_ptr< SessionDescriptionInterface > *  desc,
MediaConstraintsInterface constraints 
)
inlineprotected

◆ DoCreateOfferAnswer()

bool PeerConnectionInterfaceTest::DoCreateOfferAnswer ( std::unique_ptr< SessionDescriptionInterface > *  desc,
bool  offer,
MediaConstraintsInterface constraints 
)
inlineprotected

◆ DoGetStats()

bool PeerConnectionInterfaceTest::DoGetStats ( MediaStreamTrackInterface track)
inlineprotected

◆ DoSetLocalDescription()

bool PeerConnectionInterfaceTest::DoSetLocalDescription ( SessionDescriptionInterface desc)
inlineprotected

◆ DoSetRemoteDescription()

bool PeerConnectionInterfaceTest::DoSetRemoteDescription ( SessionDescriptionInterface desc)
inlineprotected

◆ DoSetSessionDescription()

bool PeerConnectionInterfaceTest::DoSetSessionDescription ( SessionDescriptionInterface desc,
bool  local 
)
inlineprotected

◆ GetFirstAudioStreamCname()

const std::string& PeerConnectionInterfaceTest::GetFirstAudioStreamCname ( const SessionDescriptionInterface desc)
inlineprotected

◆ InitiateCall()

void PeerConnectionInterfaceTest::InitiateCall ( )
inlineprotected

◆ ReleasePeerConnection()

void PeerConnectionInterfaceTest::ReleasePeerConnection ( )
inlineprotected

◆ SetUp()

virtual void PeerConnectionInterfaceTest::SetUp ( )
inlineprotectedvirtual

Reimplemented from testing::Test.

◆ VerifyRemoteRtpHeaderExtensions()

void PeerConnectionInterfaceTest::VerifyRemoteRtpHeaderExtensions ( )
inlineprotected

◆ WaitAndVerifyOnAddStream()

void PeerConnectionInterfaceTest::WaitAndVerifyOnAddStream ( const std::string stream_label)
inlineprotected

Member Data Documentation

◆ fake_certificate_generator_

FakeRTCCertificateGenerator* PeerConnectionInterfaceTest::fake_certificate_generator_ = nullptr
protected

◆ observer_

MockPeerConnectionObserver PeerConnectionInterfaceTest::observer_
protected

◆ pc_

rtc::scoped_refptr<PeerConnectionInterface> PeerConnectionInterfaceTest::pc_
protected

◆ pc_factory_

rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> PeerConnectionInterfaceTest::pc_factory_
protected

◆ pc_factory_for_test_

rtc::scoped_refptr<PeerConnectionFactoryForTest> PeerConnectionInterfaceTest::pc_factory_for_test_
protected

◆ port_allocator_

cricket::FakePortAllocator* PeerConnectionInterfaceTest::port_allocator_ = nullptr
protected

◆ reference_collection_

rtc::scoped_refptr<StreamCollection> PeerConnectionInterfaceTest::reference_collection_
protected

The documentation for this class was generated from the following file: