Remove unused test methods

PiperOrigin-RevId: 294883290
This commit is contained in:
kimvde 2020-02-13 12:11:09 +00:00 committed by Oliver Woodman
parent 714fa477d0
commit 5949cbecc3
2 changed files with 0 additions and 28 deletions

View file

@ -114,25 +114,6 @@ public final class FakeExtractorOutput implements ExtractorOutput, Dumper.Dumpab
}
}
public void assertEquals(FakeExtractorOutput expected) {
assertThat(numberOfTracks).isEqualTo(expected.numberOfTracks);
assertThat(tracksEnded).isEqualTo(expected.tracksEnded);
if (expected.seekMap == null) {
assertThat(seekMap).isNull();
} else {
// TODO: Bulk up this check if possible.
SeekMap expectedSeekMap = Assertions.checkNotNull(expected.seekMap);
SeekMap seekMap = Assertions.checkNotNull(this.seekMap);
assertThat(seekMap.getClass()).isEqualTo(expectedSeekMap.getClass());
assertThat(seekMap.isSeekable()).isEqualTo(expectedSeekMap.isSeekable());
assertThat(seekMap.getSeekPoints(0)).isEqualTo(expectedSeekMap.getSeekPoints(0));
}
for (int i = 0; i < numberOfTracks; i++) {
assertThat(trackOutputs.keyAt(i)).isEqualTo(expected.trackOutputs.keyAt(i));
trackOutputs.valueAt(i).assertEquals(expected.trackOutputs.valueAt(i));
}
}
/**
* Asserts that dump of this {@link FakeExtractorOutput} is equal to expected dump which is read
* from {@code dumpFile}.

View file

@ -153,15 +153,6 @@ public final class FakeTrackOutput implements TrackOutput, Dumper.Dumpable {
return Collections.unmodifiableList(sampleTimesUs);
}
public void assertEquals(FakeTrackOutput expected) {
assertThat(lastFormat).isEqualTo(expected.lastFormat);
assertThat(sampleData).isEqualTo(expected.sampleData);
assertThat(dumpables).hasSize(expected.dumpables.size());
for (int i = 0; i < dumpables.size(); i++) {
assertThat(dumpables.get(i)).isEqualTo(expected.dumpables.get(i));
}
}
@Override
public void dump(Dumper dumper) {
dumper.add("total output bytes", sampleData.length);