xref: /aosp_15_r20/external/webrtc/api/test/network_emulation/create_cross_traffic.h (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1 /*
2  *  Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
3  *
4  *  Use of this source code is governed by a BSD-style license
5  *  that can be found in the LICENSE file in the root of the source
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 #ifndef API_TEST_NETWORK_EMULATION_CREATE_CROSS_TRAFFIC_H_
11 #define API_TEST_NETWORK_EMULATION_CREATE_CROSS_TRAFFIC_H_
12 
13 #include <memory>
14 
15 #include "api/test/network_emulation/cross_traffic.h"
16 #include "api/test/network_emulation_manager.h"
17 
18 namespace webrtc {
19 
20 // This API is still in development and can be changed without prior notice.
21 
22 std::unique_ptr<CrossTrafficGenerator> CreateRandomWalkCrossTraffic(
23     CrossTrafficRoute* traffic_route,
24     RandomWalkConfig config);
25 
26 std::unique_ptr<CrossTrafficGenerator> CreatePulsedPeaksCrossTraffic(
27     CrossTrafficRoute* traffic_route,
28     PulsedPeaksConfig config);
29 
30 std::unique_ptr<CrossTrafficGenerator> CreateFakeTcpCrossTraffic(
31     EmulatedRoute* send_route,
32     EmulatedRoute* ret_route,
33     FakeTcpConfig config);
34 
35 }  // namespace webrtc
36 
37 #endif  // API_TEST_NETWORK_EMULATION_CREATE_CROSS_TRAFFIC_H_
38