aves_mio1/test/fake/storage_service.dart
FabioMich66 19a982ede6
Some checks are pending
Quality check / Flutter analysis (push) Waiting to run
Quality check / CodeQL analysis (java-kotlin) (push) Waiting to run
first commit
2026-03-05 15:51:30 +01:00

36 lines
1.2 KiB
Dart

import 'package:aves_model/aves_model.dart';
import 'package:aves/services/storage_service.dart';
import 'package:flutter/foundation.dart';
import 'package:test/fake.dart';
class FakeStorageService extends Fake implements StorageService {
static const primaryRootAlbum = '/storage/emulated/0';
static const primaryPath = '$primaryRootAlbum/';
static const primaryDescription = 'Internal Storage';
static const removablePath = '/storage/1234-5678/';
static const removableDescription = 'SD Card';
@override
Future<Set<StorageVolume>> getStorageVolumes() => SynchronousFuture({
const StorageVolume(
path: primaryPath,
description: primaryDescription,
isPrimary: true,
isRemovable: false,
state: 'fake',
),
const StorageVolume(
path: removablePath,
description: removableDescription,
isPrimary: false,
isRemovable: true,
state: 'fake',
),
});
@override
Future<Set<String>> getUntrackedTrashPaths(Iterable<String> knownPaths) => SynchronousFuture({});
@override
Future<String> getVaultRoot() => SynchronousFuture('/vault/');
}