webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
PeerConnectionTestWrapper Class Reference

#include <peerconnectiontestwrapper.h>

Inheritance diagram for PeerConnectionTestWrapper:
webrtc::PeerConnectionObserver webrtc::CreateSessionDescriptionObserver sigslot::has_slots<> webrtc::PeerConnectionObserver webrtc::CreateSessionDescriptionObserver sigslot::has_slots<> sigslot::has_slots_interface sigslot::has_slots_interface rtc::RefCountInterface rtc::RefCountInterface sigslot::has_slots_interface sigslot::has_slots_interface rtc::RefCountInterface rtc::RefCountInterface

Public Member Functions

 PeerConnectionTestWrapper (const std::string &name, rtc::Thread *network_thread, rtc::Thread *worker_thread)
 
virtual ~PeerConnectionTestWrapper ()
 
bool CreatePc (const webrtc::MediaConstraintsInterface *constraints, const webrtc::PeerConnectionInterface::RTCConfiguration &config)
 
webrtc::PeerConnectionInterfacepc ()
 
rtc::scoped_refptr< webrtc::DataChannelInterfaceCreateDataChannel (const std::string &label, const webrtc::DataChannelInit &init)
 
void OnSignalingChange (webrtc::PeerConnectionInterface::SignalingState new_state) override
 
void OnAddStream (rtc::scoped_refptr< webrtc::MediaStreamInterface > stream) override
 
void OnRemoveStream (rtc::scoped_refptr< webrtc::MediaStreamInterface > stream) override
 
void OnDataChannel (rtc::scoped_refptr< webrtc::DataChannelInterface > data_channel) override
 
void OnRenegotiationNeeded () override
 
void OnIceConnectionChange (webrtc::PeerConnectionInterface::IceConnectionState new_state) override
 
void OnIceGatheringChange (webrtc::PeerConnectionInterface::IceGatheringState new_state) override
 
void OnIceCandidate (const webrtc::IceCandidateInterface *candidate) override
 
void OnSuccess (webrtc::SessionDescriptionInterface *desc) override
 
void OnFailure (const std::string &error) override
 
void CreateOffer (const webrtc::MediaConstraintsInterface *constraints)
 
void CreateAnswer (const webrtc::MediaConstraintsInterface *constraints)
 
void ReceiveOfferSdp (const std::string &sdp)
 
void ReceiveAnswerSdp (const std::string &sdp)
 
void AddIceCandidate (const std::string &sdp_mid, int sdp_mline_index, const std::string &candidate)
 
void WaitForCallEstablished ()
 
void WaitForConnection ()
 
void WaitForAudio ()
 
void WaitForVideo ()
 
void GetAndAddUserMedia (bool audio, const webrtc::FakeConstraints &audio_constraints, bool video, const webrtc::FakeConstraints &video_constraints)
 
 PeerConnectionTestWrapper (const std::string &name, rtc::Thread *network_thread, rtc::Thread *worker_thread)
 
virtual ~PeerConnectionTestWrapper ()
 
bool CreatePc (const webrtc::MediaConstraintsInterface *constraints, const webrtc::PeerConnectionInterface::RTCConfiguration &config)
 
webrtc::PeerConnectionInterfacepc ()
 
rtc::scoped_refptr< webrtc::DataChannelInterfaceCreateDataChannel (const std::string &label, const webrtc::DataChannelInit &init)
 
void OnSignalingChange (webrtc::PeerConnectionInterface::SignalingState new_state) override
 
void OnAddStream (rtc::scoped_refptr< webrtc::MediaStreamInterface > stream) override
 
void OnRemoveStream (rtc::scoped_refptr< webrtc::MediaStreamInterface > stream) override
 
void OnDataChannel (rtc::scoped_refptr< webrtc::DataChannelInterface > data_channel) override
 
void OnRenegotiationNeeded () override
 
void OnIceConnectionChange (webrtc::PeerConnectionInterface::IceConnectionState new_state) override
 
void OnIceGatheringChange (webrtc::PeerConnectionInterface::IceGatheringState new_state) override
 
void OnIceCandidate (const webrtc::IceCandidateInterface *candidate) override
 
void OnSuccess (webrtc::SessionDescriptionInterface *desc) override
 
void OnFailure (const std::string &error) override
 
void CreateOffer (const webrtc::MediaConstraintsInterface *constraints)
 
void CreateAnswer (const webrtc::MediaConstraintsInterface *constraints)
 
void ReceiveOfferSdp (const std::string &sdp)
 
void ReceiveAnswerSdp (const std::string &sdp)
 
void AddIceCandidate (const std::string &sdp_mid, int sdp_mline_index, const std::string &candidate)
 
void WaitForCallEstablished ()
 
void WaitForConnection ()
 
void WaitForAudio ()
 
void WaitForVideo ()
 
void GetAndAddUserMedia (bool audio, const webrtc::FakeConstraints &audio_constraints, bool video, const webrtc::FakeConstraints &video_constraints)
 
- Public Member Functions inherited from webrtc::PeerConnectionObserver
virtual void OnAddStream (MediaStreamInterface *)
 
virtual void OnRemoveStream (MediaStreamInterface *)
 
virtual void OnDataChannel (DataChannelInterface *)
 
virtual void OnIceCandidatesRemoved (const std::vector< cricket::Candidate > &)
 
virtual void OnIceConnectionReceivingChange (bool)
 
virtual void OnAddTrack (rtc::scoped_refptr< RtpReceiverInterface >, const std::vector< rtc::scoped_refptr< MediaStreamInterface >> &)
 
virtual void OnAddStream (MediaStreamInterface *)
 
virtual void OnRemoveStream (MediaStreamInterface *)
 
virtual void OnDataChannel (DataChannelInterface *)
 
virtual void OnIceCandidatesRemoved (const std::vector< cricket::Candidate > &)
 
virtual void OnIceConnectionReceivingChange (bool)
 
virtual void OnAddTrack (rtc::scoped_refptr< RtpReceiverInterface >, const std::vector< rtc::scoped_refptr< MediaStreamInterface >> &)
 
- Public Member Functions inherited from rtc::RefCountInterface
virtual int AddRef () const =0
 
virtual int Release () const =0
 
virtual int AddRef () const =0
 
virtual int Release () const =0
 
- Public Member Functions inherited from sigslot::has_slots<>
 has_slots ()
 
 has_slots ()
 
 ~has_slots ()
 
 ~has_slots ()
 
- Public Member Functions inherited from sigslot::has_slots_interface
void signal_connect (_signal_base_interface *sender)
 
void signal_disconnect (_signal_base_interface *sender)
 
void disconnect_all ()
 
void signal_connect (_signal_base_interface *sender)
 
void signal_disconnect (_signal_base_interface *sender)
 
void disconnect_all ()
 

Static Public Member Functions

static void Connect (PeerConnectionTestWrapper *caller, PeerConnectionTestWrapper *callee)
 
static void Connect (PeerConnectionTestWrapper *caller, PeerConnectionTestWrapper *callee)
 

Public Attributes

sigslot::signal1< std::string * > SignalOnIceCandidateCreated
 
sigslot::signal3< const std::string &, int, const std::string & > SignalOnIceCandidateReady
 
sigslot::signal1< std::string * > SignalOnSdpCreated
 
sigslot::signal1< const std::string & > SignalOnSdpReady
 
sigslot::signal1< webrtc::DataChannelInterface * > SignalOnDataChannel
 

Additional Inherited Members

- Public Types inherited from webrtc::PeerConnectionObserver
enum  StateType { kSignalingState, kIceState, kSignalingState, kIceState }
 
enum  StateType { kSignalingState, kIceState, kSignalingState, kIceState }
 
- Protected Member Functions inherited from webrtc::PeerConnectionObserver
 ~PeerConnectionObserver ()
 
 ~PeerConnectionObserver ()
 
- Protected Member Functions inherited from webrtc::CreateSessionDescriptionObserver
 ~CreateSessionDescriptionObserver ()
 
 ~CreateSessionDescriptionObserver ()
 
- Protected Member Functions inherited from rtc::RefCountInterface
virtual ~RefCountInterface ()
 
virtual ~RefCountInterface ()
 
- Protected Member Functions inherited from sigslot::has_slots_interface
 has_slots_interface (signal_connect_t conn, signal_disconnect_t disc, disconnect_all_t disc_all)
 
virtual ~has_slots_interface ()
 
 has_slots_interface (signal_connect_t conn, signal_disconnect_t disc, disconnect_all_t disc_all)
 
virtual ~has_slots_interface ()
 

Constructor & Destructor Documentation

◆ PeerConnectionTestWrapper() [1/2]

PeerConnectionTestWrapper::PeerConnectionTestWrapper ( const std::string name,
rtc::Thread network_thread,
rtc::Thread worker_thread 
)

◆ ~PeerConnectionTestWrapper() [1/2]

PeerConnectionTestWrapper::~PeerConnectionTestWrapper ( )
virtual

◆ PeerConnectionTestWrapper() [2/2]

PeerConnectionTestWrapper::PeerConnectionTestWrapper ( const std::string name,
rtc::Thread network_thread,
rtc::Thread worker_thread 
)

◆ ~PeerConnectionTestWrapper() [2/2]

virtual PeerConnectionTestWrapper::~PeerConnectionTestWrapper ( )
virtual

Member Function Documentation

◆ AddIceCandidate() [1/2]

void PeerConnectionTestWrapper::AddIceCandidate ( const std::string sdp_mid,
int  sdp_mline_index,
const std::string candidate 
)

◆ AddIceCandidate() [2/2]

void PeerConnectionTestWrapper::AddIceCandidate ( const std::string sdp_mid,
int  sdp_mline_index,
const std::string candidate 
)

◆ Connect() [1/2]

void PeerConnectionTestWrapper::Connect ( PeerConnectionTestWrapper caller,
PeerConnectionTestWrapper callee 
)
static

◆ Connect() [2/2]

static void PeerConnectionTestWrapper::Connect ( PeerConnectionTestWrapper caller,
PeerConnectionTestWrapper callee 
)
static

◆ CreateAnswer() [1/2]

void PeerConnectionTestWrapper::CreateAnswer ( const webrtc::MediaConstraintsInterface constraints)

◆ CreateAnswer() [2/2]

void PeerConnectionTestWrapper::CreateAnswer ( const webrtc::MediaConstraintsInterface constraints)

◆ CreateDataChannel() [1/2]

rtc::scoped_refptr< webrtc::DataChannelInterface > PeerConnectionTestWrapper::CreateDataChannel ( const std::string label,
const webrtc::DataChannelInit init 
)

◆ CreateDataChannel() [2/2]

rtc::scoped_refptr<webrtc::DataChannelInterface> PeerConnectionTestWrapper::CreateDataChannel ( const std::string label,
const webrtc::DataChannelInit init 
)

◆ CreateOffer() [1/2]

void PeerConnectionTestWrapper::CreateOffer ( const webrtc::MediaConstraintsInterface constraints)

◆ CreateOffer() [2/2]

void PeerConnectionTestWrapper::CreateOffer ( const webrtc::MediaConstraintsInterface constraints)

◆ CreatePc() [1/2]

bool PeerConnectionTestWrapper::CreatePc ( const webrtc::MediaConstraintsInterface constraints,
const webrtc::PeerConnectionInterface::RTCConfiguration config 
)

◆ CreatePc() [2/2]

bool PeerConnectionTestWrapper::CreatePc ( const webrtc::MediaConstraintsInterface constraints,
const webrtc::PeerConnectionInterface::RTCConfiguration config 
)

◆ GetAndAddUserMedia() [1/2]

void PeerConnectionTestWrapper::GetAndAddUserMedia ( bool  audio,
const webrtc::FakeConstraints audio_constraints,
bool  video,
const webrtc::FakeConstraints video_constraints 
)

◆ GetAndAddUserMedia() [2/2]

void PeerConnectionTestWrapper::GetAndAddUserMedia ( bool  audio,
const webrtc::FakeConstraints audio_constraints,
bool  video,
const webrtc::FakeConstraints video_constraints 
)

◆ OnAddStream() [1/2]

void PeerConnectionTestWrapper::OnAddStream ( rtc::scoped_refptr< webrtc::MediaStreamInterface stream)
overridevirtual

Reimplemented from webrtc::PeerConnectionObserver.

◆ OnAddStream() [2/2]

void PeerConnectionTestWrapper::OnAddStream ( rtc::scoped_refptr< webrtc::MediaStreamInterface stream)
overridevirtual

Reimplemented from webrtc::PeerConnectionObserver.

◆ OnDataChannel() [1/2]

void PeerConnectionTestWrapper::OnDataChannel ( rtc::scoped_refptr< webrtc::DataChannelInterface data_channel)
overridevirtual

Reimplemented from webrtc::PeerConnectionObserver.

◆ OnDataChannel() [2/2]

void PeerConnectionTestWrapper::OnDataChannel ( rtc::scoped_refptr< webrtc::DataChannelInterface data_channel)
overridevirtual

Reimplemented from webrtc::PeerConnectionObserver.

◆ OnFailure() [1/2]

void PeerConnectionTestWrapper::OnFailure ( const std::string error)
inlineoverridevirtual

◆ OnFailure() [2/2]

void PeerConnectionTestWrapper::OnFailure ( const std::string error)
inlineoverridevirtual

◆ OnIceCandidate() [1/2]

void PeerConnectionTestWrapper::OnIceCandidate ( const webrtc::IceCandidateInterface candidate)
overridevirtual

◆ OnIceCandidate() [2/2]

void PeerConnectionTestWrapper::OnIceCandidate ( const webrtc::IceCandidateInterface candidate)
overridevirtual

◆ OnIceConnectionChange() [1/2]

void PeerConnectionTestWrapper::OnIceConnectionChange ( webrtc::PeerConnectionInterface::IceConnectionState  new_state)
inlineoverridevirtual

◆ OnIceConnectionChange() [2/2]

void PeerConnectionTestWrapper::OnIceConnectionChange ( webrtc::PeerConnectionInterface::IceConnectionState  new_state)
inlineoverridevirtual

◆ OnIceGatheringChange() [1/2]

void PeerConnectionTestWrapper::OnIceGatheringChange ( webrtc::PeerConnectionInterface::IceGatheringState  new_state)
inlineoverridevirtual

◆ OnIceGatheringChange() [2/2]

void PeerConnectionTestWrapper::OnIceGatheringChange ( webrtc::PeerConnectionInterface::IceGatheringState  new_state)
inlineoverridevirtual

◆ OnRemoveStream() [1/2]

void PeerConnectionTestWrapper::OnRemoveStream ( rtc::scoped_refptr< webrtc::MediaStreamInterface stream)
inlineoverridevirtual

Reimplemented from webrtc::PeerConnectionObserver.

◆ OnRemoveStream() [2/2]

void PeerConnectionTestWrapper::OnRemoveStream ( rtc::scoped_refptr< webrtc::MediaStreamInterface stream)
inlineoverridevirtual

Reimplemented from webrtc::PeerConnectionObserver.

◆ OnRenegotiationNeeded() [1/2]

void PeerConnectionTestWrapper::OnRenegotiationNeeded ( )
inlineoverridevirtual

◆ OnRenegotiationNeeded() [2/2]

void PeerConnectionTestWrapper::OnRenegotiationNeeded ( )
inlineoverridevirtual

◆ OnSignalingChange() [1/2]

void PeerConnectionTestWrapper::OnSignalingChange ( webrtc::PeerConnectionInterface::SignalingState  new_state)
inlineoverridevirtual

◆ OnSignalingChange() [2/2]

void PeerConnectionTestWrapper::OnSignalingChange ( webrtc::PeerConnectionInterface::SignalingState  new_state)
inlineoverridevirtual

◆ OnSuccess() [1/2]

void PeerConnectionTestWrapper::OnSuccess ( webrtc::SessionDescriptionInterface desc)
overridevirtual

◆ OnSuccess() [2/2]

void PeerConnectionTestWrapper::OnSuccess ( webrtc::SessionDescriptionInterface desc)
overridevirtual

◆ pc() [1/2]

webrtc::PeerConnectionInterface* PeerConnectionTestWrapper::pc ( )
inline

◆ pc() [2/2]

webrtc::PeerConnectionInterface* PeerConnectionTestWrapper::pc ( )
inline

◆ ReceiveAnswerSdp() [1/2]

void PeerConnectionTestWrapper::ReceiveAnswerSdp ( const std::string sdp)

◆ ReceiveAnswerSdp() [2/2]

void PeerConnectionTestWrapper::ReceiveAnswerSdp ( const std::string sdp)

◆ ReceiveOfferSdp() [1/2]

void PeerConnectionTestWrapper::ReceiveOfferSdp ( const std::string sdp)

◆ ReceiveOfferSdp() [2/2]

void PeerConnectionTestWrapper::ReceiveOfferSdp ( const std::string sdp)

◆ WaitForAudio() [1/2]

void PeerConnectionTestWrapper::WaitForAudio ( )

◆ WaitForAudio() [2/2]

void PeerConnectionTestWrapper::WaitForAudio ( )

◆ WaitForCallEstablished() [1/2]

void PeerConnectionTestWrapper::WaitForCallEstablished ( )

◆ WaitForCallEstablished() [2/2]

void PeerConnectionTestWrapper::WaitForCallEstablished ( )

◆ WaitForConnection() [1/2]

void PeerConnectionTestWrapper::WaitForConnection ( )

◆ WaitForConnection() [2/2]

void PeerConnectionTestWrapper::WaitForConnection ( )

◆ WaitForVideo() [1/2]

void PeerConnectionTestWrapper::WaitForVideo ( )

◆ WaitForVideo() [2/2]

void PeerConnectionTestWrapper::WaitForVideo ( )

Member Data Documentation

◆ SignalOnDataChannel

sigslot::signal1< webrtc::DataChannelInterface * > PeerConnectionTestWrapper::SignalOnDataChannel

◆ SignalOnIceCandidateCreated

sigslot::signal1< std::string * > PeerConnectionTestWrapper::SignalOnIceCandidateCreated

◆ SignalOnIceCandidateReady

sigslot::signal3< const std::string &, int, const std::string & > PeerConnectionTestWrapper::SignalOnIceCandidateReady

◆ SignalOnSdpCreated

sigslot::signal1< std::string * > PeerConnectionTestWrapper::SignalOnSdpCreated

◆ SignalOnSdpReady

sigslot::signal1< const std::string & > PeerConnectionTestWrapper::SignalOnSdpReady

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