2024-05-27 23:56:22 +00:00
|
|
|
// Mocks generated by Mockito 5.4.4 from annotations
|
2022-08-26 08:11:35 +00:00
|
|
|
// in stackwallet/test/flutter_secure_storage_interface_test.dart.
|
|
|
|
// Do not manually edit this file.
|
|
|
|
|
2022-10-16 06:50:10 +00:00
|
|
|
// ignore_for_file: no_leading_underscores_for_library_prefixes
|
2022-08-26 08:11:35 +00:00
|
|
|
import 'dart:async' as _i3;
|
|
|
|
|
|
|
|
import 'package:flutter_secure_storage/flutter_secure_storage.dart' as _i2;
|
|
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
|
|
|
|
|
|
// ignore_for_file: type=lint
|
|
|
|
// ignore_for_file: avoid_redundant_argument_values
|
|
|
|
// ignore_for_file: avoid_setters_without_getters
|
|
|
|
// ignore_for_file: comment_references
|
2024-05-27 23:56:22 +00:00
|
|
|
// ignore_for_file: deprecated_member_use
|
|
|
|
// ignore_for_file: deprecated_member_use_from_same_package
|
2022-08-26 08:11:35 +00:00
|
|
|
// ignore_for_file: implementation_imports
|
|
|
|
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
|
|
|
// ignore_for_file: prefer_const_constructors
|
|
|
|
// ignore_for_file: unnecessary_parenthesis
|
|
|
|
// ignore_for_file: camel_case_types
|
2022-10-16 06:50:10 +00:00
|
|
|
// ignore_for_file: subtype_of_sealed_class
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2022-10-16 06:50:10 +00:00
|
|
|
class _FakeIOSOptions_0 extends _i1.SmartFake implements _i2.IOSOptions {
|
|
|
|
_FakeIOSOptions_0(
|
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2022-10-16 06:50:10 +00:00
|
|
|
class _FakeAndroidOptions_1 extends _i1.SmartFake
|
|
|
|
implements _i2.AndroidOptions {
|
|
|
|
_FakeAndroidOptions_1(
|
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2022-10-16 06:50:10 +00:00
|
|
|
class _FakeLinuxOptions_2 extends _i1.SmartFake implements _i2.LinuxOptions {
|
|
|
|
_FakeLinuxOptions_2(
|
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2022-10-16 06:50:10 +00:00
|
|
|
class _FakeWindowsOptions_3 extends _i1.SmartFake
|
|
|
|
implements _i2.WindowsOptions {
|
|
|
|
_FakeWindowsOptions_3(
|
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2022-10-16 06:50:10 +00:00
|
|
|
class _FakeWebOptions_4 extends _i1.SmartFake implements _i2.WebOptions {
|
|
|
|
_FakeWebOptions_4(
|
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
2022-10-16 06:50:10 +00:00
|
|
|
class _FakeMacOsOptions_5 extends _i1.SmartFake implements _i2.MacOsOptions {
|
|
|
|
_FakeMacOsOptions_5(
|
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-08-26 08:11:35 +00:00
|
|
|
|
|
|
|
/// A class which mocks [FlutterSecureStorage].
|
|
|
|
///
|
|
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
|
|
class MockFlutterSecureStorage extends _i1.Mock
|
|
|
|
implements _i2.FlutterSecureStorage {
|
|
|
|
MockFlutterSecureStorage() {
|
|
|
|
_i1.throwOnMissingStub(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i2.IOSOptions get iOptions => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#iOptions),
|
|
|
|
returnValue: _FakeIOSOptions_0(
|
|
|
|
this,
|
|
|
|
Invocation.getter(#iOptions),
|
|
|
|
),
|
|
|
|
) as _i2.IOSOptions);
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i2.AndroidOptions get aOptions => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#aOptions),
|
|
|
|
returnValue: _FakeAndroidOptions_1(
|
|
|
|
this,
|
|
|
|
Invocation.getter(#aOptions),
|
|
|
|
),
|
|
|
|
) as _i2.AndroidOptions);
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i2.LinuxOptions get lOptions => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#lOptions),
|
|
|
|
returnValue: _FakeLinuxOptions_2(
|
|
|
|
this,
|
|
|
|
Invocation.getter(#lOptions),
|
|
|
|
),
|
|
|
|
) as _i2.LinuxOptions);
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i2.WindowsOptions get wOptions => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#wOptions),
|
|
|
|
returnValue: _FakeWindowsOptions_3(
|
|
|
|
this,
|
|
|
|
Invocation.getter(#wOptions),
|
|
|
|
),
|
|
|
|
) as _i2.WindowsOptions);
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i2.WebOptions get webOptions => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#webOptions),
|
|
|
|
returnValue: _FakeWebOptions_4(
|
|
|
|
this,
|
|
|
|
Invocation.getter(#webOptions),
|
|
|
|
),
|
|
|
|
) as _i2.WebOptions);
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i2.MacOsOptions get mOptions => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#mOptions),
|
|
|
|
returnValue: _FakeMacOsOptions_5(
|
|
|
|
this,
|
|
|
|
Invocation.getter(#mOptions),
|
|
|
|
),
|
|
|
|
) as _i2.MacOsOptions);
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i3.Future<void> write({
|
|
|
|
required String? key,
|
|
|
|
required String? value,
|
|
|
|
_i2.IOSOptions? iOptions,
|
|
|
|
_i2.AndroidOptions? aOptions,
|
|
|
|
_i2.LinuxOptions? lOptions,
|
|
|
|
_i2.WebOptions? webOptions,
|
|
|
|
_i2.MacOsOptions? mOptions,
|
|
|
|
_i2.WindowsOptions? wOptions,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#write,
|
|
|
|
[],
|
|
|
|
{
|
2022-08-26 08:11:35 +00:00
|
|
|
#key: key,
|
|
|
|
#value: value,
|
|
|
|
#iOptions: iOptions,
|
|
|
|
#aOptions: aOptions,
|
|
|
|
#lOptions: lOptions,
|
|
|
|
#webOptions: webOptions,
|
|
|
|
#mOptions: mOptions,
|
2022-10-16 06:50:10 +00:00
|
|
|
#wOptions: wOptions,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue: _i3.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i3.Future<void>.value(),
|
|
|
|
) as _i3.Future<void>);
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i3.Future<String?> read({
|
|
|
|
required String? key,
|
|
|
|
_i2.IOSOptions? iOptions,
|
|
|
|
_i2.AndroidOptions? aOptions,
|
|
|
|
_i2.LinuxOptions? lOptions,
|
|
|
|
_i2.WebOptions? webOptions,
|
|
|
|
_i2.MacOsOptions? mOptions,
|
|
|
|
_i2.WindowsOptions? wOptions,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#read,
|
|
|
|
[],
|
|
|
|
{
|
2022-08-26 08:11:35 +00:00
|
|
|
#key: key,
|
|
|
|
#iOptions: iOptions,
|
|
|
|
#aOptions: aOptions,
|
|
|
|
#lOptions: lOptions,
|
|
|
|
#webOptions: webOptions,
|
|
|
|
#mOptions: mOptions,
|
2022-10-16 06:50:10 +00:00
|
|
|
#wOptions: wOptions,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue: _i3.Future<String?>.value(),
|
|
|
|
) as _i3.Future<String?>);
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i3.Future<bool> containsKey({
|
|
|
|
required String? key,
|
|
|
|
_i2.IOSOptions? iOptions,
|
|
|
|
_i2.AndroidOptions? aOptions,
|
|
|
|
_i2.LinuxOptions? lOptions,
|
|
|
|
_i2.WebOptions? webOptions,
|
|
|
|
_i2.MacOsOptions? mOptions,
|
|
|
|
_i2.WindowsOptions? wOptions,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#containsKey,
|
|
|
|
[],
|
|
|
|
{
|
2022-08-26 08:11:35 +00:00
|
|
|
#key: key,
|
|
|
|
#iOptions: iOptions,
|
|
|
|
#aOptions: aOptions,
|
|
|
|
#lOptions: lOptions,
|
|
|
|
#webOptions: webOptions,
|
|
|
|
#mOptions: mOptions,
|
2022-10-16 06:50:10 +00:00
|
|
|
#wOptions: wOptions,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue: _i3.Future<bool>.value(false),
|
|
|
|
) as _i3.Future<bool>);
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i3.Future<void> delete({
|
|
|
|
required String? key,
|
|
|
|
_i2.IOSOptions? iOptions,
|
|
|
|
_i2.AndroidOptions? aOptions,
|
|
|
|
_i2.LinuxOptions? lOptions,
|
|
|
|
_i2.WebOptions? webOptions,
|
|
|
|
_i2.MacOsOptions? mOptions,
|
|
|
|
_i2.WindowsOptions? wOptions,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#delete,
|
|
|
|
[],
|
|
|
|
{
|
2022-08-26 08:11:35 +00:00
|
|
|
#key: key,
|
|
|
|
#iOptions: iOptions,
|
|
|
|
#aOptions: aOptions,
|
|
|
|
#lOptions: lOptions,
|
|
|
|
#webOptions: webOptions,
|
|
|
|
#mOptions: mOptions,
|
2022-10-16 06:50:10 +00:00
|
|
|
#wOptions: wOptions,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue: _i3.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i3.Future<void>.value(),
|
|
|
|
) as _i3.Future<void>);
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i3.Future<Map<String, String>> readAll({
|
|
|
|
_i2.IOSOptions? iOptions,
|
|
|
|
_i2.AndroidOptions? aOptions,
|
|
|
|
_i2.LinuxOptions? lOptions,
|
|
|
|
_i2.WebOptions? webOptions,
|
|
|
|
_i2.MacOsOptions? mOptions,
|
|
|
|
_i2.WindowsOptions? wOptions,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#readAll,
|
|
|
|
[],
|
|
|
|
{
|
|
|
|
#iOptions: iOptions,
|
|
|
|
#aOptions: aOptions,
|
|
|
|
#lOptions: lOptions,
|
|
|
|
#webOptions: webOptions,
|
|
|
|
#mOptions: mOptions,
|
|
|
|
#wOptions: wOptions,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue: _i3.Future<Map<String, String>>.value(<String, String>{}),
|
|
|
|
) as _i3.Future<Map<String, String>>);
|
2024-09-16 22:09:34 +00:00
|
|
|
|
2022-08-26 08:11:35 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i3.Future<void> deleteAll({
|
|
|
|
_i2.IOSOptions? iOptions,
|
|
|
|
_i2.AndroidOptions? aOptions,
|
|
|
|
_i2.LinuxOptions? lOptions,
|
|
|
|
_i2.WebOptions? webOptions,
|
|
|
|
_i2.MacOsOptions? mOptions,
|
|
|
|
_i2.WindowsOptions? wOptions,
|
|
|
|
}) =>
|
2022-08-26 08:11:35 +00:00
|
|
|
(super.noSuchMethod(
|
2022-10-16 06:50:10 +00:00
|
|
|
Invocation.method(
|
|
|
|
#deleteAll,
|
|
|
|
[],
|
|
|
|
{
|
2022-08-26 08:11:35 +00:00
|
|
|
#iOptions: iOptions,
|
|
|
|
#aOptions: aOptions,
|
|
|
|
#lOptions: lOptions,
|
|
|
|
#webOptions: webOptions,
|
|
|
|
#mOptions: mOptions,
|
2022-10-16 06:50:10 +00:00
|
|
|
#wOptions: wOptions,
|
|
|
|
},
|
|
|
|
),
|
|
|
|
returnValue: _i3.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i3.Future<void>.value(),
|
|
|
|
) as _i3.Future<void>);
|
2022-08-26 08:11:35 +00:00
|
|
|
}
|