OLD | NEW |
1 /** | 1 /** |
2 * Copyright 2016 The Chromium Authors. All rights reserved. | 2 * Copyright 2016 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 /** | 7 /** |
8 * Maps "RTCStats.type" values to descriptions of whitelisted (allowed to be | 8 * Maps "RTCStats.type" values to descriptions of whitelisted (allowed to be |
9 * exposed to the web) RTCStats-derived dictionaries described below. | 9 * exposed to the web) RTCStats-derived dictionaries described below. |
10 * @private | 10 * @private |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 transportId: 'string', | 189 transportId: 'string', |
190 localCandidateId: 'string', | 190 localCandidateId: 'string', |
191 remoteCandidateId: 'string', | 191 remoteCandidateId: 'string', |
192 state: 'string', | 192 state: 'string', |
193 priority: 'number', | 193 priority: 'number', |
194 nominated: 'boolean', | 194 nominated: 'boolean', |
195 writable: 'boolean', | 195 writable: 'boolean', |
196 readable: 'boolean', | 196 readable: 'boolean', |
197 bytesSent: 'number', | 197 bytesSent: 'number', |
198 bytesReceived: 'number', | 198 bytesReceived: 'number', |
| 199 totalRoundTripTime: 'number', |
| 200 currentRoundTripTime: 'number', |
| 201 // TODO(hbos): *Rtt have been renamed to *RoundTripTime, both listed at the |
| 202 // moment. As soon as https://codereview.webrtc.org/2576383002/ has rolled in, |
| 203 // remove the *Rtt ones. crbug.com/627816 |
199 totalRtt: 'number', | 204 totalRtt: 'number', |
200 currentRtt: 'number', | 205 currentRtt: 'number', |
201 availableOutgoingBitrate: 'number', | 206 availableOutgoingBitrate: 'number', |
202 availableIncomingBitrate: 'number', | 207 availableIncomingBitrate: 'number', |
203 requestsReceived: 'number', | 208 requestsReceived: 'number', |
204 requestsSent: 'number', | 209 requestsSent: 'number', |
205 responsesReceived: 'number', | 210 responsesReceived: 'number', |
206 responsesSent: 'number', | 211 responsesSent: 'number', |
207 retransmissionsReceived: 'number', | 212 retransmissionsReceived: 'number', |
208 retransmissionsSent: 'number', | 213 retransmissionsSent: 'number', |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 if (typeof(element) !== elementType) { | 356 if (typeof(element) !== elementType) { |
352 throw failTest('stats.' + propertyName + ' should have a different ' + | 357 throw failTest('stats.' + propertyName + ' should have a different ' + |
353 'type according to the whitelist (an element of the array has ' + | 358 'type according to the whitelist (an element of the array has ' + |
354 'the incorrect type): ' + JSON.stringify(stats[propertyName]) + | 359 'the incorrect type): ' + JSON.stringify(stats[propertyName]) + |
355 ' vs ' + whitelistedStats[propertyName]); | 360 ' vs ' + whitelistedStats[propertyName]); |
356 } | 361 } |
357 } | 362 } |
358 } | 363 } |
359 } | 364 } |
360 } | 365 } |
OLD | NEW |