commit | ed447aedb855f7e6141fe627c16c27b800348b0c | [log] [tgz] |
---|---|---|
author | Steve Anton <steveanton@webrtc.org> | Thu Aug 17 21:31:51 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Aug 17 21:58:09 2017 |
tree | 3bcc4e1067b4a58ce1ddb70e0fa3da22071f86e3 | |
parent | 1c378ed83b5b32a00368bbfc3ce2ee7687691abe [diff] |
Refactor TurnPort tests. This commit makes the following changes: 1. Splits TestReconstructedServerUrl into 3 tests that individually check the reconstructed URL for UDP IPv4, UDP IPv6, and TCP. 2. Factors out common code between protocols for release allocation and reconstructed URL tests. 3. Provides functions for getting the expected RTT of various operations based on the protocol used. TurnPort tests use a fake clock in part to check tight bounds on the number of network round trips it takes to complete operations like getting TURN candidates and trying alternate servers. These RTTs are highly dependent on the characteristics of the transport-layer protocol used, so these details have been moved to dedicated functions with comments explaining how the numbers are calculated. Bug: webrtc:7584 Change-Id: I3b065e25446cb5ecd955f359625a35fb0ad46777 Reviewed-on: https://chromium-review.googlesource.com/611500 Commit-Queue: Steve Anton <steveanton@webrtc.org> Reviewed-by: Zhi Huang <zhihuang@webrtc.org> Reviewed-by: Peter Thatcher <pthatcher@webrtc.org> Cr-Commit-Position: refs/heads/master@{#19395}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.