| commit | 7a191b1218b10dbd8b25008b9ff25d31778c695d | [log] [tgz] |
|---|---|---|
| author | Tommi <tommi@webrtc.org> | Mon Sep 08 10:50:05 2025 |
| committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Sep 08 12:47:23 2025 |
| tree | f115d9d7b8c5f491de66de98928e79dced23bc26 | |
| parent | f2556b4ffe51bc25bfa99771801800ddb71aad8e [diff] |
Refactor WebRTC SDP tests and deprecate old APIs This refactors the SDP unit tests to use `SessionDescriptionInterface` instead of `JsepSessionDescription` directly. The `Initialize()` method is being deprecated, as it's an optional two-step initialization, which can lead to indeterminate state. Previously the tests used this and called Initialize() multiple times on the same object, which made the tests harder to reason about. The tests have been updated to use the `CreateSessionDescription()` factory method instead and other api/ methods. The change also: * Adds a `RTC_DCHECK` to verify that no pre-existing candidates exist before adding new ones. * Deprecates the `JsepSessionDescription(SdpType type)` constructor. * Adds a new `add()` method to `IceCandidateCollection` to move candidates from another collection. * Adds checks to `Clone()` to flag when candidates were not being cloned correctly. * Significantly (but necessarily) refactors the SDP unit tests for better readability and to remove duplicate code. Bug: webrtc:442220720 Change-Id: If78b400b4f53195786f7d61f41998e7ea6912163 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/408100 Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/main@{#45589}
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 here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.