mirror of
https://github.com/samsonjs/media.git
synced 2026-04-04 11:05:47 +00:00
Update InternetConnection check to skip check when uri scheme is null
When we created androidTests, in the past, they always had a URI pointing to a resource, therefore we always had a URI scheme. With texture input, this will not longer be the case (EditedMediaItems's may have URI.EMPTY, which have a null scheme) so we need to check for this so tests don't falsely fail. PiperOrigin-RevId: 528848411
This commit is contained in:
parent
d5fc9e9627
commit
3011a29940
1 changed files with 2 additions and 2 deletions
|
|
@ -274,8 +274,8 @@ public class TransformerAndroidTestRunner {
|
|||
for (EditedMediaItemSequence sequence : composition.sequences) {
|
||||
for (EditedMediaItem editedMediaItem : sequence.editedMediaItems) {
|
||||
Uri mediaItemUri = checkNotNull(editedMediaItem.mediaItem.localConfiguration).uri;
|
||||
String scheme = checkNotNull(mediaItemUri.getScheme());
|
||||
if ((scheme.equals("http") || scheme.equals("https"))) {
|
||||
String scheme = mediaItemUri.getScheme();
|
||||
if (scheme != null && (scheme.equals("http") || scheme.equals("https"))) {
|
||||
assumeTrue(
|
||||
"Input network file requested on device with no network connection. Input file"
|
||||
+ " name: "
|
||||
|
|
|
|||
Loading…
Reference in a new issue