stack_wallet/test/notifications/notification_card_test.mocks.dart

161 lines
4.9 KiB
Dart
Raw Normal View History

2024-05-27 23:56:22 +00:00
// Mocks generated by Mockito 5.4.4 from annotations
2023-05-14 03:32:49 +00:00
// in stackwallet/test/notifications/notification_card_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
2023-09-13 16:58:02 +00:00
import 'dart:async' as _i6;
import 'dart:typed_data' as _i7;
2023-05-14 03:32:49 +00:00
import 'package:mockito/mockito.dart' as _i1;
2023-09-13 16:58:02 +00:00
import 'package:stackwallet/db/isar/main_db.dart' as _i3;
import 'package:stackwallet/models/isar/stack_theme.dart' as _i5;
import 'package:stackwallet/networking/http.dart' as _i2;
import 'package:stackwallet/themes/theme_service.dart' as _i4;
2023-05-14 03:32:49 +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
2024-05-27 23:56:22 +00:00
// ignore_for_file: deprecated_member_use
// ignore_for_file: deprecated_member_use_from_same_package
2023-05-14 03:32:49 +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
// ignore_for_file: subtype_of_sealed_class
2023-09-13 16:58:02 +00:00
class _FakeHTTP_0 extends _i1.SmartFake implements _i2.HTTP {
_FakeHTTP_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeMainDB_1 extends _i1.SmartFake implements _i3.MainDB {
_FakeMainDB_1(
2023-05-14 03:32:49 +00:00
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
/// A class which mocks [ThemeService].
///
/// See the documentation for Mockito's code generation for more information.
2023-09-13 16:58:02 +00:00
class MockThemeService extends _i1.Mock implements _i4.ThemeService {
2023-05-14 03:32:49 +00:00
MockThemeService() {
_i1.throwOnMissingStub(this);
}
@override
2023-09-13 16:58:02 +00:00
_i2.HTTP get client => (super.noSuchMethod(
Invocation.getter(#client),
returnValue: _FakeHTTP_0(
this,
Invocation.getter(#client),
),
) as _i2.HTTP);
@override
set client(_i2.HTTP? _client) => super.noSuchMethod(
Invocation.setter(
#client,
_client,
),
returnValueForMissingStub: null,
);
@override
_i3.MainDB get db => (super.noSuchMethod(
2023-05-14 03:32:49 +00:00
Invocation.getter(#db),
2023-09-13 16:58:02 +00:00
returnValue: _FakeMainDB_1(
2023-05-14 03:32:49 +00:00
this,
Invocation.getter(#db),
),
2023-09-13 16:58:02 +00:00
) as _i3.MainDB);
2023-05-14 03:32:49 +00:00
@override
2023-09-13 16:58:02 +00:00
List<_i5.StackTheme> get installedThemes => (super.noSuchMethod(
2023-05-14 03:32:49 +00:00
Invocation.getter(#installedThemes),
2023-09-13 16:58:02 +00:00
returnValue: <_i5.StackTheme>[],
) as List<_i5.StackTheme>);
2023-05-14 03:32:49 +00:00
@override
2023-09-13 16:58:02 +00:00
void init(_i3.MainDB? db) => super.noSuchMethod(
2023-05-14 03:32:49 +00:00
Invocation.method(
#init,
[db],
),
returnValueForMissingStub: null,
);
@override
2023-09-13 16:58:02 +00:00
_i6.Future<void> install({required _i7.Uint8List? themeArchiveData}) =>
2023-05-14 03:32:49 +00:00
(super.noSuchMethod(
Invocation.method(
#install,
[],
{#themeArchiveData: themeArchiveData},
),
2023-09-13 16:58:02 +00:00
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
2023-05-14 03:32:49 +00:00
@override
2023-09-13 16:58:02 +00:00
_i6.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
2023-05-14 03:32:49 +00:00
Invocation.method(
#remove,
[],
{#themeId: themeId},
),
2023-09-13 16:58:02 +00:00
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
2023-05-14 03:32:49 +00:00
@override
2023-09-13 16:58:02 +00:00
_i6.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
2023-05-29 16:30:41 +00:00
Invocation.method(
#checkDefaultThemesOnStartup,
[],
),
2023-09-13 16:58:02 +00:00
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
2023-05-29 16:30:41 +00:00
@override
2023-09-13 16:58:02 +00:00
_i6.Future<bool> verifyInstalled({required String? themeId}) =>
2023-05-14 03:32:49 +00:00
(super.noSuchMethod(
Invocation.method(
#verifyInstalled,
[],
{#themeId: themeId},
),
2023-09-13 16:58:02 +00:00
returnValue: _i6.Future<bool>.value(false),
) as _i6.Future<bool>);
2023-05-14 03:32:49 +00:00
@override
2023-09-13 16:58:02 +00:00
_i6.Future<List<_i4.StackThemeMetaData>> fetchThemes() => (super.noSuchMethod(
2023-05-14 03:32:49 +00:00
Invocation.method(
#fetchThemes,
[],
),
2023-09-13 16:58:02 +00:00
returnValue: _i6.Future<List<_i4.StackThemeMetaData>>.value(
<_i4.StackThemeMetaData>[]),
) as _i6.Future<List<_i4.StackThemeMetaData>>);
2023-05-14 03:32:49 +00:00
@override
2023-09-13 16:58:02 +00:00
_i6.Future<_i7.Uint8List> fetchTheme(
{required _i4.StackThemeMetaData? themeMetaData}) =>
2023-05-14 03:32:49 +00:00
(super.noSuchMethod(
Invocation.method(
#fetchTheme,
[],
{#themeMetaData: themeMetaData},
),
2023-09-13 16:58:02 +00:00
returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)),
) as _i6.Future<_i7.Uint8List>);
2023-05-14 03:32:49 +00:00
@override
2023-09-13 16:58:02 +00:00
_i5.StackTheme? getTheme({required String? themeId}) =>
2023-05-14 03:32:49 +00:00
(super.noSuchMethod(Invocation.method(
#getTheme,
[],
{#themeId: themeId},
2023-09-13 16:58:02 +00:00
)) as _i5.StackTheme?);
2023-05-14 03:32:49 +00:00
}