#include "quiche/quic/test_tools/simulator/link.h"
#include <algorithm>
#include <memory>
#include <string>
#include <utility>
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "quiche/quic/test_tools/simulator/simulator.h"
namespace quic {
namespace simulator {
const uint64_t kMaxRandomDelayUs = …;
OneWayLink::OneWayLink(Simulator* simulator, std::string name,
UnconstrainedPortInterface* sink,
QuicBandwidth bandwidth,
QuicTime::Delta propagation_delay)
: … { … }
OneWayLink::~OneWayLink() { … }
OneWayLink::QueuedPacket::QueuedPacket(std::unique_ptr<Packet> packet,
QuicTime dequeue_time)
: … { … }
OneWayLink::QueuedPacket::QueuedPacket(QueuedPacket&& other) = default;
OneWayLink::QueuedPacket::~QueuedPacket() { … }
void OneWayLink::AcceptPacket(std::unique_ptr<Packet> packet) { … }
QuicTime::Delta OneWayLink::TimeUntilAvailable() { … }
void OneWayLink::Act() { … }
void OneWayLink::ScheduleNextPacketDeparture() { … }
QuicTime::Delta OneWayLink::GetRandomDelay(QuicTime::Delta transfer_time) { … }
SymmetricLink::SymmetricLink(Simulator* simulator, std::string name,
UnconstrainedPortInterface* sink_a,
UnconstrainedPortInterface* sink_b,
QuicBandwidth bandwidth,
QuicTime::Delta propagation_delay)
: … { … }
SymmetricLink::SymmetricLink(Endpoint* endpoint_a, Endpoint* endpoint_b,
QuicBandwidth bandwidth,
QuicTime::Delta propagation_delay)
: … { … }
}
}