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

Unified Diff: content/renderer/media/mock_peer_connection_impl.cc

Issue 803853002: Remove dependency on the default constructor of StatsReport. This is in preparation of a WebRTC rol… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/mock_peer_connection_impl.cc
diff --git a/content/renderer/media/mock_peer_connection_impl.cc b/content/renderer/media/mock_peer_connection_impl.cc
index 6df5a327a215535e0569aec43763957c08235843..f35b2ed9c3ced103f90073f54dc1afcd74a8b22b 100644
--- a/content/renderer/media/mock_peer_connection_impl.cc
+++ b/content/renderer/media/mock_peer_connection_impl.cc
@@ -240,9 +240,8 @@ bool MockPeerConnectionImpl::GetStats(
return false;
DCHECK_EQ(kStatsOutputLevelStandard, level);
- webrtc::StatsReport report1, report2;
- report1.id = "1234";
- report1.type = "ssrc";
+ webrtc::StatsReport report1("1234"), report2("nontrack");
+ report1.type = webrtc::StatsReport::kStatsReportTypeSsrc;
report1.timestamp = 42;
report1.values.push_back(
webrtc::StatsReport::Value(
@@ -255,8 +254,7 @@ bool MockPeerConnectionImpl::GetStats(
// If selector is given, we pass back one report.
// If selector is not given, we pass back two.
if (!track) {
- report2.id = "nontrack";
- report2.type = "generic";
+ report2.type = webrtc::StatsReport::kStatsReportTypeSession;
report2.timestamp = 44;
report2.values.push_back(
webrtc::StatsReport::Value(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698