Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
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
Un-skip tests, and tweak generated file according to the next version…
… of pigeon.
  • Loading branch information
ditman committed Feb 22, 2021
commit 74213fc43afcdd0db46d5589a4c8e11cb043155c
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ class CreateMessage {
static CreateMessage decode(Object message) {
final Map<Object?, Object?> pigeonMap = message as Map<Object?, Object?>;
return CreateMessage()
..asset = pigeonMap['asset'] as String
..uri = pigeonMap['uri'] as String
..packageName = pigeonMap['packageName'] as String
..formatHint = pigeonMap['formatHint'] as String;
// Modified manually until flutter/packages#292 lands
..asset = pigeonMap['asset'] as String?
..uri = pigeonMap['uri'] as String?
..packageName = pigeonMap['packageName'] as String?
..formatHint = pigeonMap['formatHint'] as String?;
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,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 @@ -147,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 @@ -157,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