@@ -24,19 +24,19 @@ import 'package:parse_server_sdk/parse_server_sdk.dart' as _i2;
24
24
25
25
class _FakeParseCoreData_0 extends _i1.SmartFake implements _i2.ParseCoreData {
26
26
_FakeParseCoreData_0 (Object parent, Invocation parentInvocation)
27
- : super (parent, parentInvocation);
27
+ : super (parent, parentInvocation);
28
28
}
29
29
30
30
class _FakeParseNetworkResponse_1 extends _i1.SmartFake
31
31
implements _i2.ParseNetworkResponse {
32
32
_FakeParseNetworkResponse_1 (Object parent, Invocation parentInvocation)
33
- : super (parent, parentInvocation);
33
+ : super (parent, parentInvocation);
34
34
}
35
35
36
36
class _FakeParseNetworkByteResponse_2 extends _i1.SmartFake
37
37
implements _i2.ParseNetworkByteResponse {
38
38
_FakeParseNetworkByteResponse_2 (Object parent, Invocation parentInvocation)
39
- : super (parent, parentInvocation);
39
+ : super (parent, parentInvocation);
40
40
}
41
41
42
42
/// A class which mocks [ParseClient] .
@@ -48,12 +48,10 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
48
48
}
49
49
50
50
@override
51
- _i2.ParseCoreData get data =>
52
- (super .noSuchMethod (
53
- Invocation .getter (#data),
54
- returnValue: _FakeParseCoreData_0 (this , Invocation .getter (#data)),
55
- )
56
- as _i2.ParseCoreData );
51
+ _i2.ParseCoreData get data => (super .noSuchMethod (
52
+ Invocation .getter (#data),
53
+ returnValue: _FakeParseCoreData_0 (this , Invocation .getter (#data)),
54
+ ) as _i2.ParseCoreData );
57
55
58
56
@override
59
57
_i3.Future <_i2.ParseNetworkResponse > get (
@@ -62,23 +60,22 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
62
60
_i2.ProgressCallback ? onReceiveProgress,
63
61
}) =>
64
62
(super .noSuchMethod (
63
+ Invocation .method (
64
+ #get ,
65
+ [path],
66
+ {#options: options, #onReceiveProgress: onReceiveProgress},
67
+ ),
68
+ returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
69
+ _FakeParseNetworkResponse_1 (
70
+ this ,
65
71
Invocation .method (
66
72
#get ,
67
73
[path],
68
74
{#options: options, #onReceiveProgress: onReceiveProgress},
69
75
),
70
- returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
71
- _FakeParseNetworkResponse_1 (
72
- this ,
73
- Invocation .method (
74
- #get ,
75
- [path],
76
- {#options: options, #onReceiveProgress: onReceiveProgress},
77
- ),
78
- ),
79
- ),
80
- )
81
- as _i3.Future <_i2.ParseNetworkResponse >);
76
+ ),
77
+ ),
78
+ ) as _i3.Future <_i2.ParseNetworkResponse >);
82
79
83
80
@override
84
81
_i3.Future <_i2.ParseNetworkResponse > put (
@@ -87,19 +84,18 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
87
84
_i2.ParseNetworkOptions ? options,
88
85
}) =>
89
86
(super .noSuchMethod (
90
- Invocation .method (#put, [path], {#data: data, #options: options}),
91
- returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
92
- _FakeParseNetworkResponse_1 (
93
- this ,
94
- Invocation .method (
95
- #put,
96
- [path],
97
- {#data: data, #options: options},
98
- ),
99
- ),
87
+ Invocation .method (#put, [path], {#data: data, #options: options}),
88
+ returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
89
+ _FakeParseNetworkResponse_1 (
90
+ this ,
91
+ Invocation .method (
92
+ #put,
93
+ [path],
94
+ {#data: data, #options: options},
100
95
),
101
- )
102
- as _i3.Future <_i2.ParseNetworkResponse >);
96
+ ),
97
+ ),
98
+ ) as _i3.Future <_i2.ParseNetworkResponse >);
103
99
104
100
@override
105
101
_i3.Future <_i2.ParseNetworkResponse > post (
@@ -108,19 +104,18 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
108
104
_i2.ParseNetworkOptions ? options,
109
105
}) =>
110
106
(super .noSuchMethod (
111
- Invocation .method (#post, [path], {#data: data, #options: options}),
112
- returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
113
- _FakeParseNetworkResponse_1 (
114
- this ,
115
- Invocation .method (
116
- #post,
117
- [path],
118
- {#data: data, #options: options},
119
- ),
120
- ),
107
+ Invocation .method (#post, [path], {#data: data, #options: options}),
108
+ returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
109
+ _FakeParseNetworkResponse_1 (
110
+ this ,
111
+ Invocation .method (
112
+ #post,
113
+ [path],
114
+ {#data: data, #options: options},
121
115
),
122
- )
123
- as _i3.Future <_i2.ParseNetworkResponse >);
116
+ ),
117
+ ),
118
+ ) as _i3.Future <_i2.ParseNetworkResponse >);
124
119
125
120
@override
126
121
_i3.Future <_i2.ParseNetworkResponse > postBytes (
@@ -131,6 +126,19 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
131
126
dynamic cancelToken,
132
127
}) =>
133
128
(super .noSuchMethod (
129
+ Invocation .method (
130
+ #postBytes,
131
+ [path],
132
+ {
133
+ #data: data,
134
+ #options: options,
135
+ #onSendProgress: onSendProgress,
136
+ #cancelToken: cancelToken,
137
+ },
138
+ ),
139
+ returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
140
+ _FakeParseNetworkResponse_1 (
141
+ this ,
134
142
Invocation .method (
135
143
#postBytes,
136
144
[path],
@@ -141,39 +149,24 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
141
149
#cancelToken: cancelToken,
142
150
},
143
151
),
144
- returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
145
- _FakeParseNetworkResponse_1 (
146
- this ,
147
- Invocation .method (
148
- #postBytes,
149
- [path],
150
- {
151
- #data: data,
152
- #options: options,
153
- #onSendProgress: onSendProgress,
154
- #cancelToken: cancelToken,
155
- },
156
- ),
157
- ),
158
- ),
159
- )
160
- as _i3.Future <_i2.ParseNetworkResponse >);
152
+ ),
153
+ ),
154
+ ) as _i3.Future <_i2.ParseNetworkResponse >);
161
155
162
156
@override
163
157
_i3.Future <_i2.ParseNetworkResponse > delete (
164
158
String ? path, {
165
159
_i2.ParseNetworkOptions ? options,
166
160
}) =>
167
161
(super .noSuchMethod (
162
+ Invocation .method (#delete, [path], {#options: options}),
163
+ returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
164
+ _FakeParseNetworkResponse_1 (
165
+ this ,
168
166
Invocation .method (#delete, [path], {#options: options}),
169
- returnValue: _i3.Future <_i2.ParseNetworkResponse >.value (
170
- _FakeParseNetworkResponse_1 (
171
- this ,
172
- Invocation .method (#delete, [path], {#options: options}),
173
- ),
174
- ),
175
- )
176
- as _i3.Future <_i2.ParseNetworkResponse >);
167
+ ),
168
+ ),
169
+ ) as _i3.Future <_i2.ParseNetworkResponse >);
177
170
178
171
@override
179
172
_i3.Future <_i2.ParseNetworkByteResponse > getBytes (
@@ -183,6 +176,18 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
183
176
dynamic cancelToken,
184
177
}) =>
185
178
(super .noSuchMethod (
179
+ Invocation .method (
180
+ #getBytes,
181
+ [path],
182
+ {
183
+ #options: options,
184
+ #onReceiveProgress: onReceiveProgress,
185
+ #cancelToken: cancelToken,
186
+ },
187
+ ),
188
+ returnValue: _i3.Future <_i2.ParseNetworkByteResponse >.value (
189
+ _FakeParseNetworkByteResponse_2 (
190
+ this ,
186
191
Invocation .method (
187
192
#getBytes,
188
193
[path],
@@ -192,20 +197,7 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
192
197
#cancelToken: cancelToken,
193
198
},
194
199
),
195
- returnValue: _i3.Future <_i2.ParseNetworkByteResponse >.value (
196
- _FakeParseNetworkByteResponse_2 (
197
- this ,
198
- Invocation .method (
199
- #getBytes,
200
- [path],
201
- {
202
- #options: options,
203
- #onReceiveProgress: onReceiveProgress,
204
- #cancelToken: cancelToken,
205
- },
206
- ),
207
- ),
208
- ),
209
- )
210
- as _i3.Future <_i2.ParseNetworkByteResponse >);
200
+ ),
201
+ ),
202
+ ) as _i3.Future <_i2.ParseNetworkByteResponse >);
211
203
}
0 commit comments