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

Unified Diff: chrome/test/data/webrtc/peerconnection_getstats.js

Issue 2544033003: Revert of Preparation CL for WebRTC performance test using promise-based getStats (Closed)
Patch Set: Created 4 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 | « chrome/test/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webrtc/peerconnection_getstats.js
diff --git a/chrome/test/data/webrtc/peerconnection_getstats.js b/chrome/test/data/webrtc/peerconnection_getstats.js
index 4a81978a509ccface3678249f71e9bf5f346975f..9eea0b6e924bbbe8e6e04ef942f3361e6d84df7b 100644
--- a/chrome/test/data/webrtc/peerconnection_getstats.js
+++ b/chrome/test/data/webrtc/peerconnection_getstats.js
@@ -254,29 +254,6 @@
ids.add(stats.id);
}
returnToTest('ok-' + JSON.stringify(Array.from(statsTypes.values())));
- },
- function(e) {
- throw failTest('Promise was rejected: ' + e);
- });
-}
-
-/**
- * Gets the result of the promise-based |RTCPeerConnection.getStats| as a
- * dictionary of RTCStats-dictionaries.
- *
- * Returns "ok-" followed by a JSON-stringified dictionary of dictionaries to
- * the test.
- */
-function getStatsReportDictionary() {
- peerConnection_().getStats()
- .then(function(report) {
- if (report == null || report.size == 0)
- throw new failTest('report is null or empty.');
- let reportDictionary = {};
- for (let stats of report.values()) {
- reportDictionary[stats.id] = stats;
- }
- returnToTest('ok-' + JSON.stringify(reportDictionary));
},
function(e) {
throw failTest('Promise was rejected: ' + e);
« no previous file with comments | « chrome/test/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698