Commit 22ce7440 by kimvde Committed by kim-vde

Move assets from core to testdata module

PiperOrigin-RevId: 294239472
parent 66aa35f5
Showing with 7 additions and 2 deletions
...@@ -41,6 +41,11 @@ android { ...@@ -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; ...@@ -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; ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment