#include "test/network/cross_traffic.h"
#include <math.h>
#include <utility>
#include "absl/memory/memory.h"
#include "absl/types/optional.h"
#include "cross_traffic.h"
#include "rtc_base/logging.h"
#include "rtc_base/numerics/safe_minmax.h"
namespace webrtc {
namespace test {
RandomWalkCrossTraffic::RandomWalkCrossTraffic(RandomWalkConfig config,
CrossTrafficRoute* traffic_route)
: … { … }
RandomWalkCrossTraffic::~RandomWalkCrossTraffic() = default;
void RandomWalkCrossTraffic::Process(Timestamp at_time) { … }
TimeDelta RandomWalkCrossTraffic::GetProcessInterval() const { … }
DataRate RandomWalkCrossTraffic::TrafficRate() const { … }
ColumnPrinter RandomWalkCrossTraffic::StatsPrinter() { … }
PulsedPeaksCrossTraffic::PulsedPeaksCrossTraffic(
PulsedPeaksConfig config,
CrossTrafficRoute* traffic_route)
: … { … }
PulsedPeaksCrossTraffic::~PulsedPeaksCrossTraffic() = default;
void PulsedPeaksCrossTraffic::Process(Timestamp at_time) { … }
TimeDelta PulsedPeaksCrossTraffic::GetProcessInterval() const { … }
DataRate PulsedPeaksCrossTraffic::TrafficRate() const { … }
ColumnPrinter PulsedPeaksCrossTraffic::StatsPrinter() { … }
TcpMessageRouteImpl::TcpMessageRouteImpl(Clock* clock,
TaskQueueBase* task_queue,
EmulatedRoute* send_route,
EmulatedRoute* ret_route)
: … { … }
void TcpMessageRouteImpl::SendMessage(size_t size,
std::function<void()> on_received) { … }
void TcpMessageRouteImpl::OnRequest(TcpPacket packet_info) { … }
void TcpMessageRouteImpl::OnResponse(TcpPacket packet_info, Timestamp at_time) { … }
void TcpMessageRouteImpl::HandleLoss(Timestamp at_time) { … }
void TcpMessageRouteImpl::SendPackets(Timestamp at_time) { … }
void TcpMessageRouteImpl::HandlePacketTimeout(int seq_num, Timestamp at_time) { … }
FakeTcpCrossTraffic::FakeTcpCrossTraffic(FakeTcpConfig config,
EmulatedRoute* send_route,
EmulatedRoute* ret_route)
: … { … }
TimeDelta FakeTcpCrossTraffic::GetProcessInterval() const { … }
void FakeTcpCrossTraffic::Process(Timestamp at_time) { … }
void FakeTcpCrossTraffic::OnRequest(int sequence_number, Timestamp at_time) { … }
void FakeTcpCrossTraffic::OnResponse(int sequence_number, Timestamp at_time) { … }
void FakeTcpCrossTraffic::HandleLoss(Timestamp at_time) { … }
void FakeTcpCrossTraffic::SendPackets(Timestamp at_time) { … }
}
}