Ensure both corruption detection tests are formulated the same way
DoesNotPopulateFrameInstrumentationDataWhenSetNotTo should be formulated equivalently to PopulatesFrameInstrumentationDataWhenSetTo. Bug: webrtc:358039777 Change-Id: I22d487d0a88cd3e1badb3bb8bf304a0322f9d53e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/363862 Commit-Queue: Fanny Linderborg <linderborg@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43090}
This commit is contained in:
parent
a61a25a0b1
commit
0a3a6908e8
@ -1713,13 +1713,12 @@ TEST_F(VideoStreamEncoderTest,
|
||||
// We need a QP for the encoded frame.
|
||||
fake_encoder_.SetEncodedImageData(EncodedImageBuffer::Create(
|
||||
kCodedFrameVp8Qp25, sizeof(kCodedFrameVp8Qp25)));
|
||||
rtc::Event frame_destroyed_event;
|
||||
video_source_.IncomingCapturedFrame(CreateFrame(1, &frame_destroyed_event));
|
||||
video_source_.IncomingCapturedFrame(
|
||||
CreateFrame(1, codec_width_, codec_height_));
|
||||
WaitForEncodedFrame(1);
|
||||
|
||||
EXPECT_FALSE(sink_.GetLastFrameInstrumentationData().has_value());
|
||||
video_stream_encoder_->Stop();
|
||||
EXPECT_TRUE(frame_destroyed_event.Wait(kDefaultTimeout));
|
||||
}
|
||||
|
||||
TEST_F(VideoStreamEncoderTest, DropsFramesBeforeFirstOnBitrateUpdated) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user