Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEC-11206 TrackSelectionHelper Unit Tests #725

Open
wants to merge 37 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
f650cd4
- Unit test cases for SourceSelector
GouravSna May 5, 2021
a7c502f
- Moved to androidx and Kotlin for Tests
GouravSna May 5, 2021
fbf0db6
- Removed returnDefaultValues
GouravSna May 5, 2021
78288c4
- Empty Line
GouravSna May 5, 2021
289b852
- ExoPlayerWrapper with TrackSelection test
GouravSna May 13, 2021
26e6f56
- Cleanup
GouravSna May 13, 2021
40092de
- Updated travis yml for test
GouravSna May 13, 2021
5ceb9d8
- Made to fail
GouravSna May 13, 2021
079c20d
- Fixed it
GouravSna May 13, 2021
96388dc
- Added one more case
GouravSna May 14, 2021
36639be
- Test for TrackSelectionHelper
GouravSna May 17, 2021
11607ee
- updated travis file
GouravSna May 18, 2021
685b09b
- ExoPlayerWrapper and TrackSelection test
GouravSna May 19, 2021
5c832aa
Merge branch 'dev' into FEC-11206
GouravSna May 25, 2021
bb303db
- Added more TrackSelectionHelper tests
GouravSna May 26, 2021
aabd6dc
- Added HLS parsing on local manifest
GouravSna May 27, 2021
da77332
Merge branch 'dev' into FEC-11206
GouravSna Jun 3, 2021
865544d
- Changes wrt ExoPlayer v2.14.0
GouravSna Jun 3, 2021
9a8ccd4
- Text preference tests
GouravSna Jun 3, 2021
9117b33
- TrackSelection Helper tests
GouravSna Jun 6, 2021
b1fd7ce
Merge branch 'dev' into FEC-11206
GouravSna Jun 7, 2021
a5ab572
- TrackSelection test contd..
GouravSna Jun 7, 2021
3c77eab
Merge branch 'dev' into FEC-11206
GouravSna Jun 8, 2021
a25af74
- Class update for visibility
GouravSna Jun 10, 2021
216c09b
- Added more TrackSelection tests
GouravSna Jun 10, 2021
4c5c2a0
- Change Track tests
GouravSna Jun 11, 2021
44e766b
- More tests
GouravSna Jun 11, 2021
cc92312
- TrackSelectionHelper test for Dash Content only
GouravSna Jun 11, 2021
85786ab
- TrackSelectionHelper tests with HLS and DASH streams
GouravSna Jun 15, 2021
92abfe9
- Code cleanup
GouravSna Jun 21, 2021
3c8ce7d
- Removed FIXME from ExoPlayerWrapper, will include separately in its…
GouravSna Jun 22, 2021
f2aba74
Update FakeRendererCapabilities.kt
giladna Jun 27, 2021
712494c
Update sample_hls_harold
giladna Jun 27, 2021
98c901c
Update sample_dash_custom_manifest_image_tracks
giladna Jun 27, 2021
f24659a
Update sample_dash_custom_manifest_without_image_tracks
giladna Jun 27, 2021
d99bd71
Update sample_dash_custom_manifest_without_image_tracks
giladna Jun 27, 2021
1b52817
Update sample_dash_hevc_and_avc_mix
giladna Jun 27, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ android:
before_script:
- curl https://kaltura.github.io/fe-tools/android/license.sh | sh
script:
- ./gradlew playkit:test
- ./gradlew playkit:build
after_failure:
- cat playkit/build/reports/lint-results.xml
Expand Down
17 changes: 12 additions & 5 deletions playkit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,9 @@ android {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

testOptions {
unitTests.returnDefaultValues = true
debug {
testCoverageEnabled = true
}
}

lintOptions {
Expand All @@ -32,6 +31,12 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}

testOptions {
unitTests {
includeAndroidResources = true
}
}
}

tasks.withType(Javadoc) {
Expand Down Expand Up @@ -68,7 +73,9 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.hamcrest:hamcrest-library:1.3'
testImplementation "org.mockito:mockito-core:2.28.2"
androidTestImplementation 'androidx.test:runner:1.3.0'
testImplementation 'org.robolectric:robolectric:4.5'
testImplementation "androidx.test.ext:junit:1.1.2"
testImplementation 'androidx.test:runner:1.3.0'
}

if (!ext.playkitVersion.contains('dev')) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ public void onTracksChanged(TrackGroupArray trackGroups, TrackSelectionArray tra
shouldGetTracksInfo = !trackSelectionHelper.prepareTracks(trackSelections, customDashManifest);
}
}

trackSelectionHelper.notifyAboutTrackChange(trackSelections);
}

Expand Down
Loading