diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:37 +0000 |
commit | a90a5cba08fdf6c0ceb95101c275108a152a3aed (patch) | |
tree | 532507288f3defd7f4dcf1af49698bcb76034855 /third_party/libwebrtc/pc/used_ids_unittest.cc | |
parent | Adding debian version 126.0.1-1. (diff) | |
download | firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.tar.xz firefox-a90a5cba08fdf6c0ceb95101c275108a152a3aed.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/libwebrtc/pc/used_ids_unittest.cc')
-rw-r--r-- | third_party/libwebrtc/pc/used_ids_unittest.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/third_party/libwebrtc/pc/used_ids_unittest.cc b/third_party/libwebrtc/pc/used_ids_unittest.cc index 6362f2773a..df3790b52c 100644 --- a/third_party/libwebrtc/pc/used_ids_unittest.cc +++ b/third_party/libwebrtc/pc/used_ids_unittest.cc @@ -119,7 +119,8 @@ TEST_F(UsedRtpHeaderExtensionIdsTest, TwoByteIdsAllowed) { UsedRtpHeaderExtensionIds::IdDomain::kTwoByteAllowed); // Fill all one byte IDs. - for (int i = 1; i < 15; ++i) { + for (int i = 1; i <= webrtc::RtpExtension::kOneByteHeaderExtensionMaxId; + ++i) { webrtc::RtpExtension id("", i); used_ids.FindAndSetIdUsed(&id); } @@ -131,11 +132,11 @@ TEST_F(UsedRtpHeaderExtensionIdsTest, TwoByteIdsAllowed) { // Expect to reassign to two-byte header extension IDs. used_ids.FindAndSetIdUsed(&id1_collision); - EXPECT_EQ(id1_collision.id, 15); + EXPECT_EQ(id1_collision.id, 16); used_ids.FindAndSetIdUsed(&id2_collision); - EXPECT_EQ(id2_collision.id, 16); + EXPECT_EQ(id2_collision.id, 17); used_ids.FindAndSetIdUsed(&id3_collision); - EXPECT_EQ(id3_collision.id, 17); + EXPECT_EQ(id3_collision.id, 18); } // Death tests. |