|
|
RTCPeerConnection.getStats overloads test CL
Launch with --enable-blink-features=RTCPeerConnectionNewGetStats
Test .html:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
</head>
<body>
<script>
var pc = new webkitRTCPeerConnection(null);
var selector = null;
getUserMedia({audio:true, video:true}, gotStream);
var handler = {
handleEvent:function(x) {
console.log('handler.handleEvent(' + x + ')');
}
};
function func(x) {
console.log('func(' + x + ')');
}
function getUserMedia(dictionary, callback) {
try {
navigator.webkitGetUserMedia(dictionary, callback, error);
} catch (e) {
error(e);
}
}
function error(e) {
console.log('Error: ' + e);
}
function gotStream(s) {
console.log('Got a stream.');
stream = s;
pc.addStream(stream);
selector = pc.getLocalStreams()[0].getVideoTracks()[0];
console.log('getStats(handler)');
pc.getStats(handler);
console.log('getStats(func)');
pc.getStats(func);
console.log('getStats(selector)');
pc.getStats(selector);
}
</script>
</body>
</html>
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+109 lines, -179 lines) |
Patch |
 |
A |
third_party/WebKit/LayoutTests/fast/peerconnection/RTCPeerConnection-getStats-promise.html
|
View
|
|
1 chunk |
+57 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/core/frame/UseCounter.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/modules.gypi
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
A + |
third_party/WebKit/Source/modules/peerconnection/RTCLegacyStatsReport.h
|
View
|
|
4 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
A + |
third_party/WebKit/Source/modules/peerconnection/RTCLegacyStatsReport.cpp
|
View
|
|
2 chunks |
+6 lines, -6 lines |
0 comments
|
Download
|
 |
A + |
third_party/WebKit/Source/modules/peerconnection/RTCLegacyStatsReport.idl
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp
|
View
|
|
3 chunks |
+19 lines, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.idl
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.h
|
View
|
|
1 chunk |
+0 lines, -62 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.cpp
|
View
|
|
1 chunk |
+0 lines, -56 lines |
0 comments
|
Download
|
 |
D |
third_party/WebKit/Source/modules/peerconnection/RTCStatsReport.idl
|
View
|
|
1 chunk |
+0 lines, -33 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.cpp
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/modules/peerconnection/RTCStatsResponse.idl
|
View
|
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
tools/metrics/histograms/histograms.xml
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 1 (1 generated)
|