@@ -29,6 +29,7 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
29
29
@override
30
30
_i2.ParseCoreData get data => (super .noSuchMethod (Invocation .getter (#data),
31
31
returnValue: _FakeParseCoreData ()) as _i2.ParseCoreData );
32
+
32
33
@override
33
34
_i3.Future <_i2.ParseNetworkResponse > get (String ? path,
34
35
{_i2.ParseNetworkOptions ? options,
@@ -39,6 +40,7 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
39
40
returnValue: Future <_i2.ParseNetworkResponse >.value (
40
41
_FakeParseNetworkResponse ()))
41
42
as _i3.Future <_i2.ParseNetworkResponse >);
43
+
42
44
@override
43
45
_i3.Future <_i2.ParseNetworkResponse > put (String ? path,
44
46
{String ? data, _i2.ParseNetworkOptions ? options}) =>
@@ -47,6 +49,7 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
47
49
returnValue: Future <_i2.ParseNetworkResponse >.value (
48
50
_FakeParseNetworkResponse ()))
49
51
as _i3.Future <_i2.ParseNetworkResponse >);
52
+
50
53
@override
51
54
_i3.Future <_i2.ParseNetworkResponse > post (String ? path,
52
55
{String ? data, _i2.ParseNetworkOptions ? options}) =>
@@ -55,22 +58,26 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
55
58
returnValue: Future <_i2.ParseNetworkResponse >.value (
56
59
_FakeParseNetworkResponse ())) as _i3
57
60
.Future <_i2.ParseNetworkResponse >);
61
+
58
62
@override
59
63
_i3.Future <_i2.ParseNetworkResponse > postBytes (String ? path,
60
64
{_i3.Stream <List <int >>? data,
61
65
_i2.ParseNetworkOptions ? options,
62
- _i2.ProgressCallback ? onSendProgress}) =>
66
+ _i2.ProgressCallback ? onSendProgress,
67
+ dynamic cancelToken}) =>
63
68
(super .noSuchMethod (
64
69
Invocation .method (#postBytes, [
65
70
path
66
71
], {
67
72
#data: data,
68
73
#options: options,
69
- #onSendProgress: onSendProgress
74
+ #onSendProgress: onSendProgress,
75
+ #cancelToken: cancelToken
70
76
}),
71
77
returnValue: Future <_i2.ParseNetworkResponse >.value (
72
78
_FakeParseNetworkResponse ()))
73
79
as _i3.Future <_i2.ParseNetworkResponse >);
80
+
74
81
@override
75
82
_i3.Future <_i2.ParseNetworkResponse > delete (String ? path,
76
83
{_i2.ParseNetworkOptions ? options}) =>
@@ -79,13 +86,20 @@ class MockParseClient extends _i1.Mock implements _i2.ParseClient {
79
86
returnValue: Future <_i2.ParseNetworkResponse >.value (
80
87
_FakeParseNetworkResponse ()))
81
88
as _i3.Future <_i2.ParseNetworkResponse >);
89
+
82
90
@override
83
91
_i3.Future <_i2.ParseNetworkByteResponse > getBytes (String ? path,
84
92
{_i2.ParseNetworkOptions ? options,
85
- _i2.ProgressCallback ? onReceiveProgress}) =>
93
+ _i2.ProgressCallback ? onReceiveProgress,
94
+ dynamic cancelToken}) =>
86
95
(super .noSuchMethod (
87
- Invocation .method (#getBytes, [path],
88
- {#options: options, #onReceiveProgress: onReceiveProgress}),
96
+ Invocation .method (#getBytes, [
97
+ path
98
+ ], {
99
+ #options: options,
100
+ #onReceiveProgress: onReceiveProgress,
101
+ #cancelToken: cancelToken
102
+ }),
89
103
returnValue: Future <_i2.ParseNetworkByteResponse >.value (
90
104
_FakeParseNetworkByteResponse ()))
91
105
as _i3.Future <_i2.ParseNetworkByteResponse >);
0 commit comments