Remove the possibility to disable IPv6 in Java and ObjC.

It's deprecated and has been removed from Chrome. Let's follow suite.

// Passing all but unrelated bots
NOTRY=True

Bug: webrtc:14608
Change-Id: I6f2601af5b1dc08164230ebf15db2d2f1754f9e5
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/280740
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38488}
This commit is contained in:
Henrik Boström
2022-10-27 13:36:02 +02:00
committed by WebRTC LUCI CQ
parent e6ec81a89c
commit f36d607c4a
7 changed files with 5 additions and 44 deletions

View File

@ -20,8 +20,7 @@ namespace {
// plus audio_jitter_buffer_max_packets.
bool Matches(const PeerConnectionInterface::RTCConfiguration& a,
const PeerConnectionInterface::RTCConfiguration& b) {
return a.disable_ipv6 == b.disable_ipv6 &&
a.audio_jitter_buffer_max_packets ==
return a.audio_jitter_buffer_max_packets ==
b.audio_jitter_buffer_max_packets &&
a.screencast_min_bitrate == b.screencast_min_bitrate &&
a.combined_audio_video_bwe == b.combined_audio_video_bwe &&
@ -36,18 +35,6 @@ TEST(MediaConstraints, CopyConstraintsIntoRtcConfiguration) {
CopyConstraintsIntoRtcConfiguration(&constraints_empty, &configuration);
EXPECT_TRUE(Matches(old_configuration, configuration));
const MediaConstraints constraits_enable_ipv6(
{MediaConstraints::Constraint(MediaConstraints::kEnableIPv6, "true")},
{});
CopyConstraintsIntoRtcConfiguration(&constraits_enable_ipv6, &configuration);
EXPECT_FALSE(configuration.disable_ipv6);
const MediaConstraints constraints_disable_ipv6(
{MediaConstraints::Constraint(MediaConstraints::kEnableIPv6, "false")},
{});
CopyConstraintsIntoRtcConfiguration(&constraints_disable_ipv6,
&configuration);
EXPECT_TRUE(configuration.disable_ipv6);
const MediaConstraints constraints_screencast(
{MediaConstraints::Constraint(MediaConstraints::kScreencastMinBitrate,
"27")},