ConstantBitrateSeekMap implements SeekMap { @Override public boolean isSeekable() { return dataSize != C.LENGTH_UNSET; } ConstantBitrateSeekMap(
      long inputLength, long firstFrameBytePosition, int bitrate, int frameSize); @Override boolean isSeekable(); @Override SeekPoints getSeekPoints(long timeUs); @Override long getDurationUs(); long getTimeUsAtPosition(long position);  }
@Test public void testIsSeekable_forKnownInputLength_returnSeekable() { constantBitrateSeekMap = new ConstantBitrateSeekMap( 1000, 0, 8_000, 100); assertThat(constantBitrateSeekMap.isSeekable()).isTrue(); }
@Test public void testIsSeekable_forUnknownInputLength_returnUnseekable() { constantBitrateSeekMap = new ConstantBitrateSeekMap( C.LENGTH_UNSET, 0, 8_000, 100); assertThat(constantBitrateSeekMap.isSeekable()).isFalse(); }