#include "third_party/webrtc_overrides/p2p/base/fake_connection_factory.h"
#include <string_view>
#include "third_party/webrtc/p2p/base/basic_packet_socket_factory.h"
#include "third_party/webrtc/p2p/base/fake_port_allocator.h"
#include "third_party/webrtc/p2p/base/port.h"
#include "third_party/webrtc_overrides/rtc_base/fake_socket_factory.h"
namespace blink {
FakeConnectionFactory::FakeConnectionFactory(rtc::Thread* thread,
base::WaitableEvent* readyEvent)
: … { … }
void FakeConnectionFactory::Prepare(uint32_t allocator_flags) { … }
cricket::Connection* FakeConnectionFactory::CreateConnection(
webrtc::IceCandidateType type,
std::string_view remote_ip,
int remote_port,
int priority) { … }
void FakeConnectionFactory::OnPortReady(cricket::PortAllocatorSession* session,
cricket::PortInterface* port) { … }
cricket::Candidate FakeConnectionFactory::CreateUdpCandidate(
webrtc::IceCandidateType type,
std::string_view ip,
int port,
int priority,
std::string_view ufrag) { … }
}