#include "test/network/emulated_turn_server.h"
#include <string>
#include <utility>
#include "api/packet_socket_factory.h"
#include "rtc_base/network/received_packet.h"
#include "rtc_base/strings/string_builder.h"
#include "rtc_base/task_queue_for_test.h"
namespace {
static const char kTestRealm[] = …;
static const char kTestSoftware[] = …;
class PacketSocketFactoryWrapper : public rtc::PacketSocketFactory { … };
}
namespace webrtc {
namespace test {
class EmulatedTURNServer::AsyncPacketSocketWrapper
: public rtc::AsyncPacketSocket { … };
EmulatedTURNServer::EmulatedTURNServer(std::unique_ptr<rtc::Thread> thread,
EmulatedEndpoint* client,
EmulatedEndpoint* peer)
: … { … }
void EmulatedTURNServer::Stop() { … }
EmulatedTURNServer::~EmulatedTURNServer() { … }
rtc::AsyncPacketSocket* EmulatedTURNServer::Wrap(EmulatedEndpoint* endpoint) { … }
void EmulatedTURNServer::OnPacketReceived(webrtc::EmulatedIpPacket packet) { … }
void EmulatedTURNServer::Unbind(rtc::SocketAddress address) { … }
}
}