diff --git a/api/test/peerconnection_quality_test_fixture.cc b/api/test/peerconnection_quality_test_fixture.cc index 59526f9f52..3158109e89 100644 --- a/api/test/peerconnection_quality_test_fixture.cc +++ b/api/test/peerconnection_quality_test_fixture.cc @@ -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::VideoSubscription::GetMaxResolution( rtc::ArrayView video_configs) { diff --git a/api/test/peerconnection_quality_test_fixture.h b/api/test/peerconnection_quality_test_fixture.h index fee911a8b8..29fff7da03 100644 --- a/api/test/peerconnection_quality_test_fixture.h +++ b/api/test/peerconnection_quality_test_fixture.h @@ -377,6 +377,11 @@ class PeerConnectionE2EQualityTestFixture { static absl::optional GetMaxResolution( rtc::ArrayView 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.