webrtc/call/adaptation/test
Henrik Boström 29444c6524 [Adaptation] Multi-processor support for injected Resources.
Because a single Resource only has a single ResourceListener, injected
Resources only gets wired up to the stream's ResourceAdaptationProcessor
that was last to call SetResourceListener. This could potentially lead
to the relevant stream not adapting based on the injected resource
because it got wired up to the wrong stream's processor.

This CL fixes this issue by introducing BroadcastResourceListener. By
listening to 1 resource (the injected one), it can spawn N "adapter"
resources that mirror's the injected resource's usage signal, allowing
all ResourceAdaptationProcessor's to react to the signal.

This is wired up in Call, and tests are updated to verify the signal
gets through.

Bug: chromium:1101263, webrtc:11720
Change-Id: I8a37284cb9a68f08ca1bdb1ee050b7144c451297
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178386
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Reviewed-by: Evan Shrubsole <eshr@google.com>
Commit-Queue: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31612}
2020-07-02 10:28:11 +00:00
..
fake_adaptation_constraint.cc [Adaptation] Move IsAdaptationUpAllowed/OnAdaptationApplied out of API. 2020-06-02 13:02:36 +00:00
fake_adaptation_constraint.h [Adaptation] Move IsAdaptationUpAllowed/OnAdaptationApplied out of API. 2020-06-02 13:02:36 +00:00
fake_adaptation_listener.cc [Adaptation] Move IsAdaptationUpAllowed/OnAdaptationApplied out of API. 2020-06-02 13:02:36 +00:00
fake_adaptation_listener.h [Adaptation] Move IsAdaptationUpAllowed/OnAdaptationApplied out of API. 2020-06-02 13:02:36 +00:00
fake_frame_rate_provider.cc [Adaptation] Misc tests for processor, input provider and restrictions. 2020-04-29 15:59:14 +00:00
fake_frame_rate_provider.h In call/ replace mock macros with unified MOCK_METHOD macro 2020-05-15 13:36:00 +00:00
fake_resource.cc [Adaptation] Remove Resource::UsageState() and ClearUsageState(). 2020-06-03 08:27:49 +00:00
fake_resource.h [Adaptation] Move Resource to api/ folder. 2020-06-03 08:51:29 +00:00
mock_resource_listener.h [Adaptation] Multi-processor support for injected Resources. 2020-07-02 10:28:11 +00:00