Move assets from core to testdata module
PiperOrigin-RevId: 294239472
|
|
@ -41,6 +41,11 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
androidTest.assets.srcDir '../../testdata/src/test/assets/'
|
||||||
|
test.assets.srcDir '../../testdata/src/test/assets/'
|
||||||
|
}
|
||||||
|
|
||||||
testOptions.unitTests.includeAndroidResources = true
|
testOptions.unitTests.includeAndroidResources = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ import org.junit.runner.RunWith;
|
||||||
public final class ContentDataSourceTest {
|
public final class ContentDataSourceTest {
|
||||||
|
|
||||||
private static final String AUTHORITY = "com.google.android.exoplayer2.core.test";
|
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
|
@Test
|
||||||
public void testRead() throws Exception {
|
public void testRead() throws Exception {
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ import org.junit.runner.RunWith;
|
||||||
@RunWith(AndroidJUnit4.class)
|
@RunWith(AndroidJUnit4.class)
|
||||||
public final class AssetDataSourceTest {
|
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
|
@Test
|
||||||
public void testReadFileUri() throws Exception {
|
public void testReadFileUri() throws Exception {
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |