Document why playback tests are in the performance package

PiperOrigin-RevId: 664792272
This commit is contained in:
kimvde 2024-08-19 07:09:35 -07:00 committed by Copybara-Service
parent b95b534f68
commit cd0a7e1143
2 changed files with 6 additions and 0 deletions

View File

@ -62,6 +62,9 @@ import org.junit.rules.TestName;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
/** Playback tests for {@link CompositionPlayer} */ /** Playback tests for {@link CompositionPlayer} */
// These tests are in the performance package even though they are not performance tests so that
// they are not run on all devices. This is because they use ImageReader, which has a tendency to
// drop frames.
@RunWith(AndroidJUnit4.class) @RunWith(AndroidJUnit4.class)
public class CompositionPlaybackTest { public class CompositionPlaybackTest {

View File

@ -71,6 +71,9 @@ import org.junit.runners.Parameterized.Parameter;
import org.junit.runners.Parameterized.Parameters; import org.junit.runners.Parameterized.Parameters;
/** Test for {@link ExoPlayer#setVideoEffects}. */ /** Test for {@link ExoPlayer#setVideoEffects}. */
// These tests are in the performance package even though they are not performance tests so that
// they are not run on all devices. This is because they use ImageReader, which has a tendency to
// drop frames.
@RunWith(Enclosed.class) @RunWith(Enclosed.class)
public class EffectPlaybackTest { public class EffectPlaybackTest {