// Mocks generated by Mockito 5.4.6 from annotations // in localsend_app/test/mocks.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i4; import 'package:flutter/material.dart' as _i8; import 'package:localsend_app/gen/strings.g.dart' as _i10; import 'package:localsend_app/model/persistence/color_mode.dart' as _i9; import 'package:localsend_app/model/persistence/favorite_device.dart' as _i6; import 'package:localsend_app/model/persistence/quick_save_mode.dart' as _i11; import 'package:localsend_app/model/persistence/receive_history_entry.dart' as _i5; import 'package:localsend_app/model/send_mode.dart' as _i12; import 'package:localsend_app/provider/persistence_provider.dart' as _i3; import 'package:localsend_isolates/model/device.dart' as _i13; import 'package:localsend_isolates/model/stored_security_context.dart' as _i2; import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/src/dummies.dart' as _i7; import 'package:shared_preferences/shared_preferences.dart' as _i14; // ignore_for_file: type=lint // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references // ignore_for_file: deprecated_member_use // ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class // ignore_for_file: invalid_use_of_internal_member class _FakeStoredSecurityContext_0 extends _i1.SmartFake implements _i2.StoredSecurityContext { _FakeStoredSecurityContext_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation); } /// A class which mocks [PersistenceService]. /// /// See the documentation for Mockito's code generation for more information. class MockPersistenceService extends _i1.Mock implements _i3.PersistenceService { @override bool get isFirstAppStart => (super.noSuchMethod( Invocation.getter(#isFirstAppStart), returnValue: false, returnValueForMissingStub: false, ) as bool); @override bool isPortableMode() => (super.noSuchMethod( Invocation.method(#isPortableMode, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i2.StoredSecurityContext getSecurityContext() => (super.noSuchMethod( Invocation.method(#getSecurityContext, []), returnValue: _FakeStoredSecurityContext_0( this, Invocation.method(#getSecurityContext, []), ), returnValueForMissingStub: _FakeStoredSecurityContext_0( this, Invocation.method(#getSecurityContext, []), ), ) as _i2.StoredSecurityContext); @override _i4.Future setSecurityContext(_i2.StoredSecurityContext? context) => (super.noSuchMethod( Invocation.method(#setSecurityContext, [context]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setSignalingServers(List? servers) => (super.noSuchMethod( Invocation.method(#setSignalingServers, [servers]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setStunServers(List? servers) => (super.noSuchMethod( Invocation.method(#setStunServers, [servers]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override List<_i5.ReceiveHistoryEntry> getReceiveHistory() => (super.noSuchMethod( Invocation.method(#getReceiveHistory, []), returnValue: <_i5.ReceiveHistoryEntry>[], returnValueForMissingStub: <_i5.ReceiveHistoryEntry>[], ) as List<_i5.ReceiveHistoryEntry>); @override _i4.Future setReceiveHistory(List<_i5.ReceiveHistoryEntry>? entries) => (super.noSuchMethod( Invocation.method(#setReceiveHistory, [entries]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override List<_i6.FavoriteDevice> getFavorites() => (super.noSuchMethod( Invocation.method(#getFavorites, []), returnValue: <_i6.FavoriteDevice>[], returnValueForMissingStub: <_i6.FavoriteDevice>[], ) as List<_i6.FavoriteDevice>); @override _i4.Future setFavorites(List<_i6.FavoriteDevice>? entries) => (super.noSuchMethod( Invocation.method(#setFavorites, [entries]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override String getShowToken() => (super.noSuchMethod( Invocation.method(#getShowToken, []), returnValue: _i7.dummyValue( this, Invocation.method(#getShowToken, []), ), returnValueForMissingStub: _i7.dummyValue( this, Invocation.method(#getShowToken, []), ), ) as String); @override String getAlias() => (super.noSuchMethod( Invocation.method(#getAlias, []), returnValue: _i7.dummyValue( this, Invocation.method(#getAlias, []), ), returnValueForMissingStub: _i7.dummyValue( this, Invocation.method(#getAlias, []), ), ) as String); @override _i4.Future setAlias(String? alias) => (super.noSuchMethod( Invocation.method(#setAlias, [alias]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i8.ThemeMode getTheme() => (super.noSuchMethod( Invocation.method(#getTheme, []), returnValue: _i8.ThemeMode.system, returnValueForMissingStub: _i8.ThemeMode.system, ) as _i8.ThemeMode); @override _i4.Future setTheme(_i8.ThemeMode? theme) => (super.noSuchMethod( Invocation.method(#setTheme, [theme]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i9.ColorMode getColorMode() => (super.noSuchMethod( Invocation.method(#getColorMode, []), returnValue: _i9.ColorMode.system, returnValueForMissingStub: _i9.ColorMode.system, ) as _i9.ColorMode); @override _i4.Future setColorMode(_i9.ColorMode? color) => (super.noSuchMethod( Invocation.method(#setColorMode, [color]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setLocale(_i10.AppLocale? locale) => (super.noSuchMethod( Invocation.method(#setLocale, [locale]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override int getPort() => (super.noSuchMethod( Invocation.method(#getPort, []), returnValue: 0, returnValueForMissingStub: 0, ) as int); @override _i4.Future setPort(int? port) => (super.noSuchMethod( Invocation.method(#setPort, [port]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setNetworkWhitelist(List? whitelist) => (super.noSuchMethod( Invocation.method(#setNetworkWhitelist, [whitelist]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setNetworkBlacklist(List? blacklist) => (super.noSuchMethod( Invocation.method(#setNetworkBlacklist, [blacklist]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override int getDiscoveryTimeout() => (super.noSuchMethod( Invocation.method(#getDiscoveryTimeout, []), returnValue: 0, returnValueForMissingStub: 0, ) as int); @override _i4.Future setDiscoveryTimeout(int? timeout) => (super.noSuchMethod( Invocation.method(#setDiscoveryTimeout, [timeout]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool getShareViaLinkAutoAccept() => (super.noSuchMethod( Invocation.method(#getShareViaLinkAutoAccept, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setShareViaLinkAutoAccept(bool? shareViaLinkAutoAccept) => (super.noSuchMethod( Invocation.method(#setShareViaLinkAutoAccept, [ shareViaLinkAutoAccept, ]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool getReceiveViaLinkAutoAccept() => (super.noSuchMethod( Invocation.method(#getReceiveViaLinkAutoAccept, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setReceiveViaLinkAutoAccept( bool? receiveViaLinkAutoAccept, ) => (super.noSuchMethod( Invocation.method(#setReceiveViaLinkAutoAccept, [ receiveViaLinkAutoAccept, ]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool getCreateChecksums() => (super.noSuchMethod( Invocation.method(#getCreateChecksums, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setCreateChecksums(bool? createChecksums) => (super.noSuchMethod( Invocation.method(#setCreateChecksums, [createChecksums]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool getVerifyChecksums() => (super.noSuchMethod( Invocation.method(#getVerifyChecksums, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setVerifyChecksums(bool? verifyChecksums) => (super.noSuchMethod( Invocation.method(#setVerifyChecksums, [verifyChecksums]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override String getMulticastGroup() => (super.noSuchMethod( Invocation.method(#getMulticastGroup, []), returnValue: _i7.dummyValue( this, Invocation.method(#getMulticastGroup, []), ), returnValueForMissingStub: _i7.dummyValue( this, Invocation.method(#getMulticastGroup, []), ), ) as String); @override _i4.Future setMulticastGroup(String? group) => (super.noSuchMethod( Invocation.method(#setMulticastGroup, [group]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setDestination(String? destination) => (super.noSuchMethod( Invocation.method(#setDestination, [destination]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool isSaveToGallery() => (super.noSuchMethod( Invocation.method(#isSaveToGallery, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setSaveToGallery(bool? saveToGallery) => (super.noSuchMethod( Invocation.method(#setSaveToGallery, [saveToGallery]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool isSaveToHistory() => (super.noSuchMethod( Invocation.method(#isSaveToHistory, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setSaveToHistory(bool? saveToHistory) => (super.noSuchMethod( Invocation.method(#setSaveToHistory, [saveToHistory]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool getAdvancedSettingsEnabled() => (super.noSuchMethod( Invocation.method(#getAdvancedSettingsEnabled, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setAdvancedSettingsEnabled(bool? isEnabled) => (super.noSuchMethod( Invocation.method(#setAdvancedSettingsEnabled, [isEnabled]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i11.QuickSaveMode getQuickSave() => (super.noSuchMethod( Invocation.method(#getQuickSave, []), returnValue: _i11.QuickSaveMode.off, returnValueForMissingStub: _i11.QuickSaveMode.off, ) as _i11.QuickSaveMode); @override _i4.Future setQuickSave(_i11.QuickSaveMode? mode) => (super.noSuchMethod( Invocation.method(#setQuickSave, [mode]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setReceivePin(String? pin) => (super.noSuchMethod( Invocation.method(#setReceivePin, [pin]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool isAutoFinish() => (super.noSuchMethod( Invocation.method(#isAutoFinish, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setAutoFinish(bool? autoFinish) => (super.noSuchMethod( Invocation.method(#setAutoFinish, [autoFinish]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool isMinimizeToTray() => (super.noSuchMethod( Invocation.method(#isMinimizeToTray, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setMinimizeToTray(bool? minimizeToTray) => (super.noSuchMethod( Invocation.method(#setMinimizeToTray, [minimizeToTray]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool isHttps() => (super.noSuchMethod( Invocation.method(#isHttps, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setHttps(bool? https) => (super.noSuchMethod( Invocation.method(#setHttps, [https]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i12.SendMode getSendMode() => (super.noSuchMethod( Invocation.method(#getSendMode, []), returnValue: _i12.SendMode.single, returnValueForMissingStub: _i12.SendMode.single, ) as _i12.SendMode); @override _i4.Future setSendMode(_i12.SendMode? mode) => (super.noSuchMethod( Invocation.method(#setSendMode, [mode]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setWindowOffsetX(double? x) => (super.noSuchMethod( Invocation.method(#setWindowOffsetX, [x]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setWindowOffsetY(double? y) => (super.noSuchMethod( Invocation.method(#setWindowOffsetY, [y]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setWindowHeight(double? height) => (super.noSuchMethod( Invocation.method(#setWindowHeight, [height]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setWindowWidth(double? width) => (super.noSuchMethod( Invocation.method(#setWindowWidth, [width]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setSaveWindowPlacement(bool? savePlacement) => (super.noSuchMethod( Invocation.method(#setSaveWindowPlacement, [savePlacement]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool getSaveWindowPlacement() => (super.noSuchMethod( Invocation.method(#getSaveWindowPlacement, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setEnableAnimations(bool? enableAnimations) => (super.noSuchMethod( Invocation.method(#setEnableAnimations, [enableAnimations]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override bool getEnableAnimations() => (super.noSuchMethod( Invocation.method(#getEnableAnimations, []), returnValue: false, returnValueForMissingStub: false, ) as bool); @override _i4.Future setDeviceType(_i13.DeviceType? deviceType) => (super.noSuchMethod( Invocation.method(#setDeviceType, [deviceType]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setDeviceModel(String? deviceModel) => (super.noSuchMethod( Invocation.method(#setDeviceModel, [deviceModel]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future setWhatsNew(String? version) => (super.noSuchMethod( Invocation.method(#setWhatsNew, [version]), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future clear() => (super.noSuchMethod( Invocation.method(#clear, []), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); } /// A class which mocks [SharedPreferences]. /// /// See the documentation for Mockito's code generation for more information. class MockSharedPreferences extends _i1.Mock implements _i14.SharedPreferences { @override Set getKeys() => (super.noSuchMethod( Invocation.method(#getKeys, []), returnValue: {}, returnValueForMissingStub: {}, ) as Set); @override Object? get(String? key) => (super.noSuchMethod( Invocation.method(#get, [key]), returnValueForMissingStub: null, ) as Object?); @override bool? getBool(String? key) => (super.noSuchMethod( Invocation.method(#getBool, [key]), returnValueForMissingStub: null, ) as bool?); @override int? getInt(String? key) => (super.noSuchMethod( Invocation.method(#getInt, [key]), returnValueForMissingStub: null, ) as int?); @override double? getDouble(String? key) => (super.noSuchMethod( Invocation.method(#getDouble, [key]), returnValueForMissingStub: null, ) as double?); @override String? getString(String? key) => (super.noSuchMethod( Invocation.method(#getString, [key]), returnValueForMissingStub: null, ) as String?); @override bool containsKey(String? key) => (super.noSuchMethod( Invocation.method(#containsKey, [key]), returnValue: false, returnValueForMissingStub: false, ) as bool); @override List? getStringList(String? key) => (super.noSuchMethod( Invocation.method(#getStringList, [key]), returnValueForMissingStub: null, ) as List?); @override _i4.Future setBool(String? key, bool? value) => (super.noSuchMethod( Invocation.method(#setBool, [key, value]), returnValue: _i4.Future.value(false), returnValueForMissingStub: _i4.Future.value(false), ) as _i4.Future); @override _i4.Future setInt(String? key, int? value) => (super.noSuchMethod( Invocation.method(#setInt, [key, value]), returnValue: _i4.Future.value(false), returnValueForMissingStub: _i4.Future.value(false), ) as _i4.Future); @override _i4.Future setDouble(String? key, double? value) => (super.noSuchMethod( Invocation.method(#setDouble, [key, value]), returnValue: _i4.Future.value(false), returnValueForMissingStub: _i4.Future.value(false), ) as _i4.Future); @override _i4.Future setString(String? key, String? value) => (super.noSuchMethod( Invocation.method(#setString, [key, value]), returnValue: _i4.Future.value(false), returnValueForMissingStub: _i4.Future.value(false), ) as _i4.Future); @override _i4.Future setStringList(String? key, List? value) => (super.noSuchMethod( Invocation.method(#setStringList, [key, value]), returnValue: _i4.Future.value(false), returnValueForMissingStub: _i4.Future.value(false), ) as _i4.Future); @override _i4.Future remove(String? key) => (super.noSuchMethod( Invocation.method(#remove, [key]), returnValue: _i4.Future.value(false), returnValueForMissingStub: _i4.Future.value(false), ) as _i4.Future); @override _i4.Future commit() => (super.noSuchMethod( Invocation.method(#commit, []), returnValue: _i4.Future.value(false), returnValueForMissingStub: _i4.Future.value(false), ) as _i4.Future); @override _i4.Future clear() => (super.noSuchMethod( Invocation.method(#clear, []), returnValue: _i4.Future.value(false), returnValueForMissingStub: _i4.Future.value(false), ) as _i4.Future); @override _i4.Future reload() => (super.noSuchMethod( Invocation.method(#reload, []), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); }