Index: webrtc/modules/rtp_rtcp/source/rtp_packet_unittest.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_packet_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtp_packet_unittest.cc |
index c9342221df94034294012598250bdf7725023e5f..63a171dfb3c8d9d4878feea0d2498fcb9d4279e4 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_packet_unittest.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_packet_unittest.cc |
@@ -174,12 +174,12 @@ TEST(RtpPacketTest, ParseMinimum) { |
} |
TEST(RtpPacketTest, ParseBuffer) { |
- rtc::Buffer unparsed(kMinimumPacket); |
+ rtc::CopyOnWriteBuffer unparsed(kMinimumPacket); |
const uint8_t* raw = unparsed.data(); |
RtpPacketReceived packet; |
EXPECT_TRUE(packet.Parse(std::move(unparsed))); |
- EXPECT_EQ(raw, packet.data()); // Expect packet took over the buffer. |
+ EXPECT_EQ(raw, packet.data()); // Expect packet take the buffer without copy. |
EXPECT_EQ(kSeqNum, packet.SequenceNumber()); |
EXPECT_EQ(kTimestamp, packet.Timestamp()); |
EXPECT_EQ(kSsrc, packet.Ssrc()); |