#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "remoting/test/fake_network_dispatcher.h"
#include <stddef.h>
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/task/single_thread_task_runner.h"
#include "net/base/io_buffer.h"
namespace remoting {
FakeNetworkDispatcher::FakeNetworkDispatcher() : … { … }
FakeNetworkDispatcher::~FakeNetworkDispatcher() { … }
rtc::IPAddress FakeNetworkDispatcher::AllocateAddress() { … }
void FakeNetworkDispatcher::AddNode(Node* node) { … }
void FakeNetworkDispatcher::RemoveNode(Node* node) { … }
void FakeNetworkDispatcher::DeliverPacket(
const rtc::SocketAddress& from,
const rtc::SocketAddress& to,
const scoped_refptr<net::IOBuffer>& data,
int data_size) { … }
}