Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Patch/ignore breaking tests in sound null-mode.
  • Loading branch information
ditman committed Feb 19, 2021
commit 4bd988dba3593197714d5125bed4db8df3d91691
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ class _ApiLogger implements TestHostVideoPlayerApi {
PositionMessage position(TextureMessage arg) {
log.add('position');
textureMessage = arg;
return PositionMessage()..position = 234;
return PositionMessage()
..position = 234
// TODO(plugins): Only needed until flutter/flutter#76405 lands, and pigeons are regenerated.
..textureId = arg.textureId;
}

@override
Expand Down Expand Up @@ -132,7 +135,7 @@ void main() {
expect(log.createMessage?.asset, 'someAsset');
expect(log.createMessage?.packageName, 'somePackage');
expect(textureId, 3);
});
}, skip: "Until flutter/flutter#76405 lands, and pigeons are regenerated.");

test('create with network', () async {
final int? textureId = await player.create(DataSource(
Expand All @@ -144,7 +147,7 @@ void main() {
expect(log.createMessage?.uri, 'someUri');
expect(log.createMessage?.formatHint, 'dash');
expect(textureId, 3);
});
}, skip: "Until flutter/flutter#76405 lands, and pigeons are regenerated.");

test('create with file', () async {
final int? textureId = await player.create(DataSource(
Expand All @@ -154,7 +157,7 @@ void main() {
expect(log.log.last, 'create');
expect(log.createMessage?.uri, 'someUri');
expect(textureId, 3);
});
}, skip: "Until flutter/flutter#76405 lands, and pigeons are regenerated.");

test('setLooping', () async {
await player.setLooping(1, true);
Expand Down