2022-10-16 06:50:10 +00:00
|
|
|
// Mocks generated by Mockito 5.3.2 from annotations
|
2022-10-07 08:34:30 +00:00
|
|
|
// in stackwallet/test/widget_tests/address_book_card_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-10-07 08:34:30 +00:00
|
|
|
import 'dart:async' as _i4;
|
|
|
|
import 'dart:ui' as _i5;
|
|
|
|
|
|
|
|
import 'package:mockito/mockito.dart' as _i1;
|
|
|
|
import 'package:stackwallet/models/contact.dart' as _i2;
|
|
|
|
import 'package:stackwallet/services/address_book_service.dart' as _i3;
|
|
|
|
|
|
|
|
// 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
|
2022-10-16 06:50:10 +00:00
|
|
|
// ignore_for_file: subtype_of_sealed_class
|
2022-10-07 08:34:30 +00:00
|
|
|
|
2022-10-16 06:50:10 +00:00
|
|
|
class _FakeContact_0 extends _i1.SmartFake implements _i2.Contact {
|
|
|
|
_FakeContact_0(
|
|
|
|
Object parent,
|
|
|
|
Invocation parentInvocation,
|
|
|
|
) : super(
|
|
|
|
parent,
|
|
|
|
parentInvocation,
|
|
|
|
);
|
|
|
|
}
|
2022-10-07 08:34:30 +00:00
|
|
|
|
|
|
|
/// A class which mocks [AddressBookService].
|
|
|
|
///
|
|
|
|
/// See the documentation for Mockito's code generation for more information.
|
|
|
|
class MockAddressBookService extends _i1.Mock
|
|
|
|
implements _i3.AddressBookService {
|
|
|
|
MockAddressBookService() {
|
|
|
|
_i1.throwOnMissingStub(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
List<_i2.Contact> get contacts => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#contacts),
|
|
|
|
returnValue: <_i2.Contact>[],
|
|
|
|
) as List<_i2.Contact>);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i4.Future<List<_i2.Contact>> get addressBookEntries => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#addressBookEntries),
|
|
|
|
returnValue: _i4.Future<List<_i2.Contact>>.value(<_i2.Contact>[]),
|
|
|
|
) as _i4.Future<List<_i2.Contact>>);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
bool get hasListeners => (super.noSuchMethod(
|
|
|
|
Invocation.getter(#hasListeners),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i2.Contact getContactById(String? id) => (super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#getContactById,
|
|
|
|
[id],
|
|
|
|
),
|
|
|
|
returnValue: _FakeContact_0(
|
|
|
|
this,
|
|
|
|
Invocation.method(
|
|
|
|
#getContactById,
|
|
|
|
[id],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
) as _i2.Contact);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i4.Future<List<_i2.Contact>> search(String? text) => (super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#search,
|
|
|
|
[text],
|
|
|
|
),
|
|
|
|
returnValue: _i4.Future<List<_i2.Contact>>.value(<_i2.Contact>[]),
|
|
|
|
) as _i4.Future<List<_i2.Contact>>);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
bool matches(
|
|
|
|
String? term,
|
|
|
|
_i2.Contact? contact,
|
|
|
|
) =>
|
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#matches,
|
|
|
|
[
|
|
|
|
term,
|
|
|
|
contact,
|
|
|
|
],
|
|
|
|
),
|
|
|
|
returnValue: false,
|
|
|
|
) as bool);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i4.Future<bool> addContact(_i2.Contact? contact) => (super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#addContact,
|
|
|
|
[contact],
|
|
|
|
),
|
|
|
|
returnValue: _i4.Future<bool>.value(false),
|
|
|
|
) as _i4.Future<bool>);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
|
|
|
_i4.Future<bool> editContact(_i2.Contact? editedContact) =>
|
2022-10-16 06:50:10 +00:00
|
|
|
(super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#editContact,
|
|
|
|
[editedContact],
|
|
|
|
),
|
|
|
|
returnValue: _i4.Future<bool>.value(false),
|
|
|
|
) as _i4.Future<bool>);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
_i4.Future<void> removeContact(String? id) => (super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#removeContact,
|
|
|
|
[id],
|
|
|
|
),
|
|
|
|
returnValue: _i4.Future<void>.value(),
|
|
|
|
returnValueForMissingStub: _i4.Future<void>.value(),
|
|
|
|
) as _i4.Future<void>);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
void addListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#addListener,
|
|
|
|
[listener],
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#removeListener,
|
|
|
|
[listener],
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
void dispose() => super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#dispose,
|
|
|
|
[],
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
2022-10-07 08:34:30 +00:00
|
|
|
@override
|
2022-10-16 06:50:10 +00:00
|
|
|
void notifyListeners() => super.noSuchMethod(
|
|
|
|
Invocation.method(
|
|
|
|
#notifyListeners,
|
|
|
|
[],
|
|
|
|
),
|
|
|
|
returnValueForMissingStub: null,
|
|
|
|
);
|
2022-10-07 08:34:30 +00:00
|
|
|
}
|