1
- // Copyright 2021 The Chromium Authors. All rights reserved.
2
- // Use of this source code is governed by a BSD-style license that can be
3
- // found in the LICENSE file.
4
- // Mocks generated by Mockito 5.4.0 from annotations
1
+ // Mocks generated by Mockito 5.4.4 from annotations
5
2
// in firebase_analytics_web/test/firebase_analytics_web_test.dart.
6
3
// Do not manually edit this file.
7
4
@@ -18,6 +15,8 @@ import 'package:mockito/mockito.dart' as _i1;
18
15
// ignore_for_file: avoid_redundant_argument_values
19
16
// ignore_for_file: avoid_setters_without_getters
20
17
// ignore_for_file: comment_references
18
+ // ignore_for_file: deprecated_member_use
19
+ // ignore_for_file: deprecated_member_use_from_same_package
21
20
// ignore_for_file: implementation_imports
22
21
// ignore_for_file: invalid_use_of_visible_for_testing_member
23
22
// ignore_for_file: prefer_const_constructors
@@ -59,6 +58,7 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
59
58
),
60
59
returnValueForMissingStub: null ,
61
60
);
61
+
62
62
@override
63
63
_i2.FirebaseApp get app => (super .noSuchMethod (
64
64
Invocation .getter (#app),
@@ -71,6 +71,7 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
71
71
Invocation .getter (#app),
72
72
),
73
73
) as _i2.FirebaseApp );
74
+
74
75
@override
75
76
_i3.FirebaseAnalyticsPlatform delegateFor ({_i2.FirebaseApp ? app}) =>
76
77
(super .noSuchMethod (
@@ -96,6 +97,7 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
96
97
),
97
98
),
98
99
) as _i3.FirebaseAnalyticsPlatform );
100
+
99
101
@override
100
102
_i5.Future <bool > isSupported () => (super .noSuchMethod (
101
103
Invocation .method (
@@ -105,6 +107,17 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
105
107
returnValue: _i5.Future <bool >.value (false ),
106
108
returnValueForMissingStub: _i5.Future <bool >.value (false ),
107
109
) as _i5.Future <bool >);
110
+
111
+ @override
112
+ _i5.Future <int ?> getSessionId () => (super .noSuchMethod (
113
+ Invocation .method (
114
+ #getSessionId,
115
+ [],
116
+ ),
117
+ returnValue: _i5.Future <int ?>.value (),
118
+ returnValueForMissingStub: _i5.Future <int ?>.value (),
119
+ ) as _i5.Future <int ?>);
120
+
108
121
@override
109
122
_i5.Future <void > logEvent ({
110
123
required String ? name,
@@ -124,10 +137,13 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
124
137
returnValue: _i5.Future <void >.value (),
125
138
returnValueForMissingStub: _i5.Future <void >.value (),
126
139
) as _i5.Future <void >);
140
+
127
141
@override
128
142
_i5.Future <void > setConsent ({
129
143
bool ? adStorageConsentGranted,
130
144
bool ? analyticsStorageConsentGranted,
145
+ bool ? adPersonalizationGranted,
146
+ bool ? adUserDataGranted,
131
147
}) =>
132
148
(super .noSuchMethod (
133
149
Invocation .method (
@@ -136,11 +152,14 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
136
152
{
137
153
#adStorageConsentGranted: adStorageConsentGranted,
138
154
#analyticsStorageConsentGranted: analyticsStorageConsentGranted,
155
+ #adPersonalizationGranted: adPersonalizationGranted,
156
+ #adUserDataGranted: adUserDataGranted,
139
157
},
140
158
),
141
159
returnValue: _i5.Future <void >.value (),
142
160
returnValueForMissingStub: _i5.Future <void >.value (),
143
161
) as _i5.Future <void >);
162
+
144
163
@override
145
164
_i5.Future <void > setAnalyticsCollectionEnabled (bool ? enabled) =>
146
165
(super .noSuchMethod (
@@ -151,6 +170,7 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
151
170
returnValue: _i5.Future <void >.value (),
152
171
returnValueForMissingStub: _i5.Future <void >.value (),
153
172
) as _i5.Future <void >);
173
+
154
174
@override
155
175
_i5.Future <void > setUserId ({
156
176
String ? id,
@@ -168,6 +188,7 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
168
188
returnValue: _i5.Future <void >.value (),
169
189
returnValueForMissingStub: _i5.Future <void >.value (),
170
190
) as _i5.Future <void >);
191
+
171
192
@override
172
193
_i5.Future <void > setCurrentScreen ({
173
194
String ? screenName,
@@ -187,6 +208,7 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
187
208
returnValue: _i5.Future <void >.value (),
188
209
returnValueForMissingStub: _i5.Future <void >.value (),
189
210
) as _i5.Future <void >);
211
+
190
212
@override
191
213
_i5.Future <void > resetAnalyticsData () => (super .noSuchMethod (
192
214
Invocation .method (
@@ -196,6 +218,7 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
196
218
returnValue: _i5.Future <void >.value (),
197
219
returnValueForMissingStub: _i5.Future <void >.value (),
198
220
) as _i5.Future <void >);
221
+
199
222
@override
200
223
_i5.Future <void > setUserProperty ({
201
224
required String ? name,
@@ -215,6 +238,7 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
215
238
returnValue: _i5.Future <void >.value (),
216
239
returnValueForMissingStub: _i5.Future <void >.value (),
217
240
) as _i5.Future <void >);
241
+
218
242
@override
219
243
_i5.Future <void > setSessionTimeoutDuration (Duration ? timeout) =>
220
244
(super .noSuchMethod (
@@ -225,6 +249,7 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
225
249
returnValue: _i5.Future <void >.value (),
226
250
returnValueForMissingStub: _i5.Future <void >.value (),
227
251
) as _i5.Future <void >);
252
+
228
253
@override
229
254
_i5.Future <void > setDefaultEventParameters (
230
255
Map <String , Object ?>? defaultParameters) =>
@@ -236,6 +261,7 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
236
261
returnValue: _i5.Future <void >.value (),
237
262
returnValueForMissingStub: _i5.Future <void >.value (),
238
263
) as _i5.Future <void >);
264
+
239
265
@override
240
266
_i5.Future <String ?> getAppInstanceId () => (super .noSuchMethod (
241
267
Invocation .method (
@@ -245,4 +271,22 @@ class MockFirebaseAnalyticsWeb extends _i1.Mock
245
271
returnValue: _i5.Future <String ?>.value (),
246
272
returnValueForMissingStub: _i5.Future <String ?>.value (),
247
273
) as _i5.Future <String ?>);
274
+
275
+ @override
276
+ _i5.Future <void > initiateOnDeviceConversionMeasurement ({
277
+ String ? emailAddress,
278
+ String ? phoneNumber,
279
+ }) =>
280
+ (super .noSuchMethod (
281
+ Invocation .method (
282
+ #initiateOnDeviceConversionMeasurement,
283
+ [],
284
+ {
285
+ #emailAddress: emailAddress,
286
+ #phoneNumber: phoneNumber,
287
+ },
288
+ ),
289
+ returnValue: _i5.Future <void >.value (),
290
+ returnValueForMissingStub: _i5.Future <void >.value (),
291
+ ) as _i5.Future <void >);
248
292
}
0 commit comments