Skip to content

Commit

Permalink
Bump version to 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
okrad committed Aug 27, 2023
1 parent ed6e737 commit 36f7e70
Show file tree
Hide file tree
Showing 5 changed files with 1,107 additions and 556 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [3.2.2] - 2023/08/27
* Updated dependencies (thanks [Jason Held](https://github.com/jheld))
* Fix for LinkedInOAuth2Client client (thanks [Abhishek-Khanal](https://github.com/Abhishek-Khanal))

## [3.2.1] - 2023/03/12
* Updated dependencies

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dev_dependencies:
flutter_test:
sdk: flutter
build_runner: ^2.1.7
mockito: ^5.0.17
mockito: ^5.4.2
flutter_lints: ^2.0.0

# The following section is specific to Flutter.
Expand Down
327 changes: 228 additions & 99 deletions test/oauth2_client_test.mocks.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.0 from annotations
// Mocks generated by Mockito 5.4.2 from annotations
// in oauth2_client/test/oauth2_client_test.dart.
// Do not manually edit this file.

Expand All @@ -23,14 +23,24 @@ import 'package:oauth2_client/src/base_web_auth.dart' as _i3;
// ignore_for_file: subtype_of_sealed_class

class _FakeResponse_0 extends _i1.SmartFake implements _i2.Response {
_FakeResponse_0(Object parent, Invocation parentInvocation)
: super(parent, parentInvocation);
_FakeResponse_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}

class _FakeStreamedResponse_1 extends _i1.SmartFake
implements _i2.StreamedResponse {
_FakeStreamedResponse_1(Object parent, Invocation parentInvocation)
: super(parent, parentInvocation);
_FakeStreamedResponse_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}

/// A class which mocks [BaseWebAuth].
Expand All @@ -42,19 +52,25 @@ class MockBaseWebAuth extends _i1.Mock implements _i3.BaseWebAuth {
}

@override
_i4.Future<String> authenticate(
{String? callbackUrlScheme,
String? url,
String? redirectUrl,
Map<String, dynamic>? opts}) =>
_i4.Future<String> authenticate({
required String? callbackUrlScheme,
required String? url,
required String? redirectUrl,
Map<String, dynamic>? opts,
}) =>
(super.noSuchMethod(
Invocation.method(#authenticate, [], {
Invocation.method(
#authenticate,
[],
{
#callbackUrlScheme: callbackUrlScheme,
#url: url,
#redirectUrl: redirectUrl,
#opts: opts
}),
returnValue: _i4.Future<String>.value('')) as _i4.Future<String>);
#opts: opts,
},
),
returnValue: _i4.Future<String>.value(''),
) as _i4.Future<String>);
}

/// A class which mocks [Client].
Expand All @@ -66,100 +82,213 @@ class MockClient extends _i1.Mock implements _i2.Client {
}

@override
_i4.Future<_i2.Response> head(Uri? url, {Map<String, String>? headers}) =>
(super.noSuchMethod(Invocation.method(#head, [url], {#headers: headers}),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this, Invocation.method(#head, [url], {#headers: headers}))))
as _i4.Future<_i2.Response>);
_i4.Future<_i2.Response> head(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(
#head,
[url],
{#headers: headers},
),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(
#head,
[url],
{#headers: headers},
),
)),
) as _i4.Future<_i2.Response>);
@override
_i4.Future<_i2.Response> get(Uri? url, {Map<String, String>? headers}) =>
(super.noSuchMethod(Invocation.method(#get, [url], {#headers: headers}),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this, Invocation.method(#get, [url], {#headers: headers}))))
as _i4.Future<_i2.Response>);
_i4.Future<_i2.Response> get(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(
#get,
[url],
{#headers: headers},
),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(
#get,
[url],
{#headers: headers},
),
)),
) as _i4.Future<_i2.Response>);
@override
_i4.Future<_i2.Response> post(Uri? url,
{Map<String, String>? headers,
Object? body,
_i5.Encoding? encoding}) =>
(super
.noSuchMethod(Invocation.method(#post, [url], {#headers: headers, #body: body, #encoding: encoding}),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(#post, [
url
], {
#headers: headers,
#body: body,
#encoding: encoding
})))) as _i4.Future<_i2.Response>);
_i4.Future<_i2.Response> post(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i5.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(
#post,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(
#post,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i4.Future<_i2.Response>);
@override
_i4.Future<_i2.Response> put(Uri? url,
{Map<String, String>? headers,
Object? body,
_i5.Encoding? encoding}) =>
(super
.noSuchMethod(Invocation.method(#put, [url], {#headers: headers, #body: body, #encoding: encoding}),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(#put, [
url
], {
#headers: headers,
#body: body,
#encoding: encoding
})))) as _i4.Future<_i2.Response>);
_i4.Future<_i2.Response> put(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i5.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(
#put,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(
#put,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i4.Future<_i2.Response>);
@override
_i4.Future<_i2.Response> patch(Uri? url,
{Map<String, String>? headers,
Object? body,
_i5.Encoding? encoding}) =>
(super
.noSuchMethod(Invocation.method(#patch, [url], {#headers: headers, #body: body, #encoding: encoding}),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(#patch, [
url
], {
#headers: headers,
#body: body,
#encoding: encoding
})))) as _i4.Future<_i2.Response>);
_i4.Future<_i2.Response> patch(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i5.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(
#patch,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(
#patch,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i4.Future<_i2.Response>);
@override
_i4.Future<_i2.Response> delete(Uri? url,
{Map<String, String>? headers,
Object? body,
_i5.Encoding? encoding}) =>
(super
.noSuchMethod(Invocation.method(#delete, [url], {#headers: headers, #body: body, #encoding: encoding}),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(#delete, [
url
], {
#headers: headers,
#body: body,
#encoding: encoding
})))) as _i4.Future<_i2.Response>);
_i4.Future<_i2.Response> delete(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i5.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(
#delete,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i4.Future<_i2.Response>.value(_FakeResponse_0(
this,
Invocation.method(
#delete,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i4.Future<_i2.Response>);
@override
_i4.Future<String> read(Uri? url, {Map<String, String>? headers}) =>
(super.noSuchMethod(Invocation.method(#read, [url], {#headers: headers}),
returnValue: _i4.Future<String>.value('')) as _i4.Future<String>);
_i4.Future<String> read(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(
#read,
[url],
{#headers: headers},
),
returnValue: _i4.Future<String>.value(''),
) as _i4.Future<String>);
@override
_i4.Future<_i6.Uint8List> readBytes(Uri? url,
{Map<String, String>? headers}) =>
_i4.Future<_i6.Uint8List> readBytes(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(#readBytes, [url], {#headers: headers}),
returnValue: _i4.Future<_i6.Uint8List>.value(_i6.Uint8List(0)))
as _i4.Future<_i6.Uint8List>);
Invocation.method(
#readBytes,
[url],
{#headers: headers},
),
returnValue: _i4.Future<_i6.Uint8List>.value(_i6.Uint8List(0)),
) as _i4.Future<_i6.Uint8List>);
@override
_i4.Future<_i2.StreamedResponse> send(_i2.BaseRequest? request) =>
(super.noSuchMethod(Invocation.method(#send, [request]),
returnValue: _i4.Future<_i2.StreamedResponse>.value(
_FakeStreamedResponse_1(
this, Invocation.method(#send, [request]))))
as _i4.Future<_i2.StreamedResponse>);
(super.noSuchMethod(
Invocation.method(
#send,
[request],
),
returnValue:
_i4.Future<_i2.StreamedResponse>.value(_FakeStreamedResponse_1(
this,
Invocation.method(
#send,
[request],
),
)),
) as _i4.Future<_i2.StreamedResponse>);
@override
void close() => super.noSuchMethod(Invocation.method(#close, []),
returnValueForMissingStub: null);
void close() => super.noSuchMethod(
Invocation.method(
#close,
[],
),
returnValueForMissingStub: null,
);
}
Loading

0 comments on commit 36f7e70

Please sign in to comment.