// Mocks generated by Mockito 5.4.6 from annotations // in sharedinbox/test/unit/undo_service_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes import 'dart:async' as _i4; import 'package:mockito/mockito.dart' as _i1; import 'package:mockito/src/dummies.dart' as _i5; import 'package:sharedinbox/core/filter/filter_expression.dart' as _i6; import 'package:sharedinbox/core/models/email.dart' as _i2; import 'package:sharedinbox/core/models/undo_action.dart' as _i8; import 'package:sharedinbox/core/repositories/email_repository.dart' as _i3; import 'package:sharedinbox/core/repositories/undo_repository.dart' as _i7; // 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: must_be_immutable // ignore_for_file: prefer_const_constructors // ignore_for_file: unnecessary_parenthesis // ignore_for_file: camel_case_types // ignore_for_file: subtype_of_sealed_class // ignore_for_file: invalid_use_of_internal_member class _FakeEmailBody_0 extends _i1.SmartFake implements _i2.EmailBody { _FakeEmailBody_0( Object parent, Invocation parentInvocation, ) : super( parent, parentInvocation, ); } class _FakeSyncEmailsResult_1 extends _i1.SmartFake implements _i2.SyncEmailsResult { _FakeSyncEmailsResult_1( Object parent, Invocation parentInvocation, ) : super( parent, parentInvocation, ); } class _FakeReliabilityResult_2 extends _i1.SmartFake implements _i2.ReliabilityResult { _FakeReliabilityResult_2( Object parent, Invocation parentInvocation, ) : super( parent, parentInvocation, ); } /// A class which mocks [EmailRepository]. /// /// See the documentation for Mockito's code generation for more information. class MockEmailRepository extends _i1.Mock implements _i3.EmailRepository { MockEmailRepository() { _i1.throwOnMissingStub(this); } @override _i4.Stream get onChangesQueued => (super.noSuchMethod( Invocation.getter(#onChangesQueued), returnValue: _i4.Stream.empty(), ) as _i4.Stream); @override _i4.Stream> observeEmails( String? accountId, String? mailboxPath, { int? limit = 50, }) => (super.noSuchMethod( Invocation.method( #observeEmails, [ accountId, mailboxPath, ], {#limit: limit}, ), returnValue: _i4.Stream>.empty(), ) as _i4.Stream>); @override _i4.Stream> observeThreads( String? accountId, String? mailboxPath, { int? limit = 50, }) => (super.noSuchMethod( Invocation.method( #observeThreads, [ accountId, mailboxPath, ], {#limit: limit}, ), returnValue: _i4.Stream>.empty(), ) as _i4.Stream>); @override _i4.Stream> observeAllInboxThreads({int? limit = 50}) => (super.noSuchMethod( Invocation.method( #observeAllInboxThreads, [], {#limit: limit}, ), returnValue: _i4.Stream>.empty(), ) as _i4.Stream>); @override _i4.Stream> observeEmailsInThread( String? accountId, String? mailboxPath, String? threadId, ) => (super.noSuchMethod( Invocation.method( #observeEmailsInThread, [ accountId, mailboxPath, threadId, ], ), returnValue: _i4.Stream>.empty(), ) as _i4.Stream>); @override _i4.Future<_i2.Email?> getEmail(String? emailId) => (super.noSuchMethod( Invocation.method( #getEmail, [emailId], ), returnValue: _i4.Future<_i2.Email?>.value(), ) as _i4.Future<_i2.Email?>); @override _i4.Future<_i2.EmailBody> getEmailBody(String? emailId) => (super.noSuchMethod( Invocation.method( #getEmailBody, [emailId], ), returnValue: _i4.Future<_i2.EmailBody>.value(_FakeEmailBody_0( this, Invocation.method( #getEmailBody, [emailId], ), )), ) as _i4.Future<_i2.EmailBody>); @override _i4.Future<_i2.SyncEmailsResult> syncEmails( String? accountId, String? mailboxPath, ) => (super.noSuchMethod( Invocation.method( #syncEmails, [ accountId, mailboxPath, ], ), returnValue: _i4.Future<_i2.SyncEmailsResult>.value(_FakeSyncEmailsResult_1( this, Invocation.method( #syncEmails, [ accountId, mailboxPath, ], ), )), ) as _i4.Future<_i2.SyncEmailsResult>); @override _i4.Future setFlag( String? emailId, { bool? seen, bool? flagged, }) => (super.noSuchMethod( Invocation.method( #setFlag, [emailId], { #seen: seen, #flagged: flagged, }, ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future markAllAsRead( String? accountId, String? mailboxPath, ) => (super.noSuchMethod( Invocation.method( #markAllAsRead, [ accountId, mailboxPath, ], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future moveEmail( String? emailId, String? destMailboxPath, ) => (super.noSuchMethod( Invocation.method( #moveEmail, [ emailId, destMailboxPath, ], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future deleteEmail(String? emailId) => (super.noSuchMethod( Invocation.method( #deleteEmail, [emailId], ), returnValue: _i4.Future.value(), ) as _i4.Future); @override _i4.Future sendEmail( String? accountId, _i2.EmailDraft? draft, ) => (super.noSuchMethod( Invocation.method( #sendEmail, [ accountId, draft, ], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future downloadAttachment( String? emailId, _i2.EmailAttachment? attachment, ) => (super.noSuchMethod( Invocation.method( #downloadAttachment, [ emailId, attachment, ], ), returnValue: _i4.Future.value(_i5.dummyValue( this, Invocation.method( #downloadAttachment, [ emailId, attachment, ], ), )), ) as _i4.Future); @override _i4.Future fetchRawRfc822(String? emailId) => (super.noSuchMethod( Invocation.method( #fetchRawRfc822, [emailId], ), returnValue: _i4.Future.value(_i5.dummyValue( this, Invocation.method( #fetchRawRfc822, [emailId], ), )), ) as _i4.Future); @override _i4.Future> searchEmails( String? accountId, String? mailboxPath, String? query, ) => (super.noSuchMethod( Invocation.method( #searchEmails, [ accountId, mailboxPath, query, ], ), returnValue: _i4.Future>.value(<_i2.Email>[]), ) as _i4.Future>); @override _i4.Future> searchEmailsGlobal( String? accountId, String? query, ) => (super.noSuchMethod( Invocation.method( #searchEmailsGlobal, [ accountId, query, ], ), returnValue: _i4.Future>.value(<_i2.Email>[]), ) as _i4.Future>); @override _i4.Future> searchEmailsStructured( String? accountId, _i6.FilterGroup? filter, ) => (super.noSuchMethod( Invocation.method( #searchEmailsStructured, [ accountId, filter, ], ), returnValue: _i4.Future>.value(<_i2.Email>[]), ) as _i4.Future>); @override _i4.Future> getEmailsByAddress( String? accountId, String? address, ) => (super.noSuchMethod( Invocation.method( #getEmailsByAddress, [ accountId, address, ], ), returnValue: _i4.Future>.value(<_i2.Email>[]), ) as _i4.Future>); @override _i4.Future> searchAddresses( String? accountId, String? query, { int? limit = 10, }) => (super.noSuchMethod( Invocation.method( #searchAddresses, [ accountId, query, ], {#limit: limit}, ), returnValue: _i4.Future>.value(<_i2.EmailAddress>[]), ) as _i4.Future>); @override _i4.Future flushPendingChanges( String? accountId, String? password, ) => (super.noSuchMethod( Invocation.method( #flushPendingChanges, [ accountId, password, ], ), returnValue: _i4.Future.value(0), ) as _i4.Future); @override _i4.Stream> observeFailedMutations( String? accountId) => (super.noSuchMethod( Invocation.method( #observeFailedMutations, [accountId], ), returnValue: _i4.Stream>.empty(), ) as _i4.Stream>); @override _i4.Future discardMutation(int? id) => (super.noSuchMethod( Invocation.method( #discardMutation, [id], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future retryMutation(int? id) => (super.noSuchMethod( Invocation.method( #retryMutation, [id], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future cancelPendingChange( String? emailId, String? changeType, ) => (super.noSuchMethod( Invocation.method( #cancelPendingChange, [ emailId, changeType, ], ), returnValue: _i4.Future.value(false), ) as _i4.Future); @override _i4.Future snoozeEmail( String? emailId, DateTime? until, ) => (super.noSuchMethod( Invocation.method( #snoozeEmail, [ emailId, until, ], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future wakeUpEmails(String? accountId) => (super.noSuchMethod( Invocation.method( #wakeUpEmails, [accountId], ), returnValue: _i4.Future.value(0), ) as _i4.Future); @override _i4.Future restoreEmails(List<_i2.Email>? emails) => (super.noSuchMethod( Invocation.method( #restoreEmails, [emails], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future<_i2.Email?> findEmailByMessageId( String? accountId, String? messageId, ) => (super.noSuchMethod( Invocation.method( #findEmailByMessageId, [ accountId, messageId, ], ), returnValue: _i4.Future<_i2.Email?>.value(), ) as _i4.Future<_i2.Email?>); @override _i4.Future applySieveRules(String? accountId) => (super.noSuchMethod( Invocation.method( #applySieveRules, [accountId], ), returnValue: _i4.Future.value(0), ) as _i4.Future); @override _i4.Stream watchJmapPush( String? accountId, String? password, ) => (super.noSuchMethod( Invocation.method( #watchJmapPush, [ accountId, password, ], ), returnValue: _i4.Stream.empty(), ) as _i4.Stream); @override _i4.Future<_i2.ReliabilityResult> verifySyncReliability( String? accountId, String? mailboxPath, ) => (super.noSuchMethod( Invocation.method( #verifySyncReliability, [ accountId, mailboxPath, ], ), returnValue: _i4.Future<_i2.ReliabilityResult>.value(_FakeReliabilityResult_2( this, Invocation.method( #verifySyncReliability, [ accountId, mailboxPath, ], ), )), ) as _i4.Future<_i2.ReliabilityResult>); @override _i4.Future clearForResync(String? accountId) => (super.noSuchMethod( Invocation.method( #clearForResync, [accountId], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); } /// A class which mocks [UndoRepository]. /// /// See the documentation for Mockito's code generation for more information. class MockUndoRepository extends _i1.Mock implements _i7.UndoRepository { MockUndoRepository() { _i1.throwOnMissingStub(this); } @override _i4.Future saveAction(_i8.UndoAction? action) => (super.noSuchMethod( Invocation.method( #saveAction, [action], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future deleteAction(String? id) => (super.noSuchMethod( Invocation.method( #deleteAction, [id], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); @override _i4.Future> getHistory({int? limit = 10}) => (super.noSuchMethod( Invocation.method( #getHistory, [], {#limit: limit}, ), returnValue: _i4.Future>.value(<_i8.UndoAction>[]), ) as _i4.Future>); @override _i4.Future clearHistory() => (super.noSuchMethod( Invocation.method( #clearHistory, [], ), returnValue: _i4.Future.value(), returnValueForMissingStub: _i4.Future.value(), ) as _i4.Future); }