Index: webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc |
index 3cff2a4d3f9d52a5341faeae1bd12f383420338f..12630f79a9af7e7746ab030664e8b62cd7db0c31 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl_unittest.cc |
@@ -218,9 +218,9 @@ class RtpRtcpImplTest : public ::testing::Test { |
nack.From(sender ? kReceiverSsrc : kSenderSsrc); |
nack.To(sender ? kSenderSsrc : kReceiverSsrc); |
nack.WithList(list, kListLength); |
- rtcp::RawPacket packet = nack.Build(); |
- EXPECT_EQ(0, module->impl_->IncomingRtcpPacket(packet.buffer(), |
- packet.buffer_length())); |
+ rtc::scoped_ptr<rtcp::RawPacket> packet(nack.Build()); |
+ EXPECT_EQ(0, module->impl_->IncomingRtcpPacket(packet->Buffer(), |
+ packet->Length())); |
} |
}; |