summaryrefslogtreecommitdiff
path: root/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpChunkTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpChunkTest.cpp')
-rw-r--r--tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpChunkTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpChunkTest.cpp b/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpChunkTest.cpp
index 5e401129..5b2ece14 100644
--- a/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpChunkTest.cpp
+++ b/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/protocol/rtp/core/RtcpChunkTest.cpp
@@ -54,7 +54,7 @@ TEST_F(RtcpChunkTest, decodeChunkItem)
chunkItem->ucLength = 18;
RtpDt_UChar* pcBuffer = new RtpDt_UChar[chunkItem->ucLength];
- EXPECT_NE(pcBuffer, nullptr);
+ ASSERT_TRUE(pcBuffer != nullptr);
memcpy(pcBuffer, "sleepy@example.com", chunkItem->ucLength);
@@ -110,7 +110,7 @@ TEST_F(RtcpChunkTest, decodeMultichunkItem)
chunkItem->ucLength = 18;
RtpDt_UChar* pcBuffer = new RtpDt_UChar[chunkItem->ucLength];
- EXPECT_NE(pcBuffer, nullptr);
+ ASSERT_TRUE(pcBuffer != nullptr);
memcpy(pcBuffer, "sleepy@example.com", chunkItem->ucLength);
@@ -127,7 +127,7 @@ TEST_F(RtcpChunkTest, decodeMultichunkItem)
chunkItemSec->ucType = 1;
chunkItemSec->ucLength = 18;
- EXPECT_NE(pcBuffer, nullptr);
+ ASSERT_TRUE(pcBuffer != nullptr);
memcpy(pcBuffer, "google@example.com", chunkItemSec->ucLength);
@@ -175,7 +175,7 @@ TEST_F(RtcpChunkTest, decodeSdesChunkWithInvalidType)
chunkItem->ucLength = 18;
RtpDt_UChar* pcBuffer = new RtpDt_UChar[chunkItem->ucLength];
- EXPECT_NE(pcBuffer, nullptr);
+ ASSERT_TRUE(pcBuffer != nullptr);
memcpy(pcBuffer, "sleepy@example.com", chunkItem->ucLength);
@@ -192,7 +192,7 @@ TEST_F(RtcpChunkTest, decodeSdesChunkWithInvalidType)
chunkItemSec->ucType = 2;
chunkItemSec->ucLength = 18;
- EXPECT_NE(pcBuffer, nullptr);
+ ASSERT_TRUE(pcBuffer != nullptr);
memcpy(pcBuffer, "google@example.com", chunkItemSec->ucLength);
@@ -242,7 +242,7 @@ TEST_F(RtcpChunkTest, decodeSdesChunkWithInvalidLength)
chunkItem->ucLength = 18;
RtpDt_UChar* pcBuffer = new RtpDt_UChar[chunkItem->ucLength];
- EXPECT_NE(pcBuffer, nullptr);
+ ASSERT_TRUE(pcBuffer != nullptr);
memcpy(pcBuffer, "sleepy@example.com", chunkItem->ucLength);