test: 테스트 코드 업데이트

- 변경된 API에 맞게 테스트 수정
This commit is contained in:
JiWoong Sul
2026-01-08 16:05:20 +09:00
parent cfc1537af2
commit 4af3830bb5
3 changed files with 23 additions and 11 deletions

View File

@@ -13,14 +13,18 @@ class _FakeSaveManager implements SaveManager {
final List<GameState> savedStates = [];
@override
Future<SaveOutcome> saveState(GameState state, {String? fileName}) async {
Future<SaveOutcome> saveState(
GameState state, {
String? fileName,
bool cheatsEnabled = false,
}) async {
savedStates.add(state);
return const SaveOutcome.success();
}
@override
Future<(SaveOutcome, GameState?)> loadState({String? fileName}) async {
return (const SaveOutcome.success(), null);
Future<(SaveOutcome, GameState?, bool)> loadState({String? fileName}) async {
return (const SaveOutcome.success(), null, false);
}
@override