Bug 1903098 - Vendor libwebrtc from eaa4f3ae3c

Upstream commit: https://webrtc.googlesource.com/src/+/eaa4f3ae3cf6539cf0fc543643c441b704b2c4ae
    Fix nits in simulated network.

    (Spelling, missing includes, unused declaration)

    Bug: None
    Change-Id: Ia7b714de1532e7657b5d07c8a98513d2a4430cec
    Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/350041
    Reviewed-by: Jeremy Leconte <jleconte@webrtc.org>
    Reviewed-by: Per Kjellander <perkj@webrtc.org>
    Commit-Queue: Björn Terelius <terelius@webrtc.org>
    Cr-Commit-Position: refs/heads/main@{#42287}
This commit is contained in:
Michael Froman 2024-06-24 10:19:30 -05:00
Родитель 24b8884506
Коммит 527305466c
8 изменённых файлов: 20 добавлений и 6 удалений

3
third_party/libwebrtc/README.moz-ff-commit поставляемый
Просмотреть файл

@ -30630,3 +30630,6 @@ a9d7c19011
# MOZ_LIBWEBRTC_SRC=/home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc MOZ_LIBWEBRTC_BRANCH=mozpatches bash dom/media/webrtc/third_party_build/fast-forward-libwebrtc.sh
# base of lastest vendoring
67ba914249
# MOZ_LIBWEBRTC_SRC=/home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc MOZ_LIBWEBRTC_BRANCH=mozpatches bash dom/media/webrtc/third_party_build/fast-forward-libwebrtc.sh
# base of lastest vendoring
eaa4f3ae3c

2
third_party/libwebrtc/README.mozilla поставляемый
Просмотреть файл

@ -20444,3 +20444,5 @@ libwebrtc updated from /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc
libwebrtc updated from /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2024-06-24T15:17:32.062866.
# ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc
libwebrtc updated from /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2024-06-24T15:18:26.271126.
# ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc
libwebrtc updated from /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2024-06-24T15:19:20.749344.

Просмотреть файл

@ -10,8 +10,10 @@
#include "test/network/emulated_network_manager.h"
#include <functional>
#include <memory>
#include <utility>
#include <vector>
#include "absl/memory/memory.h"
#include "p2p/base/basic_packet_socket_factory.h"

Просмотреть файл

@ -13,9 +13,13 @@
#include <stdint.h>
#include <algorithm>
#include <functional>
#include <limits>
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "absl/base/nullability.h"
#include "absl/types/optional.h"

Просмотреть файл

@ -11,7 +11,10 @@
#include "test/network/network_emulation_manager.h"
#include <algorithm>
#include <functional>
#include <memory>
#include <utility>
#include <vector>
#include "api/field_trials_view.h"
#include "api/units/time_delta.h"

Просмотреть файл

@ -11,6 +11,8 @@
#include "test/network/network_emulation.h"
#include <atomic>
#include <functional>
#include <map>
#include <memory>
#include <set>
@ -177,8 +179,6 @@ EmulatedNetworkNode* CreateEmulatedNodeWithDefaultBuiltInConfig(
} // namespace
using ::testing::_;
TEST(NetworkEmulationManagerTest, GeneratedIpv4AddressDoesNotCollide) {
NetworkEmulationManagerImpl network_manager(
{.time_mode = TimeMode::kRealTime});

Просмотреть файл

@ -175,7 +175,7 @@ bool SimulatedNetwork::EnqueuePacket(PacketInFlightInfo packet) {
// Only update `next_process_time_` if not already set. Otherwise,
// next_process_time_ is calculated when a packet is dequeued. Note that this
// means that the newly enqueud packet risk having an arrival time before
// means that the newly enqueued packet risk having an arrival time before
// `next_process_time_` if packet reordering is allowed and
// config.delay_standard_deviation_ms is set.
// TODO(bugs.webrtc.org/14525): Consider preventing this.

Просмотреть файл

@ -468,7 +468,7 @@ TEST(SimulatedNetworkTest, QueueDelayMsWithStandardDeviationAndReorderAllowed) {
}
TEST(SimulatedNetworkTest, PacketLoss) {
// On a network with 50% probablility of packet loss ...
// On a network with 50% probability of packet loss ...
SimulatedNetwork network =
SimulatedNetwork({.loss_percent = 50}, /*random_seed =*/1);
@ -494,7 +494,7 @@ TEST(SimulatedNetworkTest, PacketLoss) {
}
TEST(SimulatedNetworkTest, NextDeliveryTimeSetAfterLostPackets) {
// On a network with 50% probablility of packet loss ...
// On a network with 50% probability of packet loss ...
SimulatedNetwork network = SimulatedNetwork(
{.queue_delay_ms = 10, .link_capacity_kbps = 1000, .loss_percent = 50},
/*random_seed =*/1);
@ -534,7 +534,7 @@ TEST(SimulatedNetworkTest, NextDeliveryTimeSetAfterLostPackets) {
}
TEST(SimulatedNetworkTest, PacketLossBurst) {
// On a network with 50% probablility of packet loss and an average burst
// On a network with 50% probability of packet loss and an average burst
// loss length of 100 ...
SimulatedNetwork network = SimulatedNetwork(
{.loss_percent = 50, .avg_burst_loss_length = 100}, /*random_seed=*/1);