mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-13 22:00:47 +01:00

Bug: webrtc:42226242 Change-Id: I28dde76246f9c10e61cd6f294278edd364513267 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/359220 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Dor Hen <dorhen@meta.com> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#42770}
40 lines
1.4 KiB
C++
40 lines
1.4 KiB
C++
/*
|
|
* Copyright (c) 2021 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 "api/test/network_emulation/create_cross_traffic.h"
|
|
|
|
#include <memory>
|
|
|
|
#include "api/test/network_emulation/cross_traffic.h"
|
|
#include "test/network/cross_traffic.h"
|
|
#include "test/network/network_emulation.h"
|
|
|
|
namespace webrtc {
|
|
|
|
std::unique_ptr<CrossTrafficGenerator> CreateRandomWalkCrossTraffic(
|
|
CrossTrafficRoute* traffic_route,
|
|
RandomWalkConfig config) {
|
|
return std::make_unique<test::RandomWalkCrossTraffic>(config, traffic_route);
|
|
}
|
|
|
|
std::unique_ptr<CrossTrafficGenerator> CreatePulsedPeaksCrossTraffic(
|
|
CrossTrafficRoute* traffic_route,
|
|
PulsedPeaksConfig config) {
|
|
return std::make_unique<test::PulsedPeaksCrossTraffic>(config, traffic_route);
|
|
}
|
|
|
|
std::unique_ptr<CrossTrafficGenerator> CreateFakeTcpCrossTraffic(
|
|
EmulatedRoute* send_route,
|
|
EmulatedRoute* ret_route,
|
|
FakeTcpConfig config) {
|
|
return std::make_unique<test::FakeTcpCrossTraffic>(config, send_route,
|
|
ret_route);
|
|
}
|
|
|
|
} // namespace webrtc
|