From: Haesu Gwon Date: Fri, 31 Mar 2023 07:23:30 +0000 (+0900) Subject: [WebRTC][TCSACR-535] Change WebRTC Stats enum values and deprecate one X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f69f3a171388e00e59b5bd29ba30d583935de61;p=test%2Ftct%2Fcsharp%2Fapi.git [WebRTC][TCSACR-535] Change WebRTC Stats enum values and deprecate one Change-Id: I17e139001956c9bbd05be4712c17697265cacdff --- diff --git a/tct-suite-vs/Tizen.WebRTC.Tests/testcase/TSWebRTC.statistics.cs b/tct-suite-vs/Tizen.WebRTC.Tests/testcase/TSWebRTC.statistics.cs index dd304cf..7b927e4 100755 --- a/tct-suite-vs/Tizen.WebRTC.Tests/testcase/TSWebRTC.statistics.cs +++ b/tct-suite-vs/Tizen.WebRTC.Tests/testcase/TSWebRTC.statistics.cs @@ -26,6 +26,16 @@ namespace Tizen.Multimedia.Remoting.Tests { { private WebRTC _webRtc; + // WebRTCStatisticsCategory.All was deprecated in API11. + private const WebRTCStatisticsCategory _webRTCStatisticsCategoryAll = WebRTCStatisticsCategory.Codec | + WebRTCStatisticsCategory.InboundRtp | + WebRTCStatisticsCategory.OutboundRtp | + WebRTCStatisticsCategory.RemoteInboundRtp | + WebRTCStatisticsCategory.RemoteOutboundRtp | + WebRTCStatisticsCategory.CandidatePair | + WebRTCStatisticsCategory.LocalCandidate | + WebRTCStatisticsCategory.RemoteCandidate; + private readonly string _turnServer = "turn://turnserver.address"; [SetUp] @@ -124,7 +134,7 @@ namespace Tizen.Multimedia.Remoting.Tests { var stats = offerClient.GetStatistics(category); foreach (var stat in stats) { - if (category == WebRTCStatisticsCategory.All) + if (category == _webRTCStatisticsCategoryAll) { Assert.That(Enum.IsDefined(typeof(WebRTCStatisticsCategory), stat.Category), "Should be one of WebRTCStatisticsCategory"); @@ -178,7 +188,7 @@ namespace Tizen.Multimedia.Remoting.Tests { await ConnectPeerAsync(offerClient, answerClient); - var stats = offerClient.GetStatistics(WebRTCStatisticsCategory.Codec); + var stats = offerClient.GetStatistics(_webRTCStatisticsCategoryAll); foreach (var stat in stats) { Assert.That(Enum.IsDefined(typeof(WebRTCStatisticsProperty), stat.Property),