mirror of https://github.com/flutter/pinball.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
862 B
35 lines
862 B
// ignore_for_file: one_member_abstracts
|
|
|
|
import 'package:audioplayers/audioplayers.dart';
|
|
import 'package:flame_audio/audio_pool.dart';
|
|
import 'package:mocktail/mocktail.dart';
|
|
|
|
abstract class _CreateAudioPoolStub {
|
|
Future<AudioPool> onCall(
|
|
String sound, {
|
|
bool? repeating,
|
|
int? maxPlayers,
|
|
int? minPlayers,
|
|
String? prefix,
|
|
});
|
|
}
|
|
|
|
class CreateAudioPoolStub extends Mock implements _CreateAudioPoolStub {}
|
|
|
|
abstract class _ConfigureAudioCacheStub {
|
|
void onCall(AudioCache cache);
|
|
}
|
|
|
|
class ConfigureAudioCacheStub extends Mock implements _ConfigureAudioCacheStub {
|
|
}
|
|
|
|
abstract class _PlaySingleAudioStub {
|
|
Future<void> onCall(String url);
|
|
}
|
|
|
|
class PlaySingleAudioStub extends Mock implements _PlaySingleAudioStub {}
|
|
|
|
class MockAudioPool extends Mock implements AudioPool {}
|
|
|
|
class MockAudioCache extends Mock implements AudioCache {}
|