From c87a6be08f75ca505e0a212a050173f88c513ef0 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Thu, 3 Oct 2019 19:35:27 +0000 Subject: [PATCH] Bug 1511578 [wpt PR 14319] - web platform tests for new networkPriority encoding parameter., a=testonly Automatic update from web-platform-tests web platform tests for new networkPriority encoding parameter. Bug: webrtc:5008 Change-Id: I867b0811917f0356f05417f6186124d92c3a0622 Reviewed-on: https://chromium-review.googlesource.com/c/1357515 Commit-Queue: Tim Haloun Reviewed-by: Florent Castelli Cr-Commit-Position: refs/heads/master{#614228} -- wpt-commits: ee3ec2e04b528172565f8c948fb60f680dda0812 wpt-pr: 14319 UltraBlame original commit: 2c47d5f07f37ed0868c87de029d652855f6559b8 --- .../tests/webrtc/RTCRtpParameters-encodings.html | 6 ++++++ .../web-platform/tests/webrtc/RTCRtpParameters-helper.js | 3 +++ 2 files changed, 9 insertions(+) diff --git a/testing/web-platform/tests/webrtc/RTCRtpParameters-encodings.html b/testing/web-platform/tests/webrtc/RTCRtpParameters-encodings.html index b446dde230ef..b8ae4e4c187c 100644 --- a/testing/web-platform/tests/webrtc/RTCRtpParameters-encodings.html +++ b/testing/web-platform/tests/webrtc/RTCRtpParameters-encodings.html @@ -48,6 +48,7 @@ RTCDtxStatus dtx; boolean active; RTCPriorityType priority; + RTCPriorityType networkPriority; unsigned long ptime; unsigned long maxBitrate; double maxFramerate; @@ -146,6 +147,7 @@ dtx: 'enabled', active: false, priority: 'low', + networkPriority: 'low', ptime: 5, maxBitrate: 8, maxFramerate: 25, @@ -161,6 +163,7 @@ assert_equals(encoding.dtx, 'enabled'); assert_equals(encoding.active, false); assert_equals(encoding.priority, 'low'); + assert_equals(encoding.networkPriority, 'low'); assert_equals(encoding.ptime, 5); assert_equals(encoding.maxBitrate, 8); assert_equals(encoding.maxFramerate, 25); @@ -339,6 +342,9 @@ test_modified_encoding('audio', 'priority', 'very-low', 'high', 'setParameters() with modified encoding.priority should succeed'); + test_modified_encoding('audio', 'networkPriority', 'very-low', 'high', + 'setParameters() with modified encoding.networkPriority should succeed'); + test_modified_encoding('audio', 'ptime', 2, 4, 'setParameters() with modified encoding.ptime should succeed'); diff --git a/testing/web-platform/tests/webrtc/RTCRtpParameters-helper.js b/testing/web-platform/tests/webrtc/RTCRtpParameters-helper.js index 015970f24fdc..c21bdf35c10f 100644 --- a/testing/web-platform/tests/webrtc/RTCRtpParameters-helper.js +++ b/testing/web-platform/tests/webrtc/RTCRtpParameters-helper.js @@ -162,6 +162,7 @@ function validateRtpParameters(param) { + function validateEncodingParameters(encoding) { @@ -171,6 +172,8 @@ function validateEncodingParameters(encoding) { assert_optional_boolean_field(encoding, 'active'); assert_optional_enum_field(encoding, 'priority', ['very-low', 'low', 'medium', 'high']); + assert_optional_enum_field(encoding, 'networkPriority', + ['very-low', 'low', 'medium', 'high']); assert_optional_unsigned_int_field(encoding, 'ptime'); assert_optional_unsigned_int_field(encoding, 'maxBitrate');