1// Mocks generated by Mockito 5.4.6 from annotations 2// in coves_flutter/test/services/vote_service_test.dart. 3// Do not manually edit this file. 4 5// ignore_for_file: no_leading_underscores_for_library_prefixes 6import 'dart:async' as _i6; 7 8import 'package:atproto_oauth_flutter/src/oauth/oauth_server_agent.dart' as _i2; 9import 'package:atproto_oauth_flutter/src/session/oauth_session.dart' as _i3; 10import 'package:http/http.dart' as _i4; 11import 'package:mockito/mockito.dart' as _i1; 12import 'package:mockito/src/dummies.dart' as _i5; 13 14// ignore_for_file: type=lint 15// ignore_for_file: avoid_redundant_argument_values 16// ignore_for_file: avoid_setters_without_getters 17// ignore_for_file: comment_references 18// ignore_for_file: deprecated_member_use 19// ignore_for_file: deprecated_member_use_from_same_package 20// ignore_for_file: implementation_imports 21// ignore_for_file: invalid_use_of_visible_for_testing_member 22// ignore_for_file: must_be_immutable 23// ignore_for_file: prefer_const_constructors 24// ignore_for_file: unnecessary_parenthesis 25// ignore_for_file: camel_case_types 26// ignore_for_file: subtype_of_sealed_class 27// ignore_for_file: invalid_use_of_internal_member 28 29class _FakeOAuthServerAgent_0 extends _i1.SmartFake 30 implements _i2.OAuthServerAgent { 31 _FakeOAuthServerAgent_0(Object parent, Invocation parentInvocation) 32 : super(parent, parentInvocation); 33} 34 35class _FakeSessionGetterInterface_1 extends _i1.SmartFake 36 implements _i3.SessionGetterInterface { 37 _FakeSessionGetterInterface_1(Object parent, Invocation parentInvocation) 38 : super(parent, parentInvocation); 39} 40 41class _FakeTokenInfo_2 extends _i1.SmartFake implements _i3.TokenInfo { 42 _FakeTokenInfo_2(Object parent, Invocation parentInvocation) 43 : super(parent, parentInvocation); 44} 45 46class _FakeResponse_3 extends _i1.SmartFake implements _i4.Response { 47 _FakeResponse_3(Object parent, Invocation parentInvocation) 48 : super(parent, parentInvocation); 49} 50 51/// A class which mocks [OAuthSession]. 52/// 53/// See the documentation for Mockito's code generation for more information. 54class MockOAuthSession extends _i1.Mock implements _i3.OAuthSession { 55 MockOAuthSession() { 56 _i1.throwOnMissingStub(this); 57 } 58 59 @override 60 _i2.OAuthServerAgent get server => 61 (super.noSuchMethod( 62 Invocation.getter(#server), 63 returnValue: _FakeOAuthServerAgent_0( 64 this, 65 Invocation.getter(#server), 66 ), 67 ) 68 as _i2.OAuthServerAgent); 69 70 @override 71 String get sub => 72 (super.noSuchMethod( 73 Invocation.getter(#sub), 74 returnValue: _i5.dummyValue<String>(this, Invocation.getter(#sub)), 75 ) 76 as String); 77 78 @override 79 _i3.SessionGetterInterface get sessionGetter => 80 (super.noSuchMethod( 81 Invocation.getter(#sessionGetter), 82 returnValue: _FakeSessionGetterInterface_1( 83 this, 84 Invocation.getter(#sessionGetter), 85 ), 86 ) 87 as _i3.SessionGetterInterface); 88 89 @override 90 String get did => 91 (super.noSuchMethod( 92 Invocation.getter(#did), 93 returnValue: _i5.dummyValue<String>(this, Invocation.getter(#did)), 94 ) 95 as String); 96 97 @override 98 Map<String, dynamic> get serverMetadata => 99 (super.noSuchMethod( 100 Invocation.getter(#serverMetadata), 101 returnValue: <String, dynamic>{}, 102 ) 103 as Map<String, dynamic>); 104 105 @override 106 _i6.Future<_i3.TokenInfo> getTokenInfo([dynamic refresh = 'auto']) => 107 (super.noSuchMethod( 108 Invocation.method(#getTokenInfo, [refresh]), 109 returnValue: _i6.Future<_i3.TokenInfo>.value( 110 _FakeTokenInfo_2( 111 this, 112 Invocation.method(#getTokenInfo, [refresh]), 113 ), 114 ), 115 ) 116 as _i6.Future<_i3.TokenInfo>); 117 118 @override 119 _i6.Future<void> signOut() => 120 (super.noSuchMethod( 121 Invocation.method(#signOut, []), 122 returnValue: _i6.Future<void>.value(), 123 returnValueForMissingStub: _i6.Future<void>.value(), 124 ) 125 as _i6.Future<void>); 126 127 @override 128 _i6.Future<_i4.Response> fetchHandler( 129 String? pathname, { 130 String? method = 'GET', 131 Map<String, String>? headers, 132 dynamic body, 133 }) => 134 (super.noSuchMethod( 135 Invocation.method( 136 #fetchHandler, 137 [pathname], 138 {#method: method, #headers: headers, #body: body}, 139 ), 140 returnValue: _i6.Future<_i4.Response>.value( 141 _FakeResponse_3( 142 this, 143 Invocation.method( 144 #fetchHandler, 145 [pathname], 146 {#method: method, #headers: headers, #body: body}, 147 ), 148 ), 149 ), 150 ) 151 as _i6.Future<_i4.Response>); 152 153 @override 154 void dispose() => super.noSuchMethod( 155 Invocation.method(#dispose, []), 156 returnValueForMissingStub: null, 157 ); 158}