Line data Source code
1 : // Mocks generated by Mockito 5.0.16 from annotations
2 : // in redfire_test/src/test-doubles/auth/mocks/auth_test_doubles.dart.
3 : // Do not manually edit this file.
4 :
5 : import 'dart:async' as _i5;
6 :
7 : import 'package:google_sign_in/google_sign_in.dart' as _i2;
8 : import 'package:google_sign_in_platform_interface/google_sign_in_platform_interface.dart'
9 : as _i4;
10 : import 'package:mockito/mockito.dart' as _i1;
11 : import 'package:redfire/src/platform/plugins/wrappers/apple_signin_wrapper.dart'
12 : as _i7;
13 : import 'package:sign_in_with_apple/sign_in_with_apple.dart' as _i6;
14 : import 'package:sign_in_with_apple_platform_interface/sign_in_with_apple_platform_interface.dart'
15 : as _i3;
16 :
17 : // ignore_for_file: avoid_redundant_argument_values
18 : // ignore_for_file: avoid_setters_without_getters
19 : // ignore_for_file: comment_references
20 : // ignore_for_file: implementation_imports
21 : // ignore_for_file: invalid_use_of_visible_for_testing_member
22 : // ignore_for_file: prefer_const_constructors
23 : // ignore_for_file: unnecessary_parenthesis
24 : // ignore_for_file: camel_case_types
25 :
26 : class _FakeGoogleSignInAuthentication_0 extends _i1.Fake
27 : implements _i2.GoogleSignInAuthentication {}
28 :
29 : class _FakeAuthorizationCredentialAppleID_1 extends _i1.Fake
30 : implements _i3.AuthorizationCredentialAppleID {}
31 :
32 : /// A class which mocks [GoogleSignIn].
33 : ///
34 : /// See the documentation for Mockito's code generation for more information.
35 : class MockGoogleSignIn extends _i1.Mock implements _i2.GoogleSignIn {
36 0 : MockGoogleSignIn() {
37 0 : _i1.throwOnMissingStub(this);
38 : }
39 :
40 0 : @override
41 : _i4.SignInOption get signInOption =>
42 0 : (super.noSuchMethod(Invocation.getter(#signInOption),
43 : returnValue: _i4.SignInOption.standard) as _i4.SignInOption);
44 0 : @override
45 : List<String> get scopes =>
46 0 : (super.noSuchMethod(Invocation.getter(#scopes), returnValue: <String>[])
47 : as List<String>);
48 0 : @override
49 : _i5.Stream<_i2.GoogleSignInAccount?> get onCurrentUserChanged =>
50 0 : (super.noSuchMethod(Invocation.getter(#onCurrentUserChanged),
51 0 : returnValue: Stream<_i2.GoogleSignInAccount?>.empty())
52 : as _i5.Stream<_i2.GoogleSignInAccount?>);
53 0 : @override
54 : _i5.Future<_i2.GoogleSignInAccount?> signInSilently(
55 : {bool? suppressErrors = true, bool? reAuthenticate = false}) =>
56 0 : (super.noSuchMethod(
57 0 : Invocation.method(#signInSilently, [], {
58 : #suppressErrors: suppressErrors,
59 : #reAuthenticate: reAuthenticate
60 : }),
61 0 : returnValue: Future<_i2.GoogleSignInAccount?>.value())
62 : as _i5.Future<_i2.GoogleSignInAccount?>);
63 0 : @override
64 : _i5.Future<bool> isSignedIn() =>
65 0 : (super.noSuchMethod(Invocation.method(#isSignedIn, []),
66 0 : returnValue: Future<bool>.value(false)) as _i5.Future<bool>);
67 0 : @override
68 : _i5.Future<_i2.GoogleSignInAccount?> signIn() =>
69 0 : (super.noSuchMethod(Invocation.method(#signIn, []),
70 0 : returnValue: Future<_i2.GoogleSignInAccount?>.value())
71 : as _i5.Future<_i2.GoogleSignInAccount?>);
72 0 : @override
73 : _i5.Future<_i2.GoogleSignInAccount?> signOut() =>
74 0 : (super.noSuchMethod(Invocation.method(#signOut, []),
75 0 : returnValue: Future<_i2.GoogleSignInAccount?>.value())
76 : as _i5.Future<_i2.GoogleSignInAccount?>);
77 0 : @override
78 : _i5.Future<_i2.GoogleSignInAccount?> disconnect() =>
79 0 : (super.noSuchMethod(Invocation.method(#disconnect, []),
80 0 : returnValue: Future<_i2.GoogleSignInAccount?>.value())
81 : as _i5.Future<_i2.GoogleSignInAccount?>);
82 0 : @override
83 : _i5.Future<bool> requestScopes(List<String>? scopes) =>
84 0 : (super.noSuchMethod(Invocation.method(#requestScopes, [scopes]),
85 0 : returnValue: Future<bool>.value(false)) as _i5.Future<bool>);
86 0 : @override
87 0 : String toString() => super.toString();
88 : }
89 :
90 : /// A class which mocks [GoogleSignInAccount].
91 : ///
92 : /// See the documentation for Mockito's code generation for more information.
93 : class MockGoogleSignInAccount extends _i1.Mock
94 : implements _i2.GoogleSignInAccount {
95 0 : MockGoogleSignInAccount() {
96 0 : _i1.throwOnMissingStub(this);
97 : }
98 :
99 0 : @override
100 : String get email =>
101 0 : (super.noSuchMethod(Invocation.getter(#email), returnValue: '')
102 : as String);
103 0 : @override
104 : String get id =>
105 0 : (super.noSuchMethod(Invocation.getter(#id), returnValue: '') as String);
106 0 : @override
107 : _i5.Future<_i2.GoogleSignInAuthentication> get authentication =>
108 0 : (super.noSuchMethod(Invocation.getter(#authentication),
109 0 : returnValue: Future<_i2.GoogleSignInAuthentication>.value(
110 0 : _FakeGoogleSignInAuthentication_0()))
111 : as _i5.Future<_i2.GoogleSignInAuthentication>);
112 0 : @override
113 0 : _i5.Future<Map<String, String>> get authHeaders => (super.noSuchMethod(
114 0 : Invocation.getter(#authHeaders),
115 0 : returnValue: Future<Map<String, String>>.value(<String, String>{}))
116 : as _i5.Future<Map<String, String>>);
117 0 : @override
118 : _i5.Future<void> clearAuthCache() =>
119 0 : (super.noSuchMethod(Invocation.method(#clearAuthCache, []),
120 0 : returnValue: Future<void>.value(),
121 0 : returnValueForMissingStub: Future<void>.value()) as _i5.Future<void>);
122 0 : @override
123 0 : String toString() => super.toString();
124 : }
125 :
126 : /// A class which mocks [SignInWithApple].
127 : ///
128 : /// See the documentation for Mockito's code generation for more information.
129 : class MockSignInWithApple extends _i1.Mock implements _i6.SignInWithApple {
130 0 : MockSignInWithApple() {
131 0 : _i1.throwOnMissingStub(this);
132 : }
133 :
134 0 : @override
135 0 : String toString() => super.toString();
136 : }
137 :
138 : /// A class which mocks [SignInWithAppleWrapper].
139 : ///
140 : /// See the documentation for Mockito's code generation for more information.
141 : class MockSignInWithAppleWrapper extends _i1.Mock
142 : implements _i7.SignInWithAppleWrapper {
143 0 : MockSignInWithAppleWrapper() {
144 0 : _i1.throwOnMissingStub(this);
145 : }
146 :
147 0 : @override
148 : _i5.Future<_i3.AuthorizationCredentialAppleID> getCredential(
149 : {List<_i3.AppleIDAuthorizationScopes>? scopes}) =>
150 0 : (super.noSuchMethod(
151 0 : Invocation.method(#getCredential, [], {#scopes: scopes}),
152 0 : returnValue: Future<_i3.AuthorizationCredentialAppleID>.value(
153 0 : _FakeAuthorizationCredentialAppleID_1()))
154 : as _i5.Future<_i3.AuthorizationCredentialAppleID>);
155 0 : @override
156 0 : String toString() => super.toString();
157 : }
|