Index: chrome/test/data/webrtc/peerconnection.js |
diff --git a/chrome/test/data/webrtc/peerconnection.js b/chrome/test/data/webrtc/peerconnection.js |
index 8d0f976963353ddf0b254d52c905ad6451325664..d2b5c298a7eca4041961aeb7aa944bb2ed5d1ed0 100644 |
--- a/chrome/test/data/webrtc/peerconnection.js |
+++ b/chrome/test/data/webrtc/peerconnection.js |
@@ -376,7 +376,8 @@ function hasSeenCryptoInSdp() { |
} |
/** |
- * Verifies that |RTCPeerConnection.getStats| returns stats. |
+ * Verifies that the legacy |RTCPeerConnection.getStats| returns stats and |
+ * verifies that each stats member is a string. |
* |
* Returns ok-got-stats on success. |
*/ |
@@ -400,6 +401,20 @@ function verifyStatsGenerated() { |
}); |
} |
+/** |
+ * Invokes the legacy (callback-based) |RTCPeerConnection.getStats| and returns |
+ * to test when done, not doing anything with the results. For testing |
+ * performance. |
+ * |
+ * Returns done on success. |
+ */ |
+function getStatsCallbackAndReturn() { |
+ peerConnection_().getStats( |
+ function(response) { |
+ returnToTest('done'); |
+ }); |
+} |
+ |
// Internals. |
/** @private */ |