Test: Add debug info to debug test failure

I wasn't able to reproduce the error in the bug by running videoTranscoding_withTextureInput_completesWithCorrectFrameCountAndDuration
100 times, but I figured this added debug info may help the next time the
issue is seen.

PiperOrigin-RevId: 558118443
This commit is contained in:
huangdarwin 2023-08-18 13:27:37 +01:00 committed by Julia Bibik
parent 107e41b387
commit 030d8148ba

View file

@ -86,7 +86,9 @@ public final class ExportResult {
*/
@CanIgnoreReturnValue
public Builder setFileSizeBytes(long fileSizeBytes) {
checkArgument(fileSizeBytes > 0 || fileSizeBytes == C.LENGTH_UNSET);
checkArgument(
fileSizeBytes > 0 || fileSizeBytes == C.LENGTH_UNSET,
"Invalid file size = " + fileSizeBytes);
this.fileSizeBytes = fileSizeBytes;
return this;
}