Skip to content

Commit

Permalink
Disable failing tests of FlacExtractorSeekTest
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 485061783
  • Loading branch information
rohitjoins authored and marcbaechinger committed Nov 1, 2022
1 parent 8030a49 commit 55b82ff
Show file tree
Hide file tree
Showing 25 changed files with 34 additions and 36 deletions.
Expand Up @@ -21,9 +21,9 @@

import android.os.Handler;
import androidx.annotation.Nullable;
import androidx.media3.common.audio.AudioProcessor;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.audio.AudioProcessor;
import com.google.android.exoplayer2.audio.AudioRendererEventListener;
import com.google.android.exoplayer2.audio.AudioSink;
import com.google.android.exoplayer2.audio.AudioSink.SinkFormatSupport;
Expand Down
Expand Up @@ -29,6 +29,7 @@
import com.google.android.exoplayer2.util.Util;
import java.io.IOException;
import java.util.List;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;

Expand Down Expand Up @@ -75,6 +76,7 @@ public void seeking_seekTable_handlesSeekToZero() throws IOException {
fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex);
}

@Ignore("Fix [internal: b/249505968] before enabling this.")
@Test
public void seeking_seekTable_handlesSeekToEoF() throws IOException {
String fileName = TEST_FILE_SEEK_TABLE;
Expand All @@ -92,6 +94,7 @@ public void seeking_seekTable_handlesSeekToEoF() throws IOException {
fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex);
}

@Ignore("Fix [internal: b/249505968] before enabling this.")
@Test
public void seeking_seekTable_handlesSeekingBackward() throws IOException {
String fileName = TEST_FILE_SEEK_TABLE;
Expand All @@ -111,6 +114,7 @@ public void seeking_seekTable_handlesSeekingBackward() throws IOException {
fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex);
}

@Ignore("Fix [internal: b/249505968] before enabling this.")
@Test
public void seeking_seekTable_handlesSeekingForward() throws IOException {
String fileName = TEST_FILE_SEEK_TABLE;
Expand Down Expand Up @@ -158,6 +162,7 @@ public void seeking_binarySearch_handlesSeekToZero() throws IOException {
fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex);
}

@Ignore("Fix [internal: b/249505968] before enabling this.")
@Test
public void seeking_binarySearch_handlesSeekToEoF() throws IOException {
String fileName = TEST_FILE_BINARY_SEARCH;
Expand All @@ -175,6 +180,7 @@ public void seeking_binarySearch_handlesSeekToEoF() throws IOException {
fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex);
}

@Ignore("Fix [internal: b/249505968] before enabling this.")
@Test
public void seeking_binarySearch_handlesSeekingBackward() throws IOException {
String fileName = TEST_FILE_BINARY_SEARCH;
Expand All @@ -194,6 +200,7 @@ public void seeking_binarySearch_handlesSeekingBackward() throws IOException {
fileName, trackOutput, targetSeekTimeUs, extractedFrameIndex);
}

@Ignore("Fix [internal: b/249505968] before enabling this.")
@Test
public void seeking_binarySearch_handlesSeekingForward() throws IOException {
String fileName = TEST_FILE_BINARY_SEARCH;
Expand Down
Expand Up @@ -17,9 +17,9 @@

import android.os.Handler;
import androidx.annotation.Nullable;
import androidx.media3.common.audio.AudioProcessor;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.audio.AudioProcessor;
import com.google.android.exoplayer2.audio.AudioRendererEventListener;
import com.google.android.exoplayer2.audio.AudioSink;
import com.google.android.exoplayer2.audio.DecoderAudioRenderer;
Expand Down
Expand Up @@ -17,9 +17,9 @@

import android.os.Handler;
import androidx.annotation.Nullable;
import androidx.media3.common.audio.AudioProcessor;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.audio.AudioProcessor;
import com.google.android.exoplayer2.audio.AudioRendererEventListener;
import com.google.android.exoplayer2.audio.AudioSink;
import com.google.android.exoplayer2.audio.AudioSink.SinkFormatSupport;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.media3.common.audio;
package com.google.android.exoplayer2.audio;

import androidx.annotation.Nullable;
import com.google.android.exoplayer2.C;
Expand Down
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package androidx.media3.common.audio;
package com.google.android.exoplayer2.audio;

import com.google.android.exoplayer2.PlaybackParameters;

Expand Down
Expand Up @@ -14,6 +14,6 @@
* limitations under the License.
*/
@NonNullApi
package androidx.media3.common.audio;
package com.google.android.exoplayer2.audio;

import com.google.android.exoplayer2.util.NonNullApi;
Expand Up @@ -16,7 +16,6 @@
package com.google.android.exoplayer2.audio;

import androidx.annotation.CallSuper;
import androidx.media3.common.audio.AudioProcessor;
import com.google.errorprone.annotations.CanIgnoreReturnValue;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
Expand Down
Expand Up @@ -16,7 +16,6 @@
package com.google.android.exoplayer2.audio;

import androidx.annotation.Nullable;
import androidx.media3.common.audio.AudioProcessor;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.util.Assertions;
Expand Down
Expand Up @@ -31,7 +31,6 @@
import androidx.annotation.IntDef;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.media3.common.audio.AudioProcessor;
import com.google.android.exoplayer2.BaseRenderer;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlaybackException;
Expand Down
Expand Up @@ -38,13 +38,12 @@
import androidx.annotation.IntDef;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.media3.common.audio.AudioProcessor;
import androidx.media3.common.audio.AudioProcessor.UnhandledAudioFormatException;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlayer.AudioOffloadListener;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.PlaybackParameters;
import com.google.android.exoplayer2.analytics.PlayerId;
import com.google.android.exoplayer2.audio.AudioProcessor.UnhandledAudioFormatException;
import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.util.Clock;
import com.google.android.exoplayer2.util.ConditionVariable;
Expand Down Expand Up @@ -99,10 +98,11 @@ private InvalidAudioTrackTimestampException(String message) {
}

/**
* @deprecated Use {@link androidx.media3.common.audio.AudioProcessorChain}.
* @deprecated Use {@link com.google.android.exoplayer2.audio.AudioProcessorChain}.
*/
@Deprecated
public interface AudioProcessorChain extends androidx.media3.common.audio.AudioProcessorChain {}
public interface AudioProcessorChain
extends com.google.android.exoplayer2.audio.AudioProcessorChain {}

/**
* The default audio processor chain, which applies a (possibly empty) chain of user-defined audio
Expand Down Expand Up @@ -212,7 +212,7 @@ int getBufferSizeInBytes(
public static final class Builder {

private AudioCapabilities audioCapabilities;
@Nullable private androidx.media3.common.audio.AudioProcessorChain audioProcessorChain;
@Nullable private com.google.android.exoplayer2.audio.AudioProcessorChain audioProcessorChain;
private boolean enableFloatOutput;
private boolean enableAudioTrackPlaybackParams;
private int offloadMode;
Expand Down Expand Up @@ -253,15 +253,15 @@ public Builder setAudioProcessors(AudioProcessor[] audioProcessors) {
}

/**
* Sets the {@link androidx.media3.common.audio.AudioProcessorChain} to process audio before
* playback. The instance passed in must not be reused in other sinks. Processing chains are
* only supported for PCM playback (not passthrough or offload).
* Sets the {@link com.google.android.exoplayer2.audio.AudioProcessorChain} to process audio
* before playback. The instance passed in must not be reused in other sinks. Processing chains
* are only supported for PCM playback (not passthrough or offload).
*
* <p>By default, no processing will be applied.
*/
@CanIgnoreReturnValue
public Builder setAudioProcessorChain(
androidx.media3.common.audio.AudioProcessorChain audioProcessorChain) {
com.google.android.exoplayer2.audio.AudioProcessorChain audioProcessorChain) {
checkNotNull(audioProcessorChain);
this.audioProcessorChain = audioProcessorChain;
return this;
Expand Down Expand Up @@ -451,7 +451,7 @@ public DefaultAudioSink build() {
private static int pendingReleaseCount;

private final AudioCapabilities audioCapabilities;
private final androidx.media3.common.audio.AudioProcessorChain audioProcessorChain;
private final com.google.android.exoplayer2.audio.AudioProcessorChain audioProcessorChain;
private final boolean enableFloatOutput;
private final ChannelMappingAudioProcessor channelMappingAudioProcessor;
private final TrimmingAudioProcessor trimmingAudioProcessor;
Expand Down
Expand Up @@ -15,7 +15,6 @@
*/
package com.google.android.exoplayer2.audio;

import androidx.media3.common.audio.AudioProcessor;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.util.Util;
Expand Down
Expand Up @@ -33,7 +33,6 @@
import androidx.annotation.DoNotInline;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.media3.common.audio.AudioProcessor;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlaybackException;
import com.google.android.exoplayer2.ExoPlayer;
Expand Down
Expand Up @@ -15,7 +15,6 @@
*/
package com.google.android.exoplayer2.audio;

import androidx.media3.common.audio.AudioProcessor;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.util.Util;
Expand Down
Expand Up @@ -19,7 +19,6 @@
import static java.lang.annotation.ElementType.TYPE_USE;

import androidx.annotation.IntDef;
import androidx.media3.common.audio.AudioProcessor;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.util.Util;
Expand Down
Expand Up @@ -18,7 +18,6 @@
import static com.google.android.exoplayer2.util.Assertions.checkNotNull;

import androidx.annotation.Nullable;
import androidx.media3.common.audio.AudioProcessor;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.util.Util;
Expand Down
Expand Up @@ -18,7 +18,6 @@
import static java.lang.Math.min;

import androidx.annotation.Nullable;
import androidx.media3.common.audio.AudioProcessorChain;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.util.Assertions;
import com.google.android.exoplayer2.util.Log;
Expand Down
Expand Up @@ -18,9 +18,9 @@
import static com.google.common.truth.Truth.assertThat;
import static java.lang.Math.min;

import androidx.media3.common.audio.AudioProcessor.AudioFormat;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.audio.AudioProcessor.AudioFormat;
import com.google.android.exoplayer2.util.Assertions;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
Expand Down
Expand Up @@ -18,10 +18,10 @@
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.fail;

import androidx.media3.common.audio.AudioProcessor.AudioFormat;
import androidx.media3.common.audio.AudioProcessor.UnhandledAudioFormatException;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.audio.AudioProcessor.AudioFormat;
import com.google.android.exoplayer2.audio.AudioProcessor.UnhandledAudioFormatException;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down
Expand Up @@ -17,9 +17,9 @@

import static org.mockito.Mockito.verify;

import androidx.media3.common.audio.AudioProcessor.AudioFormat;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.audio.AudioProcessor.AudioFormat;
import com.google.android.exoplayer2.audio.TeeAudioProcessor.AudioBufferSink;
import org.junit.Before;
import org.junit.Rule;
Expand Down
Expand Up @@ -17,9 +17,9 @@

import static com.google.common.truth.Truth.assertThat;

import androidx.media3.common.audio.AudioProcessor.AudioFormat;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.audio.AudioProcessor.AudioFormat;
import java.nio.ByteBuffer;
import org.junit.After;
import org.junit.Before;
Expand Down
Expand Up @@ -21,10 +21,10 @@
import static java.lang.Math.min;

import androidx.annotation.Nullable;
import androidx.media3.common.audio.AudioProcessor;
import androidx.media3.common.audio.AudioProcessor.AudioFormat;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.audio.AudioProcessor;
import com.google.android.exoplayer2.audio.AudioProcessor.AudioFormat;
import com.google.android.exoplayer2.decoder.DecoderInputBuffer;
import com.google.android.exoplayer2.util.Util;
import java.nio.ByteBuffer;
Expand Down
Expand Up @@ -18,8 +18,8 @@

import static java.lang.Math.min;

import androidx.media3.common.audio.AudioProcessor;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.audio.AudioProcessor;
import com.google.android.exoplayer2.audio.BaseAudioProcessor;
import com.google.android.exoplayer2.audio.SonicAudioProcessor;
import com.google.android.exoplayer2.util.Util;
Expand Down
Expand Up @@ -22,10 +22,10 @@
import android.os.SystemClock;
import androidx.annotation.IntDef;
import androidx.annotation.Nullable;
import androidx.media3.common.audio.AudioProcessor;
import androidx.media3.common.audio.AudioProcessor.AudioFormat;
import com.google.android.exoplayer2.Format;
import com.google.android.exoplayer2.PlaybackException;
import com.google.android.exoplayer2.audio.AudioProcessor;
import com.google.android.exoplayer2.audio.AudioProcessor.AudioFormat;
import com.google.android.exoplayer2.util.Clock;
import com.google.android.exoplayer2.util.FrameProcessingException;
import com.google.android.exoplayer2.util.FrameProcessor;
Expand Down
Expand Up @@ -18,9 +18,9 @@
import static com.google.android.exoplayer2.util.Assertions.checkArgument;
import static com.google.common.truth.Truth.assertThat;

import androidx.media3.common.audio.AudioProcessor;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.audio.AudioProcessor;
import com.google.android.exoplayer2.util.Util;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
Expand Down

0 comments on commit 55b82ff

Please sign in to comment.