Creates a way to test private APIs in the Flutter package. (#65505)

This commit is contained in:
Greg Spencer
2020-09-13 15:52:03 -07:00
committed by GitHub
parent 4f62680809
commit 94592acb71
18 changed files with 495 additions and 225 deletions

View File

@@ -26,7 +26,7 @@ const Map<String, String> _kManuallyPinnedDependencies = <String, String>{
// Therefore, we control the version of flutter_gallery_assets so that
// existing tests do not fail when the package has a new version.
'flutter_gallery_assets': '^0.2.0',
'mockito': '^4.1.0', // Prevent mockito from downgrading to 4.0.0
'mockito': '4.1.1', // Prevent mockito from upgrading to the source gen version.
'vm_service_client': '0.2.6+2', // Final version before being marked deprecated.
'video_player': '0.10.6', // 0.10.7 fails a gallery smoke test for toString.
'flutter_template_images': '1.0.1', // Must always exactly match flutter_tools template.

View File

@@ -100,21 +100,17 @@ dependencies:
dev_dependencies:
collection: 1.15.0-nullsafety.2
mockito: 4.1.2
mockito: 4.1.1
file_testing: 2.1.0
test: 1.16.0-nullsafety.4
pubspec_parse: 0.1.5
build: 1.3.0 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
checked_yaml: 1.0.2 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
code_builder: 3.4.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
dart_style: 1.3.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
json_annotation: 3.0.1 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
node_preamble: 1.4.12 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
source_gen: 0.9.6 # THIS LINE IS AUTOGENERATED - TO UPDATE USE "flutter update-packages --force-upgrade"
dartdoc:
# Exclude this package from the hosted API docs.
nodoc: true
# PUBSPEC CHECKSUM: 65cb
# PUBSPEC CHECKSUM: 7423