stack_wallet/test/widget_tests/wallet_card_test.mocks.dart

376 lines
11 KiB
Dart
Raw Normal View History

2023-07-27 21:08:43 +00:00
// Mocks generated by Mockito 5.4.2 from annotations
2022-10-13 18:40:19 +00:00
// in stackwallet/test/widget_tests/wallet_card_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
2023-11-16 16:59:09 +00:00
import 'dart:async' as _i8;
import 'dart:typed_data' as _i15;
import 'dart:ui' as _i12;
2022-10-13 18:40:19 +00:00
import 'package:mockito/mockito.dart' as _i1;
import 'package:stackwallet/db/isar/main_db.dart' as _i3;
2023-11-16 16:59:09 +00:00
import 'package:stackwallet/models/isar/stack_theme.dart' as _i14;
import 'package:stackwallet/networking/http.dart' as _i6;
2023-11-16 16:59:09 +00:00
import 'package:stackwallet/services/locale_service.dart' as _i11;
import 'package:stackwallet/services/node_service.dart' as _i2;
import 'package:stackwallet/services/wallets.dart' as _i7;
2023-11-16 16:59:09 +00:00
import 'package:stackwallet/themes/theme_service.dart' as _i13;
import 'package:stackwallet/utilities/flutter_secure_storage_interface.dart'
2023-11-16 16:59:09 +00:00
as _i9;
import 'package:stackwallet/utilities/prefs.dart' as _i10;
import 'package:stackwallet/wallets/crypto_currency/crypto_currency.dart'
as _i4;
import 'package:stackwallet/wallets/wallet/wallet.dart' as _i5;
2022-10-13 18:40:19 +00:00
// 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: 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
// ignore_for_file: subtype_of_sealed_class
2022-10-13 18:40:19 +00:00
class _FakeNodeService_0 extends _i1.SmartFake implements _i2.NodeService {
_FakeNodeService_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-10-13 18:40:19 +00:00
class _FakeMainDB_1 extends _i1.SmartFake implements _i3.MainDB {
_FakeMainDB_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-10-13 18:40:19 +00:00
class _FakeWallet_2<T extends _i4.CryptoCurrency> extends _i1.SmartFake
implements _i5.Wallet<T> {
_FakeWallet_2(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-10-13 18:40:19 +00:00
class _FakeHTTP_3 extends _i1.SmartFake implements _i6.HTTP {
_FakeHTTP_3(
2023-09-13 16:58:02 +00:00
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
2022-10-13 18:40:19 +00:00
/// A class which mocks [Wallets].
///
/// See the documentation for Mockito's code generation for more information.
class MockWallets extends _i1.Mock implements _i7.Wallets {
2022-10-13 18:40:19 +00:00
MockWallets() {
_i1.throwOnMissingStub(this);
}
@override
_i2.NodeService get nodeService => (super.noSuchMethod(
Invocation.getter(#nodeService),
returnValue: _FakeNodeService_0(
this,
Invocation.getter(#nodeService),
),
) as _i2.NodeService);
@override
set nodeService(_i2.NodeService? _nodeService) => super.noSuchMethod(
Invocation.setter(
#nodeService,
_nodeService,
),
returnValueForMissingStub: null,
);
@override
_i3.MainDB get mainDB => (super.noSuchMethod(
Invocation.getter(#mainDB),
returnValue: _FakeMainDB_1(
this,
Invocation.getter(#mainDB),
),
) as _i3.MainDB);
@override
set mainDB(_i3.MainDB? _mainDB) => super.noSuchMethod(
Invocation.setter(
#mainDB,
_mainDB,
),
returnValueForMissingStub: null,
);
@override
bool get hasWallets => (super.noSuchMethod(
Invocation.getter(#hasWallets),
returnValue: false,
) as bool);
2022-10-13 18:40:19 +00:00
@override
List<_i5.Wallet<_i4.CryptoCurrency>> get wallets => (super.noSuchMethod(
Invocation.getter(#wallets),
returnValue: <_i5.Wallet<_i4.CryptoCurrency>>[],
) as List<_i5.Wallet<_i4.CryptoCurrency>>);
@override
_i5.Wallet<_i4.CryptoCurrency> getWallet(String? walletId) =>
(super.noSuchMethod(
Invocation.method(
#getWallet,
[walletId],
),
returnValue: _FakeWallet_2<_i4.CryptoCurrency>(
this,
2022-10-13 18:40:19 +00:00
Invocation.method(
#getWallet,
[walletId],
),
),
) as _i5.Wallet<_i4.CryptoCurrency>);
@override
void addWallet(_i5.Wallet<_i4.CryptoCurrency>? wallet) => super.noSuchMethod(
Invocation.method(
#addWallet,
[wallet],
),
returnValueForMissingStub: null,
);
@override
2023-11-16 16:59:09 +00:00
_i8.Future<void> deleteWallet(
String? walletId,
2023-11-16 16:59:09 +00:00
_i9.SecureStorageInterface? secureStorage,
) =>
(super.noSuchMethod(
Invocation.method(
#deleteWallet,
[
walletId,
secureStorage,
],
),
2023-11-16 16:59:09 +00:00
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
2022-10-13 18:40:19 +00:00
@override
2023-11-16 16:59:09 +00:00
_i8.Future<void> load(
_i10.Prefs? prefs,
_i3.MainDB? mainDB,
) =>
(super.noSuchMethod(
Invocation.method(
#load,
[
prefs,
mainDB,
],
),
2023-11-16 16:59:09 +00:00
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
2022-10-13 18:40:19 +00:00
@override
2023-11-16 16:59:09 +00:00
_i8.Future<void> loadAfterStackRestore(
_i10.Prefs? prefs,
List<_i5.Wallet<_i4.CryptoCurrency>>? wallets,
) =>
2022-10-13 18:40:19 +00:00
(super.noSuchMethod(
Invocation.method(
#loadAfterStackRestore,
[
prefs,
wallets,
],
),
2023-11-16 16:59:09 +00:00
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
}
/// A class which mocks [LocaleService].
///
/// See the documentation for Mockito's code generation for more information.
2023-11-16 16:59:09 +00:00
class MockLocaleService extends _i1.Mock implements _i11.LocaleService {
MockLocaleService() {
_i1.throwOnMissingStub(this);
}
2022-10-13 18:40:19 +00:00
@override
String get locale => (super.noSuchMethod(
Invocation.getter(#locale),
returnValue: '',
) as String);
@override
bool get hasListeners => (super.noSuchMethod(
Invocation.getter(#hasListeners),
returnValue: false,
) as bool);
@override
2023-11-16 16:59:09 +00:00
_i8.Future<void> loadLocale({bool? notify = true}) => (super.noSuchMethod(
Invocation.method(
#loadLocale,
[],
{#notify: notify},
),
2023-11-16 16:59:09 +00:00
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
@override
2023-11-16 16:59:09 +00:00
void addListener(_i12.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#addListener,
[listener],
),
returnValueForMissingStub: null,
);
@override
2023-11-16 16:59:09 +00:00
void removeListener(_i12.VoidCallback? listener) => super.noSuchMethod(
Invocation.method(
#removeListener,
[listener],
),
returnValueForMissingStub: null,
);
@override
void dispose() => super.noSuchMethod(
Invocation.method(
#dispose,
[],
),
returnValueForMissingStub: null,
);
@override
void notifyListeners() => super.noSuchMethod(
Invocation.method(
#notifyListeners,
[],
),
returnValueForMissingStub: null,
);
2022-10-13 18:40:19 +00:00
}
2023-05-12 20:02:04 +00:00
/// A class which mocks [ThemeService].
///
/// See the documentation for Mockito's code generation for more information.
2023-11-16 16:59:09 +00:00
class MockThemeService extends _i1.Mock implements _i13.ThemeService {
2023-05-12 20:02:04 +00:00
MockThemeService() {
_i1.throwOnMissingStub(this);
}
2023-09-13 16:58:02 +00:00
@override
_i6.HTTP get client => (super.noSuchMethod(
2023-09-13 16:58:02 +00:00
Invocation.getter(#client),
returnValue: _FakeHTTP_3(
2023-09-13 16:58:02 +00:00
this,
Invocation.getter(#client),
),
) as _i6.HTTP);
2023-09-13 16:58:02 +00:00
@override
set client(_i6.HTTP? _client) => super.noSuchMethod(
2023-09-13 16:58:02 +00:00
Invocation.setter(
#client,
_client,
),
returnValueForMissingStub: null,
);
2023-05-12 20:02:04 +00:00
@override
_i3.MainDB get db => (super.noSuchMethod(
2023-05-12 20:02:04 +00:00
Invocation.getter(#db),
returnValue: _FakeMainDB_1(
2023-05-12 20:02:04 +00:00
this,
Invocation.getter(#db),
),
) as _i3.MainDB);
2023-05-12 20:02:04 +00:00
@override
2023-11-16 16:59:09 +00:00
List<_i14.StackTheme> get installedThemes => (super.noSuchMethod(
2023-05-12 20:02:04 +00:00
Invocation.getter(#installedThemes),
2023-11-16 16:59:09 +00:00
returnValue: <_i14.StackTheme>[],
) as List<_i14.StackTheme>);
2023-05-12 20:02:04 +00:00
@override
void init(_i3.MainDB? db) => super.noSuchMethod(
2023-05-12 20:02:04 +00:00
Invocation.method(
#init,
[db],
),
returnValueForMissingStub: null,
);
@override
2023-11-16 16:59:09 +00:00
_i8.Future<void> install({required _i15.Uint8List? themeArchiveData}) =>
2023-05-12 20:02:04 +00:00
(super.noSuchMethod(
Invocation.method(
#install,
[],
{#themeArchiveData: themeArchiveData},
),
2023-11-16 16:59:09 +00:00
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
2023-05-12 20:02:04 +00:00
@override
2023-11-16 16:59:09 +00:00
_i8.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
2023-05-12 20:02:04 +00:00
Invocation.method(
#remove,
[],
{#themeId: themeId},
),
2023-11-16 16:59:09 +00:00
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
2023-05-12 20:02:04 +00:00
@override
2023-11-16 16:59:09 +00:00
_i8.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
2023-05-29 16:30:41 +00:00
Invocation.method(
#checkDefaultThemesOnStartup,
[],
),
2023-11-16 16:59:09 +00:00
returnValue: _i8.Future<void>.value(),
returnValueForMissingStub: _i8.Future<void>.value(),
) as _i8.Future<void>);
2023-05-29 16:30:41 +00:00
@override
2023-11-16 16:59:09 +00:00
_i8.Future<bool> verifyInstalled({required String? themeId}) =>
2023-05-12 20:02:04 +00:00
(super.noSuchMethod(
Invocation.method(
#verifyInstalled,
[],
{#themeId: themeId},
),
2023-11-16 16:59:09 +00:00
returnValue: _i8.Future<bool>.value(false),
) as _i8.Future<bool>);
2023-05-12 20:02:04 +00:00
@override
2023-11-16 16:59:09 +00:00
_i8.Future<List<_i13.StackThemeMetaData>> fetchThemes() =>
2023-05-12 20:02:04 +00:00
(super.noSuchMethod(
Invocation.method(
#fetchThemes,
[],
),
2023-11-16 16:59:09 +00:00
returnValue: _i8.Future<List<_i13.StackThemeMetaData>>.value(
<_i13.StackThemeMetaData>[]),
) as _i8.Future<List<_i13.StackThemeMetaData>>);
2023-05-12 20:02:04 +00:00
@override
2023-11-16 16:59:09 +00:00
_i8.Future<_i15.Uint8List> fetchTheme(
{required _i13.StackThemeMetaData? themeMetaData}) =>
2023-05-12 20:02:04 +00:00
(super.noSuchMethod(
Invocation.method(
#fetchTheme,
[],
{#themeMetaData: themeMetaData},
),
2023-11-16 16:59:09 +00:00
returnValue: _i8.Future<_i15.Uint8List>.value(_i15.Uint8List(0)),
) as _i8.Future<_i15.Uint8List>);
2023-05-12 20:02:04 +00:00
@override
2023-11-16 16:59:09 +00:00
_i14.StackTheme? getTheme({required String? themeId}) =>
2023-05-12 20:02:04 +00:00
(super.noSuchMethod(Invocation.method(
#getTheme,
[],
{#themeId: themeId},
2023-11-16 16:59:09 +00:00
)) as _i14.StackTheme?);
2023-05-12 20:02:04 +00:00
}