#include "test/time_controller/simulated_thread.h"
#include <algorithm>
#include <utility>
namespace webrtc {
namespace {
class DummySocketServer : public rtc::SocketServer { … };
}
SimulatedThread::SimulatedThread(
sim_time_impl::SimulatedTimeControllerImpl* handler,
absl::string_view name,
std::unique_ptr<rtc::SocketServer> socket_server)
: … { … }
SimulatedThread::~SimulatedThread() { … }
void SimulatedThread::RunReady(Timestamp at_time) { … }
void SimulatedThread::BlockingCallImpl(rtc::FunctionView<void()> functor,
const Location& ) { … }
void SimulatedThread::PostTaskImpl(absl::AnyInvocable<void() &&> task,
const PostTaskTraits& traits,
const Location& location) { … }
void SimulatedThread::PostDelayedTaskImpl(absl::AnyInvocable<void() &&> task,
TimeDelta delay,
const PostDelayedTaskTraits& traits,
const Location& location) { … }
void SimulatedThread::Stop() { … }
SimulatedMainThread::SimulatedMainThread(
sim_time_impl::SimulatedTimeControllerImpl* handler)
: … { … }
SimulatedMainThread::~SimulatedMainThread() { … }
}