chromium/third_party/webrtc/test/network/cross_traffic.cc

/*
 *  Copyright (c) 2019 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#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) {}

}  // namespace test
}  // namespace webrtc