| 1 | import 'package:mockito/mockito.dart'; |
| 2 | import 'package:flutter_test/flutter_test.dart'; |
| 3 | import 'package:path_provider_platform_interface/path_provider_platform_interface.dart'; |
| 4 | import 'package:plugin_platform_interface/plugin_platform_interface.dart'; |
| 5 | |
| 6 | class MockPathProviderPlatform extends Mock |
| 7 | with MockPlatformInterfaceMixin |
| 8 | implements PathProviderPlatform { |
| 9 | Future<String> getTemporaryPath() => throw UnimplementedError(); |
| 10 | |
| 11 | Future<String> getApplicationSupportPath() => throw UnimplementedError(); |
| 12 | |
| 13 | Future<String> getLibraryPath() => throw UnimplementedError(); |
| 14 | |
| 15 | Future<String> getApplicationDocumentsPath() async => "./test/data"; |
| 16 | |
| 17 | Future<String> getExternalStoragePath() => throw UnimplementedError(); |
| 18 | |
| 19 | Future<List<String>> getExternalCachePaths() => throw UnimplementedError(); |
| 20 | |
| 21 | Future<String> getDownloadsPath() => throw UnimplementedError(); |
| 22 | |
| 23 | @override |
| 24 | Future<String?> getApplicationCachePath() => throw UnimplementedError(); |
| 25 | |
| 26 | @override |
| 27 | Future<List<String>?> getExternalStoragePaths({StorageDirectory? type}) => |
| 28 | throw UnimplementedError(); |
| 29 | } |