stack_wallet/test/widget_tests/trade_card_test.mocks.dart
2024-05-27 18:01:41 -06:00

315 lines
9.3 KiB
Dart

// Mocks generated by Mockito 5.4.4 from annotations
// in stackwallet/test/widget_tests/trade_card_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i6;
import 'dart:typed_data' as _i7;
import 'package:mockito/mockito.dart' as _i1;
import 'package:mockito/src/dummies.dart' as _i8;
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;
// 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: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
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(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
/// A class which mocks [ThemeService].
///
/// See the documentation for Mockito's code generation for more information.
class MockThemeService extends _i1.Mock implements _i4.ThemeService {
MockThemeService() {
_i1.throwOnMissingStub(this);
}
@override
_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(
Invocation.getter(#db),
returnValue: _FakeMainDB_1(
this,
Invocation.getter(#db),
),
) as _i3.MainDB);
@override
List<_i5.StackTheme> get installedThemes => (super.noSuchMethod(
Invocation.getter(#installedThemes),
returnValue: <_i5.StackTheme>[],
) as List<_i5.StackTheme>);
@override
void init(_i3.MainDB? db) => super.noSuchMethod(
Invocation.method(
#init,
[db],
),
returnValueForMissingStub: null,
);
@override
_i6.Future<void> install({required _i7.Uint8List? themeArchiveData}) =>
(super.noSuchMethod(
Invocation.method(
#install,
[],
{#themeArchiveData: themeArchiveData},
),
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
_i6.Future<void> remove({required String? themeId}) => (super.noSuchMethod(
Invocation.method(
#remove,
[],
{#themeId: themeId},
),
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
_i6.Future<void> checkDefaultThemesOnStartup() => (super.noSuchMethod(
Invocation.method(
#checkDefaultThemesOnStartup,
[],
),
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
@override
_i6.Future<bool> verifyInstalled({required String? themeId}) =>
(super.noSuchMethod(
Invocation.method(
#verifyInstalled,
[],
{#themeId: themeId},
),
returnValue: _i6.Future<bool>.value(false),
) as _i6.Future<bool>);
@override
_i6.Future<List<_i4.StackThemeMetaData>> fetchThemes() => (super.noSuchMethod(
Invocation.method(
#fetchThemes,
[],
),
returnValue: _i6.Future<List<_i4.StackThemeMetaData>>.value(
<_i4.StackThemeMetaData>[]),
) as _i6.Future<List<_i4.StackThemeMetaData>>);
@override
_i6.Future<_i7.Uint8List> fetchTheme(
{required _i4.StackThemeMetaData? themeMetaData}) =>
(super.noSuchMethod(
Invocation.method(
#fetchTheme,
[],
{#themeMetaData: themeMetaData},
),
returnValue: _i6.Future<_i7.Uint8List>.value(_i7.Uint8List(0)),
) as _i6.Future<_i7.Uint8List>);
@override
_i5.StackTheme? getTheme({required String? themeId}) =>
(super.noSuchMethod(Invocation.method(
#getTheme,
[],
{#themeId: themeId},
)) as _i5.StackTheme?);
}
/// A class which mocks [IThemeAssets].
///
/// See the documentation for Mockito's code generation for more information.
class MockIThemeAssets extends _i1.Mock implements _i5.IThemeAssets {
MockIThemeAssets() {
_i1.throwOnMissingStub(this);
}
@override
String get bellNew => (super.noSuchMethod(
Invocation.getter(#bellNew),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#bellNew),
),
) as String);
@override
String get buy => (super.noSuchMethod(
Invocation.getter(#buy),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#buy),
),
) as String);
@override
String get exchange => (super.noSuchMethod(
Invocation.getter(#exchange),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#exchange),
),
) as String);
@override
String get personaIncognito => (super.noSuchMethod(
Invocation.getter(#personaIncognito),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#personaIncognito),
),
) as String);
@override
String get personaEasy => (super.noSuchMethod(
Invocation.getter(#personaEasy),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#personaEasy),
),
) as String);
@override
String get stack => (super.noSuchMethod(
Invocation.getter(#stack),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#stack),
),
) as String);
@override
String get stackIcon => (super.noSuchMethod(
Invocation.getter(#stackIcon),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#stackIcon),
),
) as String);
@override
String get receive => (super.noSuchMethod(
Invocation.getter(#receive),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#receive),
),
) as String);
@override
String get receivePending => (super.noSuchMethod(
Invocation.getter(#receivePending),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#receivePending),
),
) as String);
@override
String get receiveCancelled => (super.noSuchMethod(
Invocation.getter(#receiveCancelled),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#receiveCancelled),
),
) as String);
@override
String get send => (super.noSuchMethod(
Invocation.getter(#send),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#send),
),
) as String);
@override
String get sendPending => (super.noSuchMethod(
Invocation.getter(#sendPending),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#sendPending),
),
) as String);
@override
String get sendCancelled => (super.noSuchMethod(
Invocation.getter(#sendCancelled),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#sendCancelled),
),
) as String);
@override
String get themeSelector => (super.noSuchMethod(
Invocation.getter(#themeSelector),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#themeSelector),
),
) as String);
@override
String get themePreview => (super.noSuchMethod(
Invocation.getter(#themePreview),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#themePreview),
),
) as String);
@override
String get txExchange => (super.noSuchMethod(
Invocation.getter(#txExchange),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#txExchange),
),
) as String);
@override
String get txExchangePending => (super.noSuchMethod(
Invocation.getter(#txExchangePending),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#txExchangePending),
),
) as String);
@override
String get txExchangeFailed => (super.noSuchMethod(
Invocation.getter(#txExchangeFailed),
returnValue: _i8.dummyValue<String>(
this,
Invocation.getter(#txExchangeFailed),
),
) as String);
}