Index: webrtc/modules/audio_coding/neteq/payload_splitter_unittest.cc |
diff --git a/webrtc/modules/audio_coding/neteq/payload_splitter_unittest.cc b/webrtc/modules/audio_coding/neteq/payload_splitter_unittest.cc |
index 63772452da6ac69481f9a0d53a5aa560b6cf2b06..128bdccd1e704924ddaf3dd6b6900ec065a8a9fb 100644 |
--- a/webrtc/modules/audio_coding/neteq/payload_splitter_unittest.cc |
+++ b/webrtc/modules/audio_coding/neteq/payload_splitter_unittest.cc |
@@ -311,8 +311,8 @@ TEST(RedPayloadSplitter, CheckRedPayloads) { |
// Use a real DecoderDatabase object here instead of a mock, since it is |
// easier to just register the payload types and let the actual implementation |
// do its job. |
- std::unique_ptr<MockAudioDecoderFactory> factory(new MockAudioDecoderFactory); |
- DecoderDatabase decoder_database(std::move(factory)); |
+ DecoderDatabase decoder_database( |
+ new rtc::RefCountedObject<MockAudioDecoderFactory>); |
decoder_database.RegisterPayload(0, NetEqDecoder::kDecoderCNGnb, "cng-nb"); |
decoder_database.RegisterPayload(1, NetEqDecoder::kDecoderPCMu, "pcmu"); |
decoder_database.RegisterPayload(2, NetEqDecoder::kDecoderAVT, "avt"); |