From 1031a4f54c57fa0d0afb7b7e0935b0288db29b52 Mon Sep 17 00:00:00 2001 From: Artem Titov Date: Thu, 21 Jul 2022 16:04:45 +0200 Subject: [PATCH] Introduce method to simplify creation of ideal emulated network Bug: b/239799175 Change-Id: I3b082cdeea7748b2f642a864598916bcadf3ec39 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/269240 Reviewed-by: Mirko Bonadei Commit-Queue: Artem Titov Cr-Commit-Position: refs/heads/main@{#37588} --- api/test/network_emulation_manager.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/api/test/network_emulation_manager.h b/api/test/network_emulation_manager.h index fcf33d947b..85dd39cfe8 100644 --- a/api/test/network_emulation_manager.h +++ b/api/test/network_emulation_manager.h @@ -197,6 +197,11 @@ class NetworkEmulationManager { // Returns a mode in which underlying time controller operates. virtual TimeMode time_mode() const = 0; + // Creates an emulated network node, which represents ideal network with + // unlimited capacity, no delay and no packet loss. + EmulatedNetworkNode* CreateUnconstrainedEmulatedNode() { + return CreateEmulatedNode(BuiltInNetworkBehaviorConfig()); + } // Creates an emulated network node, which represents single network in // the emulated network layer. Uses default implementation on network behavior // which can be configured with `config`. `random_seed` can be provided to