diff --git a/library/smoothstreaming/build.gradle b/library/smoothstreaming/build.gradle index 6ced528631..d039e22dcf 100644 --- a/library/smoothstreaming/build.gradle +++ b/library/smoothstreaming/build.gradle @@ -33,6 +33,8 @@ android { } } + sourceSets.test.assets.srcDir '../../testdata/src/test/assets/' + testOptions.unitTests.includeAndroidResources = true } diff --git a/library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParserTest.java b/library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParserTest.java index 94be71e84e..39f7e860a6 100644 --- a/library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParserTest.java +++ b/library/smoothstreaming/src/test/java/com/google/android/exoplayer2/source/smoothstreaming/manifest/SsManifestParserTest.java @@ -27,8 +27,8 @@ import org.junit.runner.RunWith; @RunWith(AndroidJUnit4.class) public final class SsManifestParserTest { - private static final String SAMPLE_ISMC_1 = "sample_ismc_1"; - private static final String SAMPLE_ISMC_2 = "sample_ismc_2"; + private static final String SAMPLE_ISMC_1 = "smooth-streaming/sample_ismc_1"; + private static final String SAMPLE_ISMC_2 = "smooth-streaming/sample_ismc_2"; /** Simple test to ensure the sample manifests parse without any exceptions being thrown. */ @Test diff --git a/library/smoothstreaming/src/test/assets/sample_ismc_1 b/testdata/src/test/assets/smooth-streaming/sample_ismc_1 similarity index 100% rename from library/smoothstreaming/src/test/assets/sample_ismc_1 rename to testdata/src/test/assets/smooth-streaming/sample_ismc_1 diff --git a/library/smoothstreaming/src/test/assets/sample_ismc_2 b/testdata/src/test/assets/smooth-streaming/sample_ismc_2 similarity index 100% rename from library/smoothstreaming/src/test/assets/sample_ismc_2 rename to testdata/src/test/assets/smooth-streaming/sample_ismc_2