diff options
author | Bodam Nam <bodamnam@google.com> | 2023-04-11 07:52:37 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-04-11 07:52:37 +0000 |
commit | 49d5768c3581c1c68d6886b5bc7db8090692cb20 (patch) | |
tree | 48e6c31c93d86e94b8990075bfaf1f34ea3684fe /tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/MediaQualityThresholdTest.cpp | |
parent | c12432d6b84adbb44f070baf395879e68ebab26e (diff) | |
parent | 92337d569130be377615fb8421adbced82f49811 (diff) | |
download | ImsMedia-49d5768c3581c1c68d6886b5bc7db8090692cb20.tar.gz |
Merge "Implementation of video downgrade opreration API" into udc-dev am: 92337d5691
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/modules/ImsMedia/+/21466709
Change-Id: I45a361753f2bb0b68114ad92da36632cfea91d4c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/MediaQualityThresholdTest.cpp')
-rw-r--r-- | tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/MediaQualityThresholdTest.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/MediaQualityThresholdTest.cpp b/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/MediaQualityThresholdTest.cpp index 1ab1ff01..33494468 100644 --- a/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/MediaQualityThresholdTest.cpp +++ b/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/config/MediaQualityThresholdTest.cpp @@ -26,6 +26,7 @@ const int32_t kRtpPacketLossDurationMillis = 5000; const std::vector<int32_t> kRtpPacketLossRate = {3, 5}; const std::vector<int32_t> kRtpJitterMillis = {100, 200}; const bool kNotifyCurrentStatus = false; +const int32_t kVideoBitrateBps = 100000; class MediaQualityThresholdTest : public ::testing::Test { @@ -42,6 +43,7 @@ protected: threshold.setRtpPacketLossRate(kRtpPacketLossRate); threshold.setRtpJitterMillis(kRtpJitterMillis); threshold.setNotifyCurrentStatus(kNotifyCurrentStatus); + threshold.setVideoBitrateBps(kVideoBitrateBps); } virtual void TearDown() override {} @@ -56,6 +58,7 @@ TEST_F(MediaQualityThresholdTest, TestGetterSetter) EXPECT_EQ(threshold.getRtpPacketLossRate(), kRtpPacketLossRate); EXPECT_EQ(threshold.getRtpJitterMillis(), kRtpJitterMillis); EXPECT_EQ(threshold.getNotifyCurrentStatus(), kNotifyCurrentStatus); + EXPECT_EQ(threshold.getVideoBitrateBps(), kVideoBitrateBps); } TEST_F(MediaQualityThresholdTest, TestParcel) @@ -85,6 +88,7 @@ TEST_F(MediaQualityThresholdTest, TestEqual) threshold2.setRtpPacketLossRate(kRtpPacketLossRate); threshold2.setRtpJitterMillis(kRtpJitterMillis); threshold2.setNotifyCurrentStatus(kNotifyCurrentStatus); + threshold2.setVideoBitrateBps(kVideoBitrateBps); EXPECT_EQ(threshold, threshold2); } @@ -98,6 +102,7 @@ TEST_F(MediaQualityThresholdTest, TestNotEqual) threshold2.setRtpPacketLossRate(kRtpPacketLossRate); threshold2.setRtpJitterMillis(kRtpJitterMillis); threshold2.setNotifyCurrentStatus(kNotifyCurrentStatus); + threshold2.setVideoBitrateBps(kVideoBitrateBps); MediaQualityThreshold threshold3; threshold3.setRtpInactivityTimerMillis(kRtpInactivityTimerMillis); @@ -107,6 +112,7 @@ TEST_F(MediaQualityThresholdTest, TestNotEqual) threshold3.setRtpPacketLossRate(std::vector<int32_t>{5, 10}); threshold3.setRtpJitterMillis(kRtpJitterMillis); threshold3.setNotifyCurrentStatus(kNotifyCurrentStatus); + threshold3.setVideoBitrateBps(kVideoBitrateBps); EXPECT_NE(threshold, threshold2); EXPECT_NE(threshold, threshold3); |