Move assets from core to testdata module

PiperOrigin-RevId: 294239472
This commit is contained in:
kimvde 2020-02-10 17:43:10 +00:00 committed by kim-vde
parent 66aa35f581
commit 22ce744095
94 changed files with 7 additions and 2 deletions

View file

@ -41,6 +41,11 @@ android {
}
}
sourceSets {
androidTest.assets.srcDir '../../testdata/src/test/assets/'
test.assets.srcDir '../../testdata/src/test/assets/'
}
testOptions.unitTests.includeAndroidResources = true
}

View file

@ -43,7 +43,7 @@ import org.junit.runner.RunWith;
public final class ContentDataSourceTest {
private static final String AUTHORITY = "com.google.android.exoplayer2.core.test";
private static final String DATA_PATH = "binary/1024_incrementing_bytes.mp3";
private static final String DATA_PATH = "mp3/1024_incrementing_bytes.mp3";
@Test
public void testRead() throws Exception {

View file

@ -26,7 +26,7 @@ import org.junit.runner.RunWith;
@RunWith(AndroidJUnit4.class)
public final class AssetDataSourceTest {
private static final String DATA_PATH = "binary/1024_incrementing_bytes.mp3";
private static final String DATA_PATH = "mp3/1024_incrementing_bytes.mp3";
@Test
public void testReadFileUri() throws Exception {

View file

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View file

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View file

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

View file

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View file

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 30 KiB