[PCLF] Add equals method for VideoSubscription
Bug: b/231394729 Change-Id: I0957d96640e962d331f05c9541c36e8420e9f5aa Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/264557 Commit-Queue: Artem Titov <titovartem@webrtc.org> Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37075}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
4eab9f47a5
commit
fd8ed05cee
@ -41,6 +41,12 @@ bool PeerConnectionE2EQualityTestFixture::VideoResolution::operator==(
|
||||
fps_ == other.fps_ && spec_ == other.spec_;
|
||||
}
|
||||
|
||||
bool PeerConnectionE2EQualityTestFixture::VideoSubscription::operator==(
|
||||
const VideoSubscription& other) const {
|
||||
return default_resolution_ == other.default_resolution_ &&
|
||||
peers_resolution_ == other.peers_resolution_;
|
||||
}
|
||||
|
||||
absl::optional<PeerConnectionE2EQualityTestFixture::VideoResolution>
|
||||
PeerConnectionE2EQualityTestFixture::VideoSubscription::GetMaxResolution(
|
||||
rtc::ArrayView<const VideoConfig> video_configs) {
|
||||
|
@ -377,6 +377,11 @@ class PeerConnectionE2EQualityTestFixture {
|
||||
static absl::optional<VideoResolution> GetMaxResolution(
|
||||
rtc::ArrayView<const VideoResolution> resolutions);
|
||||
|
||||
bool operator==(const VideoSubscription& other) const;
|
||||
bool operator!=(const VideoSubscription& other) const {
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
// Subscribes receiver to all streams sent by the specified peer with
|
||||
// specified resolution. It will override any resolution that was used in
|
||||
// `SubscribeToAll` independently from methods call order.
|
||||
|
Reference in New Issue
Block a user