Test CreatePeerConnectionFactory() with a forwarding mock AudioDecoderFactory
BUG=webrtc:5805
Review-Url: https://codereview.webrtc.org/2810703002
Cr-Commit-Position: refs/heads/master@{#17761}
diff --git a/webrtc/pc/rtcstats_integrationtest.cc b/webrtc/pc/rtcstats_integrationtest.cc
index 922e07c..a2bfb3e 100644
--- a/webrtc/pc/rtcstats_integrationtest.cc
+++ b/webrtc/pc/rtcstats_integrationtest.cc
@@ -11,6 +11,7 @@
#include <set>
#include <vector>
+#include "webrtc/api/audio_codecs/builtin_audio_decoder_factory.h"
#include "webrtc/api/datachannelinterface.h"
#include "webrtc/api/peerconnectioninterface.h"
#include "webrtc/api/stats/rtcstats_objects.h"
@@ -52,8 +53,12 @@
PeerConnectionInterface::IceServer ice_server;
ice_server.uri = "stun:1.1.1.1:3478";
config.servers.push_back(ice_server);
- EXPECT_TRUE(caller_->CreatePc(nullptr, config));
- EXPECT_TRUE(callee_->CreatePc(nullptr, config));
+ EXPECT_TRUE(caller_->CreatePc(nullptr, config,
+ CreateBuiltinAudioEncoderFactory(),
+ CreateBuiltinAudioDecoderFactory()));
+ EXPECT_TRUE(callee_->CreatePc(nullptr, config,
+ CreateBuiltinAudioEncoderFactory(),
+ CreateBuiltinAudioDecoderFactory()));
PeerConnectionTestWrapper::Connect(caller_.get(), callee_.get());
// Get user media for audio and video