Commit 0a3fca5a authored by tommi@chromium.org's avatar tommi@chromium.org

Fix an issue with an upcoming webrtc roll where the 'name' property of StatsReport::Value is const.

TBR=grunell
NOTRY=True

Review URL: https://codereview.chromium.org/385613003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282432 0039d316-1c4b-4281-b951-d872f2087c98
parent bf27a7e8
......@@ -274,9 +274,10 @@ bool MockPeerConnectionImpl::GetStats(
report.id = "1234";
report.type = "ssrc";
report.timestamp = 42;
webrtc::StatsReport::Value value;
value.name = "trackname";
value.value = "trackvalue";
webrtc::StatsReport::Value value = {
webrtc::StatsReport::kStatsValueNameFingerprint,
"trackvalue"
};
report.values.push_back(value);
// If selector is given, we pass back one report.
// If selector is not given, we pass back two.
......@@ -286,9 +287,11 @@ bool MockPeerConnectionImpl::GetStats(
report2.type = "generic";
report2.timestamp = 44;
report2.values.push_back(value);
value.name = "somename";
value.value = "somevalue";
report2.values.push_back(value);
webrtc::StatsReport::Value value2 = {
webrtc::StatsReport::kStatsValueNameFingerprintAlgorithm,
"somevalue"
};
report2.values.push_back(value2);
}
// Note that the callback is synchronous, not asynchronous; it will
// happen before the request call completes.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment