Roll mockito to 5.4.0 (#3544)

Roll mockito to 5.4.0
This commit is contained in:
Nate Bosch
2023-03-30 05:12:38 -07:00
committed by GitHub
parent 801f68a703
commit 199fc68a1a
152 changed files with 1532 additions and 723 deletions

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.
## 0.10.3+2

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the camera plugin.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
camera:

View File

@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 0.10.3+2
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -35,6 +35,6 @@ dev_dependencies:
sdk: flutter
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
plugin_platform_interface: ^2.0.0
video_player: ^2.0.0

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Creates camera_android_camerax plugin for development.
* Adds CameraInfo class and removes unnecessary code from plugin.
* Adds CameraSelector class.

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the camera_android_camerax plugin.
publish_to: 'none'
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
camera_android_camerax:

View File

@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
publish_to: 'none'
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -30,5 +30,5 @@ dev_dependencies:
build_runner: ^2.1.4
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
pigeon: ^9.1.0

View File

@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in camera_android_camerax/test/android_camera_camerax_test.dart.
// Do not manually edit this file.
@ -16,8 +16,7 @@ import 'package:camera_android_camerax/src/process_camera_provider.dart'
import 'package:camera_android_camerax/src/use_case.dart' as _i13;
import 'package:flutter/foundation.dart' as _i6;
import 'package:flutter/services.dart' as _i5;
import 'package:flutter/src/widgets/framework.dart' as _i4;
import 'package:flutter/src/widgets/notification_listener.dart' as _i14;
import 'package:flutter/widgets.dart' as _i4;
import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: type=lint
@ -346,7 +345,7 @@ class MockBuildContext extends _i1.Mock implements _i4.BuildContext {
returnValueForMissingStub: null,
);
@override
void dispatchNotification(_i14.Notification? notification) =>
void dispatchNotification(_i4.Notification? notification) =>
super.noSuchMethod(
Invocation.method(
#dispatchNotification,

View File

@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in camera_android_camerax/test/camera_info_test.dart.
// Do not manually edit this file.

View File

@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in camera_android_camerax/test/camera_selector_test.dart.
// Do not manually edit this file.

View File

@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in camera_android_camerax/test/image_capture_test.dart.
// Do not manually edit this file.

View File

@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in camera_android_camerax/test/preview_test.dart.
// Do not manually edit this file.

View File

@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in camera_android_camerax/test/process_camera_provider_test.dart.
// Do not manually edit this file.

View File

@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in camera_android_camerax/test/system_services_test.dart.
// Do not manually edit this file.

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 0.5.1+2
* Updates to `pigeon` version 9.

View File

@ -4,8 +4,8 @@ publish_to: 'none'
version: 1.0.0
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
# The following adds the Cupertino Icons font to your application.

View File

@ -25,5 +25,5 @@ dev_dependencies:
build_runner: ^2.3.0
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
pigeon: ^9.1.0

View File

@ -1,5 +1,5 @@
// Mocks generated by Mockito 5.3.0 from annotations
// in file_selector_ios/example/ios/.symlinks/plugins/file_selector_ios/test/file_selector_ios_test.dart.
// Mocks generated by Mockito 5.4.0 from annotations
// in file_selector_ios/test/file_selector_ios_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
@ -32,7 +32,11 @@ class MockTestFileSelectorApi extends _i1.Mock
@override
_i3.Future<List<String?>> openFile(_i4.FileSelectorConfig? config) =>
(super.noSuchMethod(Invocation.method(#openFile, [config]),
returnValue: _i3.Future<List<String?>>.value(<String?>[]))
as _i3.Future<List<String?>>);
(super.noSuchMethod(
Invocation.method(
#openFile,
[config],
),
returnValue: _i3.Future<List<String?>>.value(<String?>[]),
) as _i3.Future<List<String?>>);
}

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 0.9.0+7
* Updates to `pigeon` version 9.

View File

@ -4,8 +4,8 @@ publish_to: 'none'
version: 1.0.0
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
file_selector_macos:

View File

@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 0.9.0+7
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -26,5 +26,5 @@ dev_dependencies:
build_runner: ^2.3.2
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
pigeon: ^9.1.0

View File

@ -1,5 +1,5 @@
// Mocks generated by Mockito 5.3.2 from annotations
// in file_selector_macos/example/macos/Flutter/ephemeral/.symlinks/plugins/file_selector_macos/test/file_selector_macos_test.dart.
// Mocks generated by Mockito 5.4.0 from annotations
// in file_selector_macos/test/file_selector_macos_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 0.9.1+7
* Updates to `pigeon` version 9.

View File

@ -4,8 +4,8 @@ publish_to: 'none'
version: 1.0.0
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
file_selector_platform_interface: ^2.2.0

View File

@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 0.9.1+7
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -26,5 +26,5 @@ dev_dependencies:
build_runner: ^2.3.0
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
pigeon: ^9.1.0

View File

@ -1,7 +1,8 @@
// Mocks generated by Mockito 5.2.0 from annotations
// in file_selector_windows/example/windows/flutter/ephemeral/.plugin_symlinks/file_selector_windows/test/file_selector_windows_test.dart.
// Mocks generated by Mockito 5.4.0 from annotations
// in file_selector_windows/test/file_selector_windows_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:file_selector_windows/src/messages.g.dart' as _i3;
import 'package:mockito/mockito.dart' as _i1;
@ -16,6 +17,7 @@ import 'test_api.g.dart' as _i2;
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
/// A class which mocks [TestFileSelectorApi].
///
@ -27,20 +29,39 @@ class MockTestFileSelectorApi extends _i1.Mock
}
@override
List<String?> showOpenDialog(_i3.SelectionOptions? options,
String? initialDirectory, String? confirmButtonText) =>
List<String?> showOpenDialog(
_i3.SelectionOptions? options,
String? initialDirectory,
String? confirmButtonText,
) =>
(super.noSuchMethod(
Invocation.method(
#showOpenDialog, [options, initialDirectory, confirmButtonText]),
returnValue: <String?>[]) as List<String?>);
Invocation.method(
#showOpenDialog,
[
options,
initialDirectory,
confirmButtonText,
],
),
returnValue: <String?>[],
) as List<String?>);
@override
List<String?> showSaveDialog(
_i3.SelectionOptions? options,
String? initialDirectory,
String? suggestedName,
String? confirmButtonText) =>
_i3.SelectionOptions? options,
String? initialDirectory,
String? suggestedName,
String? confirmButtonText,
) =>
(super.noSuchMethod(
Invocation.method(#showSaveDialog,
[options, initialDirectory, suggestedName, confirmButtonText]),
returnValue: <String?>[]) as List<String?>);
Invocation.method(
#showSaveDialog,
[
options,
initialDirectory,
suggestedName,
confirmButtonText,
],
),
returnValue: <String?>[],
) as List<String?>);
}

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.
## 0.6.14

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the flutter_markdown package.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:

View File

@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 0.6.14
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:
@ -20,5 +20,5 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
standard_message_codec: ^0.0.1+3

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.
## 2.2.6

View File

@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 2.2.6
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
collection: ^1.15.0
@ -21,4 +21,4 @@ dev_dependencies:
async: ^2.5.0
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 0.4.0+7
* Clarifies explanation of endorsement in README.

View File

@ -4,3 +4,7 @@ targets:
- integration_test/*.dart
- lib/$lib$
- $package$
builders:
mockito|mockBuilder:
generate_for:
- integration_test/**

View File

@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in google_maps_flutter_web_integration_tests/integration_test/google_maps_controller_test.dart.
// Do not manually edit this file.

View File

@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in google_maps_flutter_web_integration_tests/integration_test/google_maps_plugin_test.dart.
// Do not manually edit this file.

View File

@ -3,8 +3,8 @@ publish_to: none
# Tests require flutter beta or greater to run.
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:
@ -25,4 +25,4 @@ dev_dependencies:
http: ^0.13.0
integration_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0

View File

@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 0.4.0+7
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.
## 6.0.2

View File

@ -3,8 +3,8 @@ description: Example of Google Sign-In plugin.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:

View File

@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 6.0.2
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -36,7 +36,7 @@ dev_dependencies:
http: ^0.13.0
integration_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
# The example deliberately includes limited-use secrets.
false_secrets:

View File

@ -1,7 +1,8 @@
// Mocks generated by Mockito 5.1.0 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in google_sign_in/test/google_sign_in_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4;
import 'package:google_sign_in_platform_interface/google_sign_in_platform_interface.dart'
@ -18,9 +19,18 @@ import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
class _FakeGoogleSignInTokenData_0 extends _i1.Fake
implements _i2.GoogleSignInTokenData {}
class _FakeGoogleSignInTokenData_0 extends _i1.SmartFake
implements _i2.GoogleSignInTokenData {
_FakeGoogleSignInTokenData_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
/// A class which mocks [GoogleSignInPlatform].
///
@ -32,69 +42,127 @@ class MockGoogleSignInPlatform extends _i1.Mock
}
@override
bool get isMock =>
(super.noSuchMethod(Invocation.getter(#isMock), returnValue: false)
as bool);
bool get isMock => (super.noSuchMethod(
Invocation.getter(#isMock),
returnValue: false,
) as bool);
@override
_i4.Future<void> init(
{List<String>? scopes = const [],
_i2.SignInOption? signInOption = _i2.SignInOption.standard,
String? hostedDomain,
String? clientId}) =>
_i4.Future<void> init({
List<String>? scopes = const [],
_i2.SignInOption? signInOption = _i2.SignInOption.standard,
String? hostedDomain,
String? clientId,
}) =>
(super.noSuchMethod(
Invocation.method(#init, [], {
Invocation.method(
#init,
[],
{
#scopes: scopes,
#signInOption: signInOption,
#hostedDomain: hostedDomain,
#clientId: clientId
}),
returnValue: Future<void>.value(),
returnValueForMissingStub: Future<void>.value()) as _i4.Future<void>);
#clientId: clientId,
},
),
returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>);
@override
_i4.Future<void> initWithParams(_i2.SignInInitParameters? params) =>
(super.noSuchMethod(Invocation.method(#initWithParams, [params]),
returnValue: Future<void>.value(),
returnValueForMissingStub: Future<void>.value()) as _i4.Future<void>);
@override
_i4.Future<_i2.GoogleSignInUserData?> signInSilently() =>
(super.noSuchMethod(Invocation.method(#signInSilently, []),
returnValue: Future<_i2.GoogleSignInUserData?>.value())
as _i4.Future<_i2.GoogleSignInUserData?>);
@override
_i4.Future<_i2.GoogleSignInUserData?> signIn() =>
(super.noSuchMethod(Invocation.method(#signIn, []),
returnValue: Future<_i2.GoogleSignInUserData?>.value())
as _i4.Future<_i2.GoogleSignInUserData?>);
@override
_i4.Future<_i2.GoogleSignInTokenData> getTokens(
{String? email, bool? shouldRecoverAuth}) =>
(super.noSuchMethod(
Invocation.method(#getTokens, [],
{#email: email, #shouldRecoverAuth: shouldRecoverAuth}),
returnValue: Future<_i2.GoogleSignInTokenData>.value(
_FakeGoogleSignInTokenData_0()))
as _i4.Future<_i2.GoogleSignInTokenData>);
Invocation.method(
#initWithParams,
[params],
),
returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>);
@override
_i4.Future<void> signOut() =>
(super.noSuchMethod(Invocation.method(#signOut, []),
returnValue: Future<void>.value(),
returnValueForMissingStub: Future<void>.value()) as _i4.Future<void>);
_i4.Future<_i2.GoogleSignInUserData?> signInSilently() => (super.noSuchMethod(
Invocation.method(
#signInSilently,
[],
),
returnValue: _i4.Future<_i2.GoogleSignInUserData?>.value(),
) as _i4.Future<_i2.GoogleSignInUserData?>);
@override
_i4.Future<void> disconnect() =>
(super.noSuchMethod(Invocation.method(#disconnect, []),
returnValue: Future<void>.value(),
returnValueForMissingStub: Future<void>.value()) as _i4.Future<void>);
_i4.Future<_i2.GoogleSignInUserData?> signIn() => (super.noSuchMethod(
Invocation.method(
#signIn,
[],
),
returnValue: _i4.Future<_i2.GoogleSignInUserData?>.value(),
) as _i4.Future<_i2.GoogleSignInUserData?>);
@override
_i4.Future<bool> isSignedIn() =>
(super.noSuchMethod(Invocation.method(#isSignedIn, []),
returnValue: Future<bool>.value(false)) as _i4.Future<bool>);
_i4.Future<_i2.GoogleSignInTokenData> getTokens({
required String? email,
bool? shouldRecoverAuth,
}) =>
(super.noSuchMethod(
Invocation.method(
#getTokens,
[],
{
#email: email,
#shouldRecoverAuth: shouldRecoverAuth,
},
),
returnValue: _i4.Future<_i2.GoogleSignInTokenData>.value(
_FakeGoogleSignInTokenData_0(
this,
Invocation.method(
#getTokens,
[],
{
#email: email,
#shouldRecoverAuth: shouldRecoverAuth,
},
),
)),
) as _i4.Future<_i2.GoogleSignInTokenData>);
@override
_i4.Future<void> clearAuthCache({String? token}) => (super.noSuchMethod(
Invocation.method(#clearAuthCache, [], {#token: token}),
returnValue: Future<void>.value(),
returnValueForMissingStub: Future<void>.value()) as _i4.Future<void>);
_i4.Future<void> signOut() => (super.noSuchMethod(
Invocation.method(
#signOut,
[],
),
returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>);
@override
_i4.Future<bool> requestScopes(List<String>? scopes) =>
(super.noSuchMethod(Invocation.method(#requestScopes, [scopes]),
returnValue: Future<bool>.value(false)) as _i4.Future<bool>);
_i4.Future<void> disconnect() => (super.noSuchMethod(
Invocation.method(
#disconnect,
[],
),
returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>);
@override
_i4.Future<bool> isSignedIn() => (super.noSuchMethod(
Invocation.method(
#isSignedIn,
[],
),
returnValue: _i4.Future<bool>.value(false),
) as _i4.Future<bool>);
@override
_i4.Future<void> clearAuthCache({required String? token}) =>
(super.noSuchMethod(
Invocation.method(
#clearAuthCache,
[],
{#token: token},
),
returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>);
@override
_i4.Future<bool> requestScopes(List<String>? scopes) => (super.noSuchMethod(
Invocation.method(
#requestScopes,
[scopes],
),
returnValue: _i4.Future<bool>.value(false),
) as _i4.Future<bool>);
}

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.
## 2.3.1

View File

@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 2.3.1
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:
@ -19,4 +19,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 0.11.0+2
* Clarifies explanation of endorsement in README.

View File

@ -4,3 +4,7 @@ targets:
- integration_test/*.dart
- lib/$lib$
- $package$
builders:
mockito|mockBuilder:
generate_for:
- integration_test/**

View File

@ -1,4 +1,4 @@
// Mocks generated by Mockito 5.3.2 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in google_sign_in_web_integration_tests/integration_test/google_sign_in_web_test.dart.
// Do not manually edit this file.

View File

@ -2,8 +2,8 @@ name: google_sign_in_web_integration_tests
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:
@ -23,4 +23,4 @@ dev_dependencies:
integration_test:
sdk: flutter
js: ^0.6.3
mockito: 5.3.2
mockito: 5.4.0

View File

@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 0.11.0+2
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 0.8.7+1
* Updates README to use code excerpts.

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the image_picker plugin.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:

View File

@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 0.8.7+1
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -32,5 +32,5 @@ dev_dependencies:
cross_file: ^0.3.1+1 # Mockito generates a direct include.
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
plugin_platform_interface: ^2.0.0

View File

@ -13,16 +13,17 @@ import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'image_picker_test.mocks.dart' as base_mock;
// Add the mixin to make the platform interface accept the mock.
class MockImagePickerPlatform extends base_mock.MockImagePickerPlatform
class _MockImagePickerPlatform extends base_mock.MockImagePickerPlatform
with MockPlatformInterfaceMixin {}
@GenerateMocks(<Type>[ImagePickerPlatform])
@GenerateMocks(<Type>[],
customMocks: <MockSpec<dynamic>>[MockSpec<ImagePickerPlatform>()])
void main() {
group('ImagePicker', () {
late MockImagePickerPlatform mockPlatform;
late _MockImagePickerPlatform mockPlatform;
setUp(() {
mockPlatform = MockImagePickerPlatform();
mockPlatform = _MockImagePickerPlatform();
ImagePickerPlatform.instance = mockPlatform;
});

View File

@ -1,7 +1,8 @@
// Mocks generated by Mockito 5.1.0 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in image_picker/test/image_picker_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i4;
import 'package:cross_file/cross_file.dart' as _i5;
@ -19,11 +20,28 @@ import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
class _FakeLostData_0 extends _i1.Fake implements _i2.LostData {}
class _FakeLostData_0 extends _i1.SmartFake implements _i2.LostData {
_FakeLostData_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeLostDataResponse_1 extends _i1.Fake
implements _i2.LostDataResponse {}
class _FakeLostDataResponse_1 extends _i1.SmartFake
implements _i2.LostDataResponse {
_FakeLostDataResponse_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
/// A class which mocks [ImagePickerPlatform].
///
@ -35,120 +53,176 @@ class MockImagePickerPlatform extends _i1.Mock
}
@override
_i4.Future<_i2.PickedFile?> pickImage(
{_i2.ImageSource? source,
double? maxWidth,
double? maxHeight,
int? imageQuality,
_i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear}) =>
_i4.Future<_i2.PickedFile?> pickImage({
required _i2.ImageSource? source,
double? maxWidth,
double? maxHeight,
int? imageQuality,
_i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear,
}) =>
(super.noSuchMethod(
Invocation.method(#pickImage, [], {
#source: source,
#maxWidth: maxWidth,
#maxHeight: maxHeight,
#imageQuality: imageQuality,
#preferredCameraDevice: preferredCameraDevice
}),
returnValue: Future<_i2.PickedFile?>.value())
as _i4.Future<_i2.PickedFile?>);
@override
_i4.Future<List<_i2.PickedFile>?> pickMultiImage(
{double? maxWidth, double? maxHeight, int? imageQuality}) =>
(super.noSuchMethod(
Invocation.method(#pickMultiImage, [], {
#maxWidth: maxWidth,
#maxHeight: maxHeight,
#imageQuality: imageQuality
}),
returnValue: Future<List<_i2.PickedFile>?>.value())
as _i4.Future<List<_i2.PickedFile>?>);
@override
_i4.Future<_i2.PickedFile?> pickVideo(
{_i2.ImageSource? source,
_i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear,
Duration? maxDuration}) =>
(super.noSuchMethod(
Invocation.method(#pickVideo, [], {
#source: source,
#preferredCameraDevice: preferredCameraDevice,
#maxDuration: maxDuration
}),
returnValue: Future<_i2.PickedFile?>.value())
as _i4.Future<_i2.PickedFile?>);
@override
_i4.Future<_i2.LostData> retrieveLostData() =>
(super.noSuchMethod(Invocation.method(#retrieveLostData, []),
returnValue: Future<_i2.LostData>.value(_FakeLostData_0()))
as _i4.Future<_i2.LostData>);
@override
_i4.Future<_i5.XFile?> getImage(
{_i2.ImageSource? source,
double? maxWidth,
double? maxHeight,
int? imageQuality,
_i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear}) =>
(super.noSuchMethod(
Invocation.method(#getImage, [], {
Invocation.method(
#pickImage,
[],
{
#source: source,
#maxWidth: maxWidth,
#maxHeight: maxHeight,
#imageQuality: imageQuality,
#preferredCameraDevice: preferredCameraDevice
}),
returnValue: Future<_i5.XFile?>.value()) as _i4.Future<_i5.XFile?>);
#preferredCameraDevice: preferredCameraDevice,
},
),
returnValue: _i4.Future<_i2.PickedFile?>.value(),
) as _i4.Future<_i2.PickedFile?>);
@override
_i4.Future<List<_i5.XFile>?> getMultiImage(
{double? maxWidth, double? maxHeight, int? imageQuality}) =>
_i4.Future<List<_i2.PickedFile>?> pickMultiImage({
double? maxWidth,
double? maxHeight,
int? imageQuality,
}) =>
(super.noSuchMethod(
Invocation.method(#getMultiImage, [], {
#maxWidth: maxWidth,
#maxHeight: maxHeight,
#imageQuality: imageQuality
}),
returnValue: Future<List<_i5.XFile>?>.value())
as _i4.Future<List<_i5.XFile>?>);
Invocation.method(
#pickMultiImage,
[],
{
#maxWidth: maxWidth,
#maxHeight: maxHeight,
#imageQuality: imageQuality,
},
),
returnValue: _i4.Future<List<_i2.PickedFile>?>.value(),
) as _i4.Future<List<_i2.PickedFile>?>);
@override
_i4.Future<_i5.XFile?> getVideo(
{_i2.ImageSource? source,
_i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear,
Duration? maxDuration}) =>
_i4.Future<_i2.PickedFile?> pickVideo({
required _i2.ImageSource? source,
_i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear,
Duration? maxDuration,
}) =>
(super.noSuchMethod(
Invocation.method(#getVideo, [], {
Invocation.method(
#pickVideo,
[],
{
#source: source,
#preferredCameraDevice: preferredCameraDevice,
#maxDuration: maxDuration
}),
returnValue: Future<_i5.XFile?>.value()) as _i4.Future<_i5.XFile?>);
#maxDuration: maxDuration,
},
),
returnValue: _i4.Future<_i2.PickedFile?>.value(),
) as _i4.Future<_i2.PickedFile?>);
@override
_i4.Future<_i2.LostDataResponse> getLostData() =>
(super.noSuchMethod(Invocation.method(#getLostData, []),
returnValue:
Future<_i2.LostDataResponse>.value(_FakeLostDataResponse_1()))
as _i4.Future<_i2.LostDataResponse>);
@override
_i4.Future<_i5.XFile?> getImageFromSource(
{_i2.ImageSource? source,
_i2.ImagePickerOptions? options = const _i2.ImagePickerOptions()}) =>
(super.noSuchMethod(
_i4.Future<_i2.LostData> retrieveLostData() => (super.noSuchMethod(
Invocation.method(
#retrieveLostData,
[],
),
returnValue: _i4.Future<_i2.LostData>.value(_FakeLostData_0(
this,
Invocation.method(
#getImageFromSource, [], {#source: source, #options: options}),
returnValue: Future<_i5.XFile?>.value()) as _i4.Future<_i5.XFile?>);
#retrieveLostData,
[],
),
)),
) as _i4.Future<_i2.LostData>);
@override
_i4.Future<_i5.XFile?> getImage({
required _i2.ImageSource? source,
double? maxWidth,
double? maxHeight,
int? imageQuality,
_i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear,
}) =>
(super.noSuchMethod(
Invocation.method(
#getImage,
[],
{
#source: source,
#maxWidth: maxWidth,
#maxHeight: maxHeight,
#imageQuality: imageQuality,
#preferredCameraDevice: preferredCameraDevice,
},
),
returnValue: _i4.Future<_i5.XFile?>.value(),
) as _i4.Future<_i5.XFile?>);
@override
_i4.Future<List<_i5.XFile>?> getMultiImage({
double? maxWidth,
double? maxHeight,
int? imageQuality,
}) =>
(super.noSuchMethod(
Invocation.method(
#getMultiImage,
[],
{
#maxWidth: maxWidth,
#maxHeight: maxHeight,
#imageQuality: imageQuality,
},
),
returnValue: _i4.Future<List<_i5.XFile>?>.value(),
) as _i4.Future<List<_i5.XFile>?>);
@override
_i4.Future<_i5.XFile?> getVideo({
required _i2.ImageSource? source,
_i2.CameraDevice? preferredCameraDevice = _i2.CameraDevice.rear,
Duration? maxDuration,
}) =>
(super.noSuchMethod(
Invocation.method(
#getVideo,
[],
{
#source: source,
#preferredCameraDevice: preferredCameraDevice,
#maxDuration: maxDuration,
},
),
returnValue: _i4.Future<_i5.XFile?>.value(),
) as _i4.Future<_i5.XFile?>);
@override
_i4.Future<_i2.LostDataResponse> getLostData() => (super.noSuchMethod(
Invocation.method(
#getLostData,
[],
),
returnValue:
_i4.Future<_i2.LostDataResponse>.value(_FakeLostDataResponse_1(
this,
Invocation.method(
#getLostData,
[],
),
)),
) as _i4.Future<_i2.LostDataResponse>);
@override
_i4.Future<_i5.XFile?> getImageFromSource({
required _i2.ImageSource? source,
_i2.ImagePickerOptions? options = const _i2.ImagePickerOptions(),
}) =>
(super.noSuchMethod(
Invocation.method(
#getImageFromSource,
[],
{
#source: source,
#options: options,
},
),
returnValue: _i4.Future<_i5.XFile?>.value(),
) as _i4.Future<_i5.XFile?>);
@override
_i4.Future<List<_i5.XFile>> getMultiImageWithOptions(
{_i2.MultiImagePickerOptions? options =
const _i2.MultiImagePickerOptions()}) =>
(super.noSuchMethod(
Invocation.method(#getMultiImageWithOptions, [], {#options: options}),
returnValue:
Future<List<_i5.XFile>>.value(<_i5.XFile>[])) as _i4
.Future<List<_i5.XFile>>);
Invocation.method(
#getMultiImageWithOptions,
[],
{#options: options},
),
returnValue: _i4.Future<List<_i5.XFile>>.value(<_i5.XFile>[]),
) as _i4.Future<List<_i5.XFile>>);
}

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 0.8.6+6
* Bumps androidx.core:core from 1.8.0 to 1.9.0.

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the image_picker plugin.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:

View File

@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 0.8.6+6
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -27,5 +27,5 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
pigeon: ^9.1.0

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 0.8.7+2
* Updates to `pigeon` version 9.

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the image_picker plugin.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:

View File

@ -24,5 +24,5 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
pigeon: ^9.1.0

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 0.1.0+6
* Clarifies explanation of endorsement in README.

View File

@ -4,8 +4,8 @@ publish_to: 'none'
version: 1.0.0
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:

View File

@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 0.1.0+6
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -26,4 +26,4 @@ dev_dependencies:
build_runner: ^2.1.5
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0

View File

@ -1,7 +1,8 @@
// Mocks generated by Mockito 5.1.0 from annotations
// in image_picker_windows/example/windows/flutter/ephemeral/.plugin_symlinks/image_picker_windows/test/image_picker_windows_test.dart.
// Mocks generated by Mockito 5.4.0 from annotations
// in image_picker_windows/test/image_picker_windows_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'package:file_selector_platform_interface/file_selector_platform_interface.dart'
@ -17,6 +18,7 @@ import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
/// A class which mocks [FileSelectorPlatform].
///
@ -28,51 +30,91 @@ class MockFileSelectorPlatform extends _i1.Mock
}
@override
_i3.Future<_i2.XFile?> openFile(
{List<_i2.XTypeGroup>? acceptedTypeGroups,
String? initialDirectory,
String? confirmButtonText}) =>
_i3.Future<_i2.XFile?> openFile({
List<_i2.XTypeGroup>? acceptedTypeGroups,
String? initialDirectory,
String? confirmButtonText,
}) =>
(super.noSuchMethod(
Invocation.method(#openFile, [], {
Invocation.method(
#openFile,
[],
{
#acceptedTypeGroups: acceptedTypeGroups,
#initialDirectory: initialDirectory,
#confirmButtonText: confirmButtonText
}),
returnValue: Future<_i2.XFile?>.value()) as _i3.Future<_i2.XFile?>);
#confirmButtonText: confirmButtonText,
},
),
returnValue: _i3.Future<_i2.XFile?>.value(),
) as _i3.Future<_i2.XFile?>);
@override
_i3.Future<List<_i2.XFile>> openFiles(
{List<_i2.XTypeGroup>? acceptedTypeGroups,
String? initialDirectory,
String? confirmButtonText}) =>
_i3.Future<List<_i2.XFile>> openFiles({
List<_i2.XTypeGroup>? acceptedTypeGroups,
String? initialDirectory,
String? confirmButtonText,
}) =>
(super.noSuchMethod(
Invocation.method(#openFiles, [], {
#acceptedTypeGroups: acceptedTypeGroups,
#initialDirectory: initialDirectory,
#confirmButtonText: confirmButtonText
}),
returnValue: Future<List<_i2.XFile>>.value(<_i2.XFile>[]))
as _i3.Future<List<_i2.XFile>>);
Invocation.method(
#openFiles,
[],
{
#acceptedTypeGroups: acceptedTypeGroups,
#initialDirectory: initialDirectory,
#confirmButtonText: confirmButtonText,
},
),
returnValue: _i3.Future<List<_i2.XFile>>.value(<_i2.XFile>[]),
) as _i3.Future<List<_i2.XFile>>);
@override
_i3.Future<String?> getSavePath(
{List<_i2.XTypeGroup>? acceptedTypeGroups,
String? initialDirectory,
String? suggestedName,
String? confirmButtonText}) =>
_i3.Future<String?> getSavePath({
List<_i2.XTypeGroup>? acceptedTypeGroups,
String? initialDirectory,
String? suggestedName,
String? confirmButtonText,
}) =>
(super.noSuchMethod(
Invocation.method(#getSavePath, [], {
Invocation.method(
#getSavePath,
[],
{
#acceptedTypeGroups: acceptedTypeGroups,
#initialDirectory: initialDirectory,
#suggestedName: suggestedName,
#confirmButtonText: confirmButtonText
}),
returnValue: Future<String?>.value()) as _i3.Future<String?>);
#confirmButtonText: confirmButtonText,
},
),
returnValue: _i3.Future<String?>.value(),
) as _i3.Future<String?>);
@override
_i3.Future<String?> getDirectoryPath(
{String? initialDirectory, String? confirmButtonText}) =>
_i3.Future<String?> getDirectoryPath({
String? initialDirectory,
String? confirmButtonText,
}) =>
(super.noSuchMethod(
Invocation.method(#getDirectoryPath, [], {
Invocation.method(
#getDirectoryPath,
[],
{
#initialDirectory: initialDirectory,
#confirmButtonText: confirmButtonText
}),
returnValue: Future<String?>.value()) as _i3.Future<String?>);
#confirmButtonText: confirmButtonText,
},
),
returnValue: _i3.Future<String?>.value(),
) as _i3.Future<String?>);
@override
_i3.Future<List<String>> getDirectoryPaths({
String? initialDirectory,
String? confirmButtonText,
}) =>
(super.noSuchMethod(
Invocation.method(
#getDirectoryPaths,
[],
{
#initialDirectory: initialDirectory,
#confirmButtonText: confirmButtonText,
},
),
returnValue: _i3.Future<List<String>>.value(<String>[]),
) as _i3.Future<List<String>>);
}

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 0.2.4+3
* Clarifies explanation of endorsement in README.

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the in_app_purchase_android plugin.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:

View File

@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 0.2.4+3
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -28,5 +28,5 @@ dev_dependencies:
flutter_test:
sdk: flutter
json_serializable: ^6.3.1
mockito: 5.3.2
mockito: 5.4.0
test: ^1.16.0

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.
## 1.3.3

View File

@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 1.3.3
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:
@ -18,4 +18,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.
## 2.1.6

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the local_auth plugin.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:

View File

@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 2.1.6
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -34,5 +34,5 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
plugin_platform_interface: ^2.1.2

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.
## 1.0.7

View File

@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 1.0.7
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:
@ -18,4 +18,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 1.0.7
* Updates code to fix strict-cast violations.

View File

@ -6,7 +6,7 @@ repository: https://github.com/flutter/packages/tree/main/packages/metrics_cente
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+metrics_center%22
environment:
sdk: ">=2.17.0 <4.0.0"
sdk: ">=2.18.0 <4.0.0"
dependencies:
crypto: ^3.0.1
@ -19,5 +19,5 @@ dependencies:
dev_dependencies:
build_runner: ^2.1.1
fake_async: ^1.2.0
mockito: 5.3.2
mockito: 5.4.0
test: ^1.17.11

View File

@ -1,7 +1,8 @@
// Mocks generated by Mockito 5.0.14 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in metrics_center/test/gcs_lock_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5;
import 'dart:convert' as _i6;
import 'dart:typed_data' as _i7;
@ -11,24 +12,48 @@ import 'package:googleapis_auth/src/auth_client.dart' as _i4;
import 'package:http/http.dart' as _i3;
import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: always_specify_types
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: camel_case_types
// ignore_for_file: comment_references
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_overrides
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
class _FakeAccessCredentials_0 extends _i1.Fake
implements _i2.AccessCredentials {}
class _FakeAccessCredentials_0 extends _i1.SmartFake
implements _i2.AccessCredentials {
_FakeAccessCredentials_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeResponse_1 extends _i1.Fake implements _i3.Response {}
class _FakeResponse_1 extends _i1.SmartFake implements _i3.Response {
_FakeResponse_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeStreamedResponse_2 extends _i1.Fake
implements _i3.StreamedResponse {}
class _FakeStreamedResponse_2 extends _i1.SmartFake
implements _i3.StreamedResponse {
_FakeStreamedResponse_2(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
/// A class which mocks [AuthClient].
///
@ -39,79 +64,221 @@ class MockAuthClient extends _i1.Mock implements _i4.AuthClient {
}
@override
_i2.AccessCredentials get credentials =>
(super.noSuchMethod(Invocation.getter(#credentials),
returnValue: _FakeAccessCredentials_0()) as _i2.AccessCredentials);
_i2.AccessCredentials get credentials => (super.noSuchMethod(
Invocation.getter(#credentials),
returnValue: _FakeAccessCredentials_0(
this,
Invocation.getter(#credentials),
),
) as _i2.AccessCredentials);
@override
String toString() => super.toString();
@override
_i5.Future<_i3.Response> head(Uri? url, {Map<String, String>? headers}) =>
(super.noSuchMethod(Invocation.method(#head, [url], {#headers: headers}),
returnValue: Future<_i3.Response>.value(_FakeResponse_1()))
as _i5.Future<_i3.Response>);
@override
_i5.Future<_i3.Response> get(Uri? url, {Map<String, String>? headers}) =>
(super.noSuchMethod(Invocation.method(#get, [url], {#headers: headers}),
returnValue: Future<_i3.Response>.value(_FakeResponse_1()))
as _i5.Future<_i3.Response>);
@override
_i5.Future<_i3.Response> post(Uri? url,
{Map<String, String>? headers,
Object? body,
_i6.Encoding? encoding}) =>
_i5.Future<_i3.Response> head(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(#post, [url],
{#headers: headers, #body: body, #encoding: encoding}),
returnValue: Future<_i3.Response>.value(_FakeResponse_1()))
as _i5.Future<_i3.Response>);
Invocation.method(
#head,
[url],
{#headers: headers},
),
returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#head,
[url],
{#headers: headers},
),
)),
) as _i5.Future<_i3.Response>);
@override
_i5.Future<_i3.Response> put(Uri? url,
{Map<String, String>? headers,
Object? body,
_i6.Encoding? encoding}) =>
_i5.Future<_i3.Response> get(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(#put, [url],
{#headers: headers, #body: body, #encoding: encoding}),
returnValue: Future<_i3.Response>.value(_FakeResponse_1()))
as _i5.Future<_i3.Response>);
Invocation.method(
#get,
[url],
{#headers: headers},
),
returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#get,
[url],
{#headers: headers},
),
)),
) as _i5.Future<_i3.Response>);
@override
_i5.Future<_i3.Response> patch(Uri? url,
{Map<String, String>? headers,
Object? body,
_i6.Encoding? encoding}) =>
_i5.Future<_i3.Response> post(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i6.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(#patch, [url],
{#headers: headers, #body: body, #encoding: encoding}),
returnValue: Future<_i3.Response>.value(_FakeResponse_1()))
as _i5.Future<_i3.Response>);
Invocation.method(
#post,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#post,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i5.Future<_i3.Response>);
@override
_i5.Future<_i3.Response> delete(Uri? url,
{Map<String, String>? headers,
Object? body,
_i6.Encoding? encoding}) =>
_i5.Future<_i3.Response> put(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i6.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(#delete, [url],
{#headers: headers, #body: body, #encoding: encoding}),
returnValue: Future<_i3.Response>.value(_FakeResponse_1()))
as _i5.Future<_i3.Response>);
Invocation.method(
#put,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#put,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i5.Future<_i3.Response>);
@override
_i5.Future<String> read(Uri? url, {Map<String, String>? headers}) =>
(super.noSuchMethod(Invocation.method(#read, [url], {#headers: headers}),
returnValue: Future<String>.value('')) as _i5.Future<String>);
@override
_i5.Future<_i7.Uint8List> readBytes(Uri? url,
{Map<String, String>? headers}) =>
_i5.Future<_i3.Response> patch(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i6.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(#readBytes, [url], {#headers: headers}),
returnValue: Future<_i7.Uint8List>.value(_i7.Uint8List(0)))
as _i5.Future<_i7.Uint8List>);
Invocation.method(
#patch,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#patch,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i5.Future<_i3.Response>);
@override
_i5.Future<_i3.Response> delete(
Uri? url, {
Map<String, String>? headers,
Object? body,
_i6.Encoding? encoding,
}) =>
(super.noSuchMethod(
Invocation.method(
#delete,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
returnValue: _i5.Future<_i3.Response>.value(_FakeResponse_1(
this,
Invocation.method(
#delete,
[url],
{
#headers: headers,
#body: body,
#encoding: encoding,
},
),
)),
) as _i5.Future<_i3.Response>);
@override
_i5.Future<String> read(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(
#read,
[url],
{#headers: headers},
),
returnValue: _i5.Future<String>.value(''),
) as _i5.Future<String>);
@override
_i5.Future<_i7.Uint8List> readBytes(
Uri? url, {
Map<String, String>? headers,
}) =>
(super.noSuchMethod(
Invocation.method(
#readBytes,
[url],
{#headers: headers},
),
returnValue: _i5.Future<_i7.Uint8List>.value(_i7.Uint8List(0)),
) as _i5.Future<_i7.Uint8List>);
@override
_i5.Future<_i3.StreamedResponse> send(_i3.BaseRequest? request) =>
(super.noSuchMethod(Invocation.method(#send, [request]),
returnValue:
Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2()))
as _i5.Future<_i3.StreamedResponse>);
(super.noSuchMethod(
Invocation.method(
#send,
[request],
),
returnValue:
_i5.Future<_i3.StreamedResponse>.value(_FakeStreamedResponse_2(
this,
Invocation.method(
#send,
[request],
),
)),
) as _i5.Future<_i3.StreamedResponse>);
@override
void close() => super.noSuchMethod(Invocation.method(#close, []),
returnValueForMissingStub: null);
void close() => super.noSuchMethod(
Invocation.method(
#close,
[],
),
returnValueForMissingStub: null,
);
}

View File

@ -1,38 +1,96 @@
// Mocks generated by Mockito 5.0.14 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in metrics_center/test/skiaperf_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i2;
import 'package:gcloud/common.dart' as _i4;
import 'package:gcloud/storage.dart' as _i3;
import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: always_specify_types
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: camel_case_types
// ignore_for_file: comment_references
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_overrides
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
class _FakeStreamSink_0<S> extends _i1.Fake implements _i2.StreamSink<S> {}
class _FakeStreamSink_0<S> extends _i1.SmartFake implements _i2.StreamSink<S> {
_FakeStreamSink_0(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObjectInfo_1 extends _i1.Fake implements _i3.ObjectInfo {}
class _FakeObjectInfo_1 extends _i1.SmartFake implements _i3.ObjectInfo {
_FakeObjectInfo_1(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakePage_2<T> extends _i1.Fake implements _i4.Page<T> {}
class _FakePage_2<T> extends _i1.SmartFake implements _i4.Page<T> {
_FakePage_2(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeDateTime_3 extends _i1.Fake implements DateTime {}
class _FakeDateTime_3 extends _i1.SmartFake implements DateTime {
_FakeDateTime_3(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeUri_4 extends _i1.Fake implements Uri {}
class _FakeUri_4 extends _i1.SmartFake implements Uri {
_FakeUri_4(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObjectGeneration_5 extends _i1.Fake
implements _i3.ObjectGeneration {}
class _FakeObjectGeneration_5 extends _i1.SmartFake
implements _i3.ObjectGeneration {
_FakeObjectGeneration_5(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
class _FakeObjectMetadata_6 extends _i1.Fake implements _i3.ObjectMetadata {}
class _FakeObjectMetadata_6 extends _i1.SmartFake
implements _i3.ObjectMetadata {
_FakeObjectMetadata_6(
Object parent,
Invocation parentInvocation,
) : super(
parent,
parentInvocation,
);
}
/// A class which mocks [Bucket].
///
@ -43,92 +101,194 @@ class MockBucket extends _i1.Mock implements _i3.Bucket {
}
@override
String get bucketName =>
(super.noSuchMethod(Invocation.getter(#bucketName), returnValue: '')
as String);
String get bucketName => (super.noSuchMethod(
Invocation.getter(#bucketName),
returnValue: '',
) as String);
@override
String absoluteObjectName(String? objectName) =>
(super.noSuchMethod(Invocation.method(#absoluteObjectName, [objectName]),
returnValue: '') as String);
String absoluteObjectName(String? objectName) => (super.noSuchMethod(
Invocation.method(
#absoluteObjectName,
[objectName],
),
returnValue: '',
) as String);
@override
_i2.StreamSink<List<int>> write(String? objectName,
{int? length,
_i3.ObjectMetadata? metadata,
_i3.Acl? acl,
_i3.PredefinedAcl? predefinedAcl,
String? contentType}) =>
(super.noSuchMethod(
Invocation.method(#write, [
objectName
], {
#length: length,
#metadata: metadata,
#acl: acl,
#predefinedAcl: predefinedAcl,
#contentType: contentType
}),
returnValue: _FakeStreamSink_0<List<int>>())
as _i2.StreamSink<List<int>>);
@override
_i2.Future<_i3.ObjectInfo> writeBytes(String? name, List<int>? bytes,
{_i3.ObjectMetadata? metadata,
_i3.Acl? acl,
_i3.PredefinedAcl? predefinedAcl,
String? contentType}) =>
(super.noSuchMethod(
Invocation.method(#writeBytes, [
name,
bytes
], {
#metadata: metadata,
#acl: acl,
#predefinedAcl: predefinedAcl,
#contentType: contentType
}),
returnValue: Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1()))
as _i2.Future<_i3.ObjectInfo>);
@override
_i2.Stream<List<int>> read(String? objectName, {int? offset, int? length}) =>
_i2.StreamSink<List<int>> write(
String? objectName, {
int? length,
_i3.ObjectMetadata? metadata,
_i3.Acl? acl,
_i3.PredefinedAcl? predefinedAcl,
String? contentType,
}) =>
(super.noSuchMethod(
Invocation.method(
#write,
[objectName],
{
#length: length,
#metadata: metadata,
#acl: acl,
#predefinedAcl: predefinedAcl,
#contentType: contentType,
},
),
returnValue: _FakeStreamSink_0<List<int>>(
this,
Invocation.method(
#read, [objectName], {#offset: offset, #length: length}),
returnValue: Stream<List<int>>.empty()) as _i2.Stream<List<int>>);
#write,
[objectName],
{
#length: length,
#metadata: metadata,
#acl: acl,
#predefinedAcl: predefinedAcl,
#contentType: contentType,
},
),
),
) as _i2.StreamSink<List<int>>);
@override
_i2.Future<_i3.ObjectInfo> info(String? name) =>
(super.noSuchMethod(Invocation.method(#info, [name]),
returnValue: Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1()))
as _i2.Future<_i3.ObjectInfo>);
_i2.Future<_i3.ObjectInfo> writeBytes(
String? name,
List<int>? bytes, {
_i3.ObjectMetadata? metadata,
_i3.Acl? acl,
_i3.PredefinedAcl? predefinedAcl,
String? contentType,
}) =>
(super.noSuchMethod(
Invocation.method(
#writeBytes,
[
name,
bytes,
],
{
#metadata: metadata,
#acl: acl,
#predefinedAcl: predefinedAcl,
#contentType: contentType,
},
),
returnValue: _i2.Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1(
this,
Invocation.method(
#writeBytes,
[
name,
bytes,
],
{
#metadata: metadata,
#acl: acl,
#predefinedAcl: predefinedAcl,
#contentType: contentType,
},
),
)),
) as _i2.Future<_i3.ObjectInfo>);
@override
_i2.Future<dynamic> delete(String? name) =>
(super.noSuchMethod(Invocation.method(#delete, [name]),
returnValue: Future<dynamic>.value()) as _i2.Future<dynamic>);
_i2.Stream<List<int>> read(
String? objectName, {
int? offset,
int? length,
}) =>
(super.noSuchMethod(
Invocation.method(
#read,
[objectName],
{
#offset: offset,
#length: length,
},
),
returnValue: _i2.Stream<List<int>>.empty(),
) as _i2.Stream<List<int>>);
@override
_i2.Future<_i3.ObjectInfo> info(String? name) => (super.noSuchMethod(
Invocation.method(
#info,
[name],
),
returnValue: _i2.Future<_i3.ObjectInfo>.value(_FakeObjectInfo_1(
this,
Invocation.method(
#info,
[name],
),
)),
) as _i2.Future<_i3.ObjectInfo>);
@override
_i2.Future<dynamic> delete(String? name) => (super.noSuchMethod(
Invocation.method(
#delete,
[name],
),
returnValue: _i2.Future<dynamic>.value(),
) as _i2.Future<dynamic>);
@override
_i2.Future<dynamic> updateMetadata(
String? objectName, _i3.ObjectMetadata? metadata) =>
String? objectName,
_i3.ObjectMetadata? metadata,
) =>
(super.noSuchMethod(
Invocation.method(#updateMetadata, [objectName, metadata]),
returnValue: Future<dynamic>.value()) as _i2.Future<dynamic>);
Invocation.method(
#updateMetadata,
[
objectName,
metadata,
],
),
returnValue: _i2.Future<dynamic>.value(),
) as _i2.Future<dynamic>);
@override
_i2.Stream<_i3.BucketEntry> list({String? prefix, String? delimiter}) =>
_i2.Stream<_i3.BucketEntry> list({
String? prefix,
String? delimiter,
}) =>
(super.noSuchMethod(
Invocation.method(
#list, [], {#prefix: prefix, #delimiter: delimiter}),
returnValue: Stream<_i3.BucketEntry>.empty())
as _i2.Stream<_i3.BucketEntry>);
Invocation.method(
#list,
[],
{
#prefix: prefix,
#delimiter: delimiter,
},
),
returnValue: _i2.Stream<_i3.BucketEntry>.empty(),
) as _i2.Stream<_i3.BucketEntry>);
@override
_i2.Future<_i4.Page<_i3.BucketEntry>> page(
{String? prefix, String? delimiter, int? pageSize = 50}) =>
_i2.Future<_i4.Page<_i3.BucketEntry>> page({
String? prefix,
String? delimiter,
int? pageSize = 50,
}) =>
(super.noSuchMethod(
Invocation.method(#page, [], {
#prefix: prefix,
#delimiter: delimiter,
#pageSize: pageSize
}),
returnValue: Future<_i4.Page<_i3.BucketEntry>>.value(
_FakePage_2<_i3.BucketEntry>()))
as _i2.Future<_i4.Page<_i3.BucketEntry>>);
@override
String toString() => super.toString();
Invocation.method(
#page,
[],
{
#prefix: prefix,
#delimiter: delimiter,
#pageSize: pageSize,
},
),
returnValue: _i2.Future<_i4.Page<_i3.BucketEntry>>.value(
_FakePage_2<_i3.BucketEntry>(
this,
Invocation.method(
#page,
[],
{
#prefix: prefix,
#delimiter: delimiter,
#pageSize: pageSize,
},
),
)),
) as _i2.Future<_i4.Page<_i3.BucketEntry>>);
}
/// A class which mocks [ObjectInfo].
@ -140,36 +300,60 @@ class MockObjectInfo extends _i1.Mock implements _i3.ObjectInfo {
}
@override
String get name =>
(super.noSuchMethod(Invocation.getter(#name), returnValue: '') as String);
String get name => (super.noSuchMethod(
Invocation.getter(#name),
returnValue: '',
) as String);
@override
int get length =>
(super.noSuchMethod(Invocation.getter(#length), returnValue: 0) as int);
int get length => (super.noSuchMethod(
Invocation.getter(#length),
returnValue: 0,
) as int);
@override
DateTime get updated => (super.noSuchMethod(Invocation.getter(#updated),
returnValue: _FakeDateTime_3()) as DateTime);
DateTime get updated => (super.noSuchMethod(
Invocation.getter(#updated),
returnValue: _FakeDateTime_3(
this,
Invocation.getter(#updated),
),
) as DateTime);
@override
String get etag =>
(super.noSuchMethod(Invocation.getter(#etag), returnValue: '') as String);
String get etag => (super.noSuchMethod(
Invocation.getter(#etag),
returnValue: '',
) as String);
@override
List<int> get md5Hash =>
(super.noSuchMethod(Invocation.getter(#md5Hash), returnValue: <int>[])
as List<int>);
List<int> get md5Hash => (super.noSuchMethod(
Invocation.getter(#md5Hash),
returnValue: <int>[],
) as List<int>);
@override
int get crc32CChecksum =>
(super.noSuchMethod(Invocation.getter(#crc32CChecksum), returnValue: 0)
as int);
int get crc32CChecksum => (super.noSuchMethod(
Invocation.getter(#crc32CChecksum),
returnValue: 0,
) as int);
@override
Uri get downloadLink => (super.noSuchMethod(Invocation.getter(#downloadLink),
returnValue: _FakeUri_4()) as Uri);
Uri get downloadLink => (super.noSuchMethod(
Invocation.getter(#downloadLink),
returnValue: _FakeUri_4(
this,
Invocation.getter(#downloadLink),
),
) as Uri);
@override
_i3.ObjectGeneration get generation =>
(super.noSuchMethod(Invocation.getter(#generation),
returnValue: _FakeObjectGeneration_5()) as _i3.ObjectGeneration);
_i3.ObjectGeneration get generation => (super.noSuchMethod(
Invocation.getter(#generation),
returnValue: _FakeObjectGeneration_5(
this,
Invocation.getter(#generation),
),
) as _i3.ObjectGeneration);
@override
_i3.ObjectMetadata get metadata =>
(super.noSuchMethod(Invocation.getter(#metadata),
returnValue: _FakeObjectMetadata_6()) as _i3.ObjectMetadata);
@override
String toString() => super.toString();
_i3.ObjectMetadata get metadata => (super.noSuchMethod(
Invocation.getter(#metadata),
returnValue: _FakeObjectMetadata_6(
this,
Invocation.getter(#metadata),
),
) as _i3.ObjectMetadata);
}

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 2.2.1
* Updates to `pigeon` version 9.

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the path_provider plugin.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:

View File

@ -5,8 +5,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 2.2.1
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -30,6 +30,6 @@ dev_dependencies:
build_runner: ^2.3.2
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
path: ^1.8.0
pigeon: ^9.1.0

View File

@ -1,5 +1,5 @@
// Mocks generated by Mockito 5.3.2 from annotations
// in path_provider_foundation/example/ios/.symlinks/plugins/path_provider_foundation/test/path_provider_foundation_test.dart.
// Mocks generated by Mockito 5.4.0 from annotations
// in path_provider_foundation/test/path_provider_foundation_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes

View File

@ -1,6 +1,7 @@
## 9.1.2
* [cpp] Fixes class parameters to Flutter APIs.
* Updates minimum Flutter version to 3.3.
## 9.1.1

View File

@ -4,8 +4,8 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
cupertino_icons: ^1.0.2

View File

@ -3,8 +3,8 @@ description: Unit test scaffold for null safe Flutter projects.
publish_to: none # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:
@ -14,7 +14,7 @@ dev_dependencies:
build_runner: ^2.1.10
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
flutter:
uses-material-design: true

View File

@ -1,42 +0,0 @@
// Mocks generated by Mockito 5.0.7 from annotations
// in flutter_unit_tests/test/all_datatypes_test.dart.
// Do not manually edit this file.
import 'dart:async' as _i3;
import 'dart:typed_data' as _i4;
import 'dart:ui' as _i5;
import 'package:flutter/src/services/binary_messenger.dart' as _i2;
import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: comment_references
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: prefer_const_constructors
// ignore_for_file: avoid_redundant_argument_values
/// A class which mocks [BinaryMessenger].
///
/// See the documentation for Mockito's code generation for more information.
class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger {
MockBinaryMessenger() {
_i1.throwOnMissingStub(this);
}
@override
_i3.Future<void> handlePlatformMessage(String? channel, _i4.ByteData? data,
_i5.PlatformMessageResponseCallback? callback) =>
(super.noSuchMethod(
Invocation.method(#handlePlatformMessage, [channel, data, callback]),
returnValue: Future<void>.value(null),
returnValueForMissingStub: Future.value()) as _i3.Future<void>);
@override
_i3.Future<_i4.ByteData?>? send(String? channel, _i4.ByteData? message) =>
(super.noSuchMethod(Invocation.method(#send, [channel, message]))
as _i3.Future<_i4.ByteData?>?);
@override
void setMessageHandler(String? channel, _i2.MessageHandler? handler) => super
.noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]),
returnValueForMissingStub: null);
}

View File

@ -1,7 +1,8 @@
// Mocks generated by Mockito 5.0.7 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in flutter_unit_tests/test/multiple_arity_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'dart:typed_data' as _i4;
import 'dart:ui' as _i5;
@ -9,12 +10,16 @@ import 'dart:ui' as _i5;
import 'package:flutter/src/services/binary_messenger.dart' as _i2;
import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: comment_references
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: prefer_const_constructors
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
/// A class which mocks [BinaryMessenger].
///
@ -25,18 +30,48 @@ class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger {
}
@override
_i3.Future<void> handlePlatformMessage(String? channel, _i4.ByteData? data,
_i5.PlatformMessageResponseCallback? callback) =>
_i3.Future<void> handlePlatformMessage(
String? channel,
_i4.ByteData? data,
_i5.PlatformMessageResponseCallback? callback,
) =>
(super.noSuchMethod(
Invocation.method(#handlePlatformMessage, [channel, data, callback]),
returnValue: Future<void>.value(null),
returnValueForMissingStub: Future.value()) as _i3.Future<void>);
Invocation.method(
#handlePlatformMessage,
[
channel,
data,
callback,
],
),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
) as _i3.Future<void>);
@override
_i3.Future<_i4.ByteData?>? send(String? channel, _i4.ByteData? message) =>
(super.noSuchMethod(Invocation.method(#send, [channel, message]))
as _i3.Future<_i4.ByteData?>?);
_i3.Future<_i4.ByteData?>? send(
String? channel,
_i4.ByteData? message,
) =>
(super.noSuchMethod(Invocation.method(
#send,
[
channel,
message,
],
)) as _i3.Future<_i4.ByteData?>?);
@override
void setMessageHandler(String? channel, _i2.MessageHandler? handler) => super
.noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]),
returnValueForMissingStub: null);
void setMessageHandler(
String? channel,
_i2.MessageHandler? handler,
) =>
super.noSuchMethod(
Invocation.method(
#setMessageHandler,
[
channel,
handler,
],
),
returnValueForMissingStub: null,
);
}

View File

@ -1,21 +1,26 @@
// Mocks generated by Mockito 5.0.7 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in flutter_unit_tests/test/null_safe_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'dart:typed_data' as _i4;
import 'dart:ui' as _i5;
import 'package:flutter/src/services/binary_messenger.dart' as _i2;
import 'package:flutter/services.dart' as _i2;
import 'package:flutter_unit_tests/nullable_returns.gen.dart' as _i6;
import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: comment_references
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: prefer_const_constructors
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
/// A class which mocks [BinaryMessenger].
///
@ -26,20 +31,50 @@ class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger {
}
@override
_i3.Future<void> handlePlatformMessage(String? channel, _i4.ByteData? data,
_i5.PlatformMessageResponseCallback? callback) =>
_i3.Future<void> handlePlatformMessage(
String? channel,
_i4.ByteData? data,
_i5.PlatformMessageResponseCallback? callback,
) =>
(super.noSuchMethod(
Invocation.method(#handlePlatformMessage, [channel, data, callback]),
returnValue: Future<void>.value(null),
returnValueForMissingStub: Future.value()) as _i3.Future<void>);
Invocation.method(
#handlePlatformMessage,
[
channel,
data,
callback,
],
),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
) as _i3.Future<void>);
@override
_i3.Future<_i4.ByteData?>? send(String? channel, _i4.ByteData? message) =>
(super.noSuchMethod(Invocation.method(#send, [channel, message]))
as _i3.Future<_i4.ByteData?>?);
_i3.Future<_i4.ByteData?>? send(
String? channel,
_i4.ByteData? message,
) =>
(super.noSuchMethod(Invocation.method(
#send,
[
channel,
message,
],
)) as _i3.Future<_i4.ByteData?>?);
@override
void setMessageHandler(String? channel, _i2.MessageHandler? handler) => super
.noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]),
returnValueForMissingStub: null);
void setMessageHandler(
String? channel,
_i2.MessageHandler? handler,
) =>
super.noSuchMethod(
Invocation.method(
#setMessageHandler,
[
channel,
handler,
],
),
returnValueForMissingStub: null,
);
}
/// A class which mocks [NullableArgFlutterApi].
@ -52,9 +87,13 @@ class MockNullableArgFlutterApi extends _i1.Mock
}
@override
int doit(int? x) =>
(super.noSuchMethod(Invocation.method(#doit, [x]), returnValue: 0)
as int);
int doit(int? x) => (super.noSuchMethod(
Invocation.method(
#doit,
[x],
),
returnValue: 0,
) as int);
}
/// A class which mocks [NullableReturnFlutterApi].
@ -77,9 +116,13 @@ class MockNullableCollectionArgFlutterApi extends _i1.Mock
}
@override
List<String?> doit(List<String?>? x) => (super
.noSuchMethod(Invocation.method(#doit, [x]), returnValue: <String?>[])
as List<String?>);
List<String?> doit(List<String?>? x) => (super.noSuchMethod(
Invocation.method(
#doit,
[x],
),
returnValue: <String?>[],
) as List<String?>);
}
/// A class which mocks [NullableCollectionReturnFlutterApi].

View File

@ -1,47 +1,80 @@
// Mocks generated by Mockito 5.0.7 from annotations
// Mocks generated by Mockito 5.4.0 from annotations
// in flutter_unit_tests/test/primitive_test.dart.
// Do not manually edit this file.
import 'dart:async' as _i4;
import 'dart:typed_data' as _i2;
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i3;
import 'dart:typed_data' as _i4;
import 'dart:ui' as _i5;
import 'package:flutter/src/services/binary_messenger.dart' as _i3;
import 'package:flutter/services.dart' as _i2;
import 'package:flutter_unit_tests/primitive.gen.dart' as _i6;
import 'package:mockito/mockito.dart' as _i1;
// ignore_for_file: comment_references
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: prefer_const_constructors
// ignore_for_file: type=lint
// ignore_for_file: avoid_redundant_argument_values
class _FakeInt32List extends _i1.Fake implements _i2.Int32List {}
// ignore_for_file: avoid_setters_without_getters
// ignore_for_file: comment_references
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
/// A class which mocks [BinaryMessenger].
///
/// See the documentation for Mockito's code generation for more information.
class MockBinaryMessenger extends _i1.Mock implements _i3.BinaryMessenger {
class MockBinaryMessenger extends _i1.Mock implements _i2.BinaryMessenger {
MockBinaryMessenger() {
_i1.throwOnMissingStub(this);
}
@override
_i4.Future<void> handlePlatformMessage(String? channel, _i2.ByteData? data,
_i5.PlatformMessageResponseCallback? callback) =>
_i3.Future<void> handlePlatformMessage(
String? channel,
_i4.ByteData? data,
_i5.PlatformMessageResponseCallback? callback,
) =>
(super.noSuchMethod(
Invocation.method(#handlePlatformMessage, [channel, data, callback]),
returnValue: Future<void>.value(null),
returnValueForMissingStub: Future.value()) as _i4.Future<void>);
Invocation.method(
#handlePlatformMessage,
[
channel,
data,
callback,
],
),
returnValue: _i3.Future<void>.value(),
returnValueForMissingStub: _i3.Future<void>.value(),
) as _i3.Future<void>);
@override
_i4.Future<_i2.ByteData?>? send(String? channel, _i2.ByteData? message) =>
(super.noSuchMethod(Invocation.method(#send, [channel, message]))
as _i4.Future<_i2.ByteData?>?);
_i3.Future<_i4.ByteData?>? send(
String? channel,
_i4.ByteData? message,
) =>
(super.noSuchMethod(Invocation.method(
#send,
[
channel,
message,
],
)) as _i3.Future<_i4.ByteData?>?);
@override
void setMessageHandler(String? channel, _i3.MessageHandler? handler) => super
.noSuchMethod(Invocation.method(#setMessageHandler, [channel, handler]),
returnValueForMissingStub: null);
void setMessageHandler(
String? channel,
_i2.MessageHandler? handler,
) =>
super.noSuchMethod(
Invocation.method(
#setMessageHandler,
[
channel,
handler,
],
),
returnValueForMissingStub: null,
);
}
/// A class which mocks [PrimitiveFlutterApi].
@ -54,39 +87,77 @@ class MockPrimitiveFlutterApi extends _i1.Mock
}
@override
int anInt(int? value) =>
(super.noSuchMethod(Invocation.method(#anInt, [value]), returnValue: 0)
as int);
int anInt(int? value) => (super.noSuchMethod(
Invocation.method(
#anInt,
[value],
),
returnValue: 0,
) as int);
@override
bool aBool(bool? value) => (super
.noSuchMethod(Invocation.method(#aBool, [value]), returnValue: false)
as bool);
bool aBool(bool? value) => (super.noSuchMethod(
Invocation.method(
#aBool,
[value],
),
returnValue: false,
) as bool);
@override
String aString(String? value) =>
(super.noSuchMethod(Invocation.method(#aString, [value]), returnValue: '')
as String);
String aString(String? value) => (super.noSuchMethod(
Invocation.method(
#aString,
[value],
),
returnValue: '',
) as String);
@override
double aDouble(double? value) => (super
.noSuchMethod(Invocation.method(#aDouble, [value]), returnValue: 0.0)
as double);
double aDouble(double? value) => (super.noSuchMethod(
Invocation.method(
#aDouble,
[value],
),
returnValue: 0.0,
) as double);
@override
Map<Object?, Object?> aMap(Map<Object?, Object?>? value) =>
(super.noSuchMethod(Invocation.method(#aMap, [value]),
returnValue: <Object?, Object?>{}) as Map<Object?, Object?>);
(super.noSuchMethod(
Invocation.method(
#aMap,
[value],
),
returnValue: <Object?, Object?>{},
) as Map<Object?, Object?>);
@override
List<Object?> aList(List<Object?>? value) =>
(super.noSuchMethod(Invocation.method(#aList, [value]),
returnValue: <Object?>[]) as List<Object?>);
List<Object?> aList(List<Object?>? value) => (super.noSuchMethod(
Invocation.method(
#aList,
[value],
),
returnValue: <Object?>[],
) as List<Object?>);
@override
_i2.Int32List anInt32List(_i2.Int32List? value) =>
(super.noSuchMethod(Invocation.method(#anInt32List, [value]),
returnValue: _FakeInt32List()) as _i2.Int32List);
_i4.Int32List anInt32List(_i4.Int32List? value) => (super.noSuchMethod(
Invocation.method(
#anInt32List,
[value],
),
returnValue: _i4.Int32List(0),
) as _i4.Int32List);
@override
List<bool?> aBoolList(List<bool?>? value) =>
(super.noSuchMethod(Invocation.method(#aBoolList, [value]),
returnValue: <bool?>[]) as List<bool?>);
List<bool?> aBoolList(List<bool?>? value) => (super.noSuchMethod(
Invocation.method(
#aBoolList,
[value],
),
returnValue: <bool?>[],
) as List<bool?>);
@override
Map<String?, int?> aStringIntMap(Map<String?, int?>? value) =>
(super.noSuchMethod(Invocation.method(#aStringIntMap, [value]),
returnValue: <String?, int?>{}) as Map<String?, int?>);
(super.noSuchMethod(
Invocation.method(
#aStringIntMap,
[value],
),
returnValue: <String?, int?>{},
) as Map<String?, int?>);
}

View File

@ -5,7 +5,7 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 9.1.2 # This must match the version in lib/generator_tools.dart
environment:
sdk: ">=2.17.0 <4.0.0"
sdk: ">=2.18.0 <4.0.0"
dependencies:
analyzer: "^5.2.0"

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 2.1.4
* Updates links for the merge of flutter/plugins into flutter/packages.

View File

@ -18,11 +18,11 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 2.1.4
environment:
sdk: ">=2.17.0 <4.0.0"
sdk: ">=2.18.0 <4.0.0"
dependencies:
meta: ^1.3.0
dev_dependencies:
mockito: 5.3.2
mockito: 5.4.0
test: ^1.16.0

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.
## 1.0.2

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the quick_actions plugin.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:

View File

@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 1.0.2
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -29,5 +29,5 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
plugin_platform_interface: ^2.0.0

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.
## 1.0.4

View File

@ -7,8 +7,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 1.0.4
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:
@ -18,4 +18,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0

View File

@ -1,5 +1,6 @@
## NEXT
* Updates minimum Flutter version to 3.3.
* Aligns Dart and Flutter SDK constraints.
## 6.1.10

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the url_launcher plugin.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:
@ -26,7 +26,7 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
plugin_platform_interface: ^2.0.0
flutter:

View File

@ -6,8 +6,8 @@ issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+
version: 6.1.10
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
flutter:
plugin:
@ -41,6 +41,6 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
plugin_platform_interface: ^2.0.0
test: ^1.16.3

View File

@ -1,3 +1,7 @@
## NEXT
* Updates minimum Flutter version to 3.3.
## 6.0.26
* Bump RoboElectric dependency to 4.4.1 to support AndroidX.

View File

@ -3,8 +3,8 @@ description: Demonstrates how to use the url_launcher plugin.
publish_to: none
environment:
sdk: ">=2.17.0 <4.0.0"
flutter: ">=3.0.0"
sdk: ">=2.18.0 <4.0.0"
flutter: ">=3.3.0"
dependencies:
flutter:
@ -25,7 +25,7 @@ dev_dependencies:
sdk: flutter
integration_test:
sdk: flutter
mockito: 5.3.2
mockito: 5.4.0
plugin_platform_interface: ^2.0.0
flutter:

Some files were not shown because too many files have changed in this diff Show More