Evan Shrubsole 1d2f30b8b9 Add utility WaitUntil for testing for an eventual condition
This replaces the WaitUntilCondition function that was used in the
peer_connection_encodings_integrationtest previously. Along with that it
adds tests and improved error message printing.

As a drive-by, matchers were added for RTCError as these are the return
type of this utility function.

Bug: webrtc:381524905
Change-Id: If7ff18692396d3996b5b289f2d2c92520226003e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/369980
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Evan Shrubsole <eshr@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43494}
2024-12-04 13:51:30 +00:00

63 lines
1.6 KiB
Python

specific_include_rules = {
".*": [
"+modules/video_coding",
],
".*": [
"+video"
],
".*": [
"+rtc_base/ref_counted_object.h",
],
"dummy_peer_connection\.h": [
"+rtc_base/ref_counted_object.h",
],
"neteq_factory_with_codecs\.h": [
"+system_wrappers/include/clock.h",
],
"network_emulation_manager\.h": [
"+rtc_base/thread.h",
"+rtc_base/network.h",
"+rtc_base/network_constants.h",
"+rtc_base/ip_address.h",
"+rtc_base/socket_address.h",
],
"peer_network_dependencies\.h": [
"+rtc_base/network.h",
"+rtc_base/thread.h",
],
"peerconnection_quality_test_fixture\.h": [
"+logging/rtc_event_log/rtc_event_log_factory_interface.h",
"+rtc_base/network.h",
"+rtc_base/rtc_certificate_generator.h",
"+rtc_base/ssl_certificate.h",
"+rtc_base/thread.h",
"+media/base/media_constants.h",
"+modules/audio_processing/include/audio_processing.h",
],
"time_controller\.h": [
"+rtc_base/synchronization/yield_policy.h",
"+system_wrappers/include/clock.h",
"+rtc_base/socket_server.h",
],
"create_frame_generator\.h": [
"+system_wrappers/include/clock.h",
],
"mock_async_dns_resolver\.h": [
"+rtc_base/socket_address.h",
],
"mock_packet_socket_factory\.h": [
"+rtc_base/async_packet_socket.h",
"+rtc_base/socket_address.h",
],
"mock_peer_connection_factory_interface\.h": [
"+p2p/base/port_allocator.h",
"+rtc_base/rtc_certificate_generator.h",
],
"videocodec_test_fixture\.h": [
"+modules/video_coding/codecs/h264/include/h264_globals.h",
],
"rtc_error_matchers\.h": [
"+test/gmock.h",
],
}