#include "services/network/throttling/network_conditions.h"
#include <algorithm>
namespace network {
NetworkConditions::NetworkConditions() : … { … }
NetworkConditions::NetworkConditions(const NetworkConditions&) = default;
NetworkConditions& NetworkConditions::operator=(const NetworkConditions&) =
default;
NetworkConditions::NetworkConditions(bool offline)
: … { … }
NetworkConditions::NetworkConditions(bool offline,
double latency,
double download_throughput,
double upload_throughput)
: … { … }
NetworkConditions::NetworkConditions(bool offline,
double latency,
double download_throughput,
double upload_throughput,
double packet_loss,
int packet_queue_length,
bool packet_reordering)
: … { … }
NetworkConditions::~NetworkConditions() { … }
bool NetworkConditions::IsThrottling() const { … }
}