4c07605f8d55a8ea96937e3f775226200692e923

This code was previously only exercised by video_stream_adapter_unittest.cc and other tests, acting more like integration tests than unit tests. Now that the VideoStreamAdapter is in a good state, more extensive test coverage is added. Testing includes: - Default restrictions. - Adapting up or down in "maintain-framerate", "maintain-resolution" and "balanced", including... - expecting how frame rate and/or resolution is affected, - reaching kLimitReached, - and reaching unrestricted. - That "disabled" does not adapt. - When adaptation is not possible, including... - kInsufficientInput - kAwaitingPreviousAdaptation - kIsBitrateConstrained - PeekNextRestrictions() - "balanced" + "screenshare" = "maintain-resolution" - Change degradation preference to/from "balanced" clears restrictions. - That using invalidated adaptations triggers DCHECKs. Bug: webrtc:11393 Change-Id: I28e2cf227bc1fd8871ee0d18d9570d4063449160 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/170625 Reviewed-by: Ilya Nikolaevskiy <ilnik@webrtc.org> Reviewed-by: Evan Shrubsole <eshr@google.com> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30816}
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.
Development
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.
More info
- Official web site: http://www.webrtc.org
- Master source code repo: https://webrtc.googlesource.com/src
- Samples and reference apps: https://github.com/webrtc
- Mailing list: http://groups.google.com/group/discuss-webrtc
- Continuous build: http://build.chromium.org/p/client.webrtc
- Coding style guide
- Code of conduct
Description
Languages
C++
88.6%
C
3.3%
Java
3%
Objective-C++
1.9%
Python
1.9%
Other
1%