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

Unified Diff: webrtc/pc/rtcstats_integrationtest.cc

Issue 2810703002: Test CreatePeerConnectionFactory() with a forwarding mock AudioDecoderFactory (Closed)
Patch Set: std::move explicitly, instead of trusting in RVO Created 3 years, 8 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/pc/rtcstats_integrationtest.cc
diff --git a/webrtc/pc/rtcstats_integrationtest.cc b/webrtc/pc/rtcstats_integrationtest.cc
index 922e07c12a6bdb0a58363920e27fb5da86affeb4..a2bfb3ee6a8bd12b42285d02bcee0279b458e8ff 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 @@ class RTCStatsIntegrationTest : public testing::Test {
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

Powered by Google App Engine
This is Rietveld 408576698