Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1129)

Unified Diff: webrtc/modules/audio_coding/neteq/neteq_unittest.cc

Issue 2005873002: Let PacketSource::NextPacket() return an std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_coding/neteq/neteq_unittest.cc
diff --git a/webrtc/modules/audio_coding/neteq/neteq_unittest.cc b/webrtc/modules/audio_coding/neteq/neteq_unittest.cc
index 4a6f505fc639c4edb0b515f712a471ec0c9237cc..24a8774ae4797b40ec1e388be5fac5e1d4069877 100644
--- a/webrtc/modules/audio_coding/neteq/neteq_unittest.cc
+++ b/webrtc/modules/audio_coding/neteq/neteq_unittest.cc
@@ -349,7 +349,7 @@ void NetEqDecodingTest::Process() {
(output_sample_rate_ / 1000))));
}
// Get next packet.
- packet_.reset(rtp_source_->NextPacket());
+ packet_ = rtp_source_->NextPacket();
}
// Get audio from NetEq.
@@ -387,7 +387,7 @@ void NetEqDecodingTest::DecodeAndCompare(
gen_ref ? webrtc::test::OutputPath() + "neteq_rtcp_stats.dat" : "";
ResultSink rtcp_stats(rtcp_out_file);
- packet_.reset(rtp_source_->NextPacket());
+ packet_ = rtp_source_->NextPacket();
int i = 0;
while (packet_) {
std::ostringstream ss;

Powered by Google App Engine
This is Rietveld 408576698