diff --git a/.tool-versions b/.tool-versions index 5439e1df5..9b45878e1 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -flutter 3.13.7-stable +flutter 3.13.9-stable diff --git a/pubspec.yaml b/pubspec.yaml index e9303d349..a6335edd2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -5,65 +5,65 @@ publish_to: 'none' environment: sdk: '>=3.1.0 <4.0.0' - flutter: 3.13.7 + flutter: 3.13.9 dependencies: appstream: ^0.2.8 args: ^2.4.2 - cached_network_image: ^3.2.3 - collection: ^1.17.0 - dbus: ^0.7.8 + cached_network_image: ^3.3.0 + collection: ^1.17.2 + dbus: ^0.7.10 app_center_ratings_client: git: url: https://github.com/matthew-hagemann/app_center_ratings_client.dart.git ref: main crypto: ^3.0.3 - file: ^6.1.0 + file: ^6.1.4 flutter: sdk: flutter flutter_cache_manager: ^3.3.1 flutter_html: ^3.0.0-beta.2 flutter_localizations: sdk: flutter - flutter_markdown: ^0.6.15+1 - flutter_riverpod: ^2.3.6 - github: ^9.15.1 + flutter_markdown: ^0.6.18 + flutter_riverpod: ^2.4.6 + github: ^9.20.0 glib: ^0.0.1 gtk: ^2.1.0 handy_window: ^0.3.1 - intl: ^0.18.0 + intl: ^0.18.1 jwt_decode: ^0.3.1 meta: ^1.9.1 - package_info_plus: ^4.0.2 + package_info_plus: ^4.2.0 packagekit: ^0.2.6 path: ^1.8.3 shimmer: ^3.0.0 snapcraft_launcher: ^0.1.0 snapd: ^0.4.11 snowball_stemmer: ^0.1.0 - ubuntu_localizations: ^0.3.3 + ubuntu_localizations: ^0.3.4 ubuntu_logger: ^0.1.0 - ubuntu_service: ^0.2.2 + ubuntu_service: ^0.3.0 ubuntu_test: ^0.1.0-0 ubuntu_widgets: ^0.3.0 - url_launcher: ^6.1.12 - xdg_directories: ^1.0.0 - yaru: ^1.1.0 - yaru_icons: ^2.2.0 - yaru_widgets: ^3.2.0 - yaru_test: ^0.1.4 + url_launcher: ^6.2.1 + xdg_directories: ^1.0.3 + yaru: ^1.2.0 + yaru_icons: ^2.2.2 + yaru_widgets: ^3.3.0 + yaru_test: ^0.1.5 clock: ^1.1.1 dev_dependencies: - build_runner: ^2.4.5 + build_runner: ^2.4.6 fake_async: ^1.3.1 - flutter_lints: ^2.0.0 + flutter_lints: ^3.0.1 flutter_test: sdk: flutter integration_test: sdk: flutter - melos: ^3.0.0 - mockito: 5.4.2 + melos: ^3.2.0 + mockito: 5.4.3 flutter: uses-material-design: true diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 24c70ee6f..b623acae7 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -9,7 +9,7 @@ version: git parts: flutter-git: source: https://github.com/flutter/flutter.git - source-tag: 3.13.7 + source-tag: 3.13.9 source-depth: 1 plugin: nil override-build: | diff --git a/test/appstream_service_test.mocks.dart b/test/appstream_service_test.mocks.dart index 2f4ea7470..313a74a2a 100644 --- a/test/appstream_service_test.mocks.dart +++ b/test/appstream_service_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.3 from annotations // in app_center/test/appstream_service_test.dart. // Do not manually edit this file. @@ -13,6 +13,8 @@ import 'package:mockito/mockito.dart' as _i1; // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors diff --git a/test/initial_route_test.dart b/test/initial_route_test.dart index 8a67b7950..711800145 100644 --- a/test/initial_route_test.dart +++ b/test/initial_route_test.dart @@ -18,7 +18,7 @@ void main() { final listener = MockInitialRouteListener(); container.listen( initialRouteProvider, - listener, + listener.call, fireImmediately: true, ); @@ -34,7 +34,7 @@ void main() { final listener = MockInitialRouteListener(); container.listen( initialRouteProvider, - listener, + listener.call, fireImmediately: true, ); @@ -50,7 +50,7 @@ void main() { final listener = MockInitialRouteListener(); container.listen( initialRouteProvider, - listener, + listener.call, fireImmediately: true, ); @@ -65,7 +65,7 @@ void main() { final listener = MockInitialRouteListener(); container.listen( initialRouteProvider, - listener, + listener.call, fireImmediately: true, ); diff --git a/test/packagekit_service_test.mocks.dart b/test/packagekit_service_test.mocks.dart index 8716df376..03e5e4418 100644 --- a/test/packagekit_service_test.mocks.dart +++ b/test/packagekit_service_test.mocks.dart @@ -1,20 +1,23 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.3 from annotations // in app_center/test/packagekit_service_test.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i4; +import 'dart:async' as _i5; import 'package:dbus/src/dbus_client.dart' as _i2; import 'package:dbus/src/dbus_method_response.dart' as _i3; -import 'package:dbus/src/dbus_object.dart' as _i6; -import 'package:dbus/src/dbus_value.dart' as _i5; +import 'package:dbus/src/dbus_object.dart' as _i7; +import 'package:dbus/src/dbus_value.dart' as _i6; import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i4; // 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: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors @@ -61,7 +64,10 @@ class MockDBusClient extends _i1.Mock implements _i2.DBusClient { @override String get uniqueName => (super.noSuchMethod( Invocation.getter(#uniqueName), - returnValue: '', + returnValue: _i4.dummyValue( + this, + Invocation.getter(#uniqueName), + ), ) as String); @override @@ -71,36 +77,36 @@ class MockDBusClient extends _i1.Mock implements _i2.DBusClient { ) as Iterable); @override - _i4.Stream get nameAcquired => (super.noSuchMethod( + _i5.Stream get nameAcquired => (super.noSuchMethod( Invocation.getter(#nameAcquired), - returnValue: _i4.Stream.empty(), - ) as _i4.Stream); + returnValue: _i5.Stream.empty(), + ) as _i5.Stream); @override - _i4.Stream get nameLost => (super.noSuchMethod( + _i5.Stream get nameLost => (super.noSuchMethod( Invocation.getter(#nameLost), - returnValue: _i4.Stream.empty(), - ) as _i4.Stream); + returnValue: _i5.Stream.empty(), + ) as _i5.Stream); @override - _i4.Stream<_i2.DBusNameOwnerChangedEvent> get nameOwnerChanged => + _i5.Stream<_i2.DBusNameOwnerChangedEvent> get nameOwnerChanged => (super.noSuchMethod( Invocation.getter(#nameOwnerChanged), - returnValue: _i4.Stream<_i2.DBusNameOwnerChangedEvent>.empty(), - ) as _i4.Stream<_i2.DBusNameOwnerChangedEvent>); + returnValue: _i5.Stream<_i2.DBusNameOwnerChangedEvent>.empty(), + ) as _i5.Stream<_i2.DBusNameOwnerChangedEvent>); @override - _i4.Future close() => (super.noSuchMethod( + _i5.Future close() => (super.noSuchMethod( Invocation.method( #close, [], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); @override - _i4.Future<_i2.DBusRequestNameReply> requestName( + _i5.Future<_i2.DBusRequestNameReply> requestName( String? name, { Set<_i2.DBusRequestNameFlag>? flags = const {}, }) => @@ -110,107 +116,107 @@ class MockDBusClient extends _i1.Mock implements _i2.DBusClient { [name], {#flags: flags}, ), - returnValue: _i4.Future<_i2.DBusRequestNameReply>.value( + returnValue: _i5.Future<_i2.DBusRequestNameReply>.value( _i2.DBusRequestNameReply.primaryOwner), - ) as _i4.Future<_i2.DBusRequestNameReply>); + ) as _i5.Future<_i2.DBusRequestNameReply>); @override - _i4.Future<_i2.DBusReleaseNameReply> releaseName(String? name) => + _i5.Future<_i2.DBusReleaseNameReply> releaseName(String? name) => (super.noSuchMethod( Invocation.method( #releaseName, [name], ), - returnValue: _i4.Future<_i2.DBusReleaseNameReply>.value( + returnValue: _i5.Future<_i2.DBusReleaseNameReply>.value( _i2.DBusReleaseNameReply.released), - ) as _i4.Future<_i2.DBusReleaseNameReply>); + ) as _i5.Future<_i2.DBusReleaseNameReply>); @override - _i4.Future> listQueuedOwners(String? name) => + _i5.Future> listQueuedOwners(String? name) => (super.noSuchMethod( Invocation.method( #listQueuedOwners, [name], ), - returnValue: _i4.Future>.value([]), - ) as _i4.Future>); + returnValue: _i5.Future>.value([]), + ) as _i5.Future>); @override - _i4.Future> listNames() => (super.noSuchMethod( + _i5.Future> listNames() => (super.noSuchMethod( Invocation.method( #listNames, [], ), - returnValue: _i4.Future>.value([]), - ) as _i4.Future>); + returnValue: _i5.Future>.value([]), + ) as _i5.Future>); @override - _i4.Future> listActivatableNames() => (super.noSuchMethod( + _i5.Future> listActivatableNames() => (super.noSuchMethod( Invocation.method( #listActivatableNames, [], ), - returnValue: _i4.Future>.value([]), - ) as _i4.Future>); + returnValue: _i5.Future>.value([]), + ) as _i5.Future>); @override - _i4.Future<_i2.DBusStartServiceByNameReply> startServiceByName( + _i5.Future<_i2.DBusStartServiceByNameReply> startServiceByName( String? name) => (super.noSuchMethod( Invocation.method( #startServiceByName, [name], ), - returnValue: _i4.Future<_i2.DBusStartServiceByNameReply>.value( + returnValue: _i5.Future<_i2.DBusStartServiceByNameReply>.value( _i2.DBusStartServiceByNameReply.success), - ) as _i4.Future<_i2.DBusStartServiceByNameReply>); + ) as _i5.Future<_i2.DBusStartServiceByNameReply>); @override - _i4.Future nameHasOwner(String? name) => (super.noSuchMethod( + _i5.Future nameHasOwner(String? name) => (super.noSuchMethod( Invocation.method( #nameHasOwner, [name], ), - returnValue: _i4.Future.value(false), - ) as _i4.Future); + returnValue: _i5.Future.value(false), + ) as _i5.Future); @override - _i4.Future getNameOwner(String? name) => (super.noSuchMethod( + _i5.Future getNameOwner(String? name) => (super.noSuchMethod( Invocation.method( #getNameOwner, [name], ), - returnValue: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i5.Future.value(), + ) as _i5.Future); @override - _i4.Future getConnectionUnixUser(String? name) => (super.noSuchMethod( + _i5.Future getConnectionUnixUser(String? name) => (super.noSuchMethod( Invocation.method( #getConnectionUnixUser, [name], ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + returnValue: _i5.Future.value(0), + ) as _i5.Future); @override - _i4.Future getConnectionUnixProcessId(String? name) => + _i5.Future getConnectionUnixProcessId(String? name) => (super.noSuchMethod( Invocation.method( #getConnectionUnixProcessId, [name], ), - returnValue: _i4.Future.value(0), - ) as _i4.Future); + returnValue: _i5.Future.value(0), + ) as _i5.Future); @override - _i4.Future<_i2.DBusProcessCredentials> getConnectionCredentials( + _i5.Future<_i2.DBusProcessCredentials> getConnectionCredentials( String? name) => (super.noSuchMethod( Invocation.method( #getConnectionCredentials, [name], ), - returnValue: _i4.Future<_i2.DBusProcessCredentials>.value( + returnValue: _i5.Future<_i2.DBusProcessCredentials>.value( _FakeDBusProcessCredentials_0( this, Invocation.method( @@ -218,47 +224,59 @@ class MockDBusClient extends _i1.Mock implements _i2.DBusClient { [name], ), )), - ) as _i4.Future<_i2.DBusProcessCredentials>); + ) as _i5.Future<_i2.DBusProcessCredentials>); @override - _i4.Future getId() => (super.noSuchMethod( + _i5.Future getId() => (super.noSuchMethod( Invocation.method( #getId, [], ), - returnValue: _i4.Future.value(''), - ) as _i4.Future); + returnValue: _i5.Future.value(_i4.dummyValue( + this, + Invocation.method( + #getId, + [], + ), + )), + ) as _i5.Future); @override - _i4.Future ping([String? destination = r'org.freedesktop.DBus']) => + _i5.Future ping([String? destination = r'org.freedesktop.DBus']) => (super.noSuchMethod( Invocation.method( #ping, [destination], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); @override - _i4.Future getMachineId( + _i5.Future getMachineId( [String? destination = r'org.freedesktop.DBus']) => (super.noSuchMethod( Invocation.method( #getMachineId, [destination], ), - returnValue: _i4.Future.value(''), - ) as _i4.Future); + returnValue: _i5.Future.value(_i4.dummyValue( + this, + Invocation.method( + #getMachineId, + [destination], + ), + )), + ) as _i5.Future); @override - _i4.Future<_i3.DBusMethodSuccessResponse> callMethod({ + _i5.Future<_i3.DBusMethodSuccessResponse> callMethod({ String? destination, - required _i5.DBusObjectPath? path, + required _i6.DBusObjectPath? path, String? interface, required String? name, - Iterable<_i5.DBusValue>? values = const [], - _i5.DBusSignature? replySignature, + Iterable<_i6.DBusValue>? values = const [], + _i6.DBusSignature? replySignature, bool? noReplyExpected = false, bool? noAutoStart = false, bool? allowInteractiveAuthorization = false, @@ -279,7 +297,7 @@ class MockDBusClient extends _i1.Mock implements _i2.DBusClient { #allowInteractiveAuthorization: allowInteractiveAuthorization, }, ), - returnValue: _i4.Future<_i3.DBusMethodSuccessResponse>.value( + returnValue: _i5.Future<_i3.DBusMethodSuccessResponse>.value( _FakeDBusMethodSuccessResponse_1( this, Invocation.method( @@ -298,15 +316,15 @@ class MockDBusClient extends _i1.Mock implements _i2.DBusClient { }, ), )), - ) as _i4.Future<_i3.DBusMethodSuccessResponse>); + ) as _i5.Future<_i3.DBusMethodSuccessResponse>); @override - _i4.Future emitSignal({ + _i5.Future emitSignal({ String? destination, - required _i5.DBusObjectPath? path, + required _i6.DBusObjectPath? path, required String? interface, required String? name, - Iterable<_i5.DBusValue>? values = const [], + Iterable<_i6.DBusValue>? values = const [], }) => (super.noSuchMethod( Invocation.method( @@ -320,29 +338,29 @@ class MockDBusClient extends _i1.Mock implements _i2.DBusClient { #values: values, }, ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); @override - _i4.Future registerObject(_i6.DBusObject? object) => + _i5.Future registerObject(_i7.DBusObject? object) => (super.noSuchMethod( Invocation.method( #registerObject, [object], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); @override - _i4.Future unregisterObject(_i6.DBusObject? object) => + _i5.Future unregisterObject(_i7.DBusObject? object) => (super.noSuchMethod( Invocation.method( #unregisterObject, [object], ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); + returnValue: _i5.Future.value(), + returnValueForMissingStub: _i5.Future.value(), + ) as _i5.Future); } diff --git a/test/search_field_test.dart b/test/search_field_test.dart index 7f8094df5..b018d0b69 100644 --- a/test/search_field_test.dart +++ b/test/search_field_test.dart @@ -131,8 +131,8 @@ void main() { .overrideWith((ref, query) => Stream.value([])) ], child: SearchField( - onSearch: mockSearchCallback, - onSnapSelected: mockSelectedCallback, + onSearch: mockSearchCallback.call, + onSnapSelected: mockSelectedCallback.call, onDebSelected: (_) {}, ), ), @@ -161,8 +161,8 @@ void main() { .overrideWith((ref, query) => Stream.value([])) ], child: SearchField( - onSearch: mockSearchCallback, - onSnapSelected: mockSelectedCallback, + onSearch: mockSearchCallback.call, + onSnapSelected: mockSelectedCallback.call, onDebSelected: (_) {}, ), ), @@ -192,8 +192,8 @@ void main() { .overrideWith((ref, query) => Stream.value([])) ], child: SearchField( - onSearch: mockSearchCallback, - onSnapSelected: mockSelectedCallback, + onSearch: mockSearchCallback.call, + onSnapSelected: mockSelectedCallback.call, onDebSelected: (_) {}, ), ), diff --git a/test/snap_launcher_test.mocks.dart b/test/snap_launcher_test.mocks.dart index 2c2d2bd33..333c83966 100644 --- a/test/snap_launcher_test.mocks.dart +++ b/test/snap_launcher_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.3 from annotations // in app_center/test/snap_launcher_test.dart. // Do not manually edit this file. @@ -12,6 +12,8 @@ import 'package:snapcraft_launcher/snapcraft_launcher.dart' as _i2; // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors diff --git a/test/snapd_cache_test.mocks.dart b/test/snapd_cache_test.mocks.dart index 67a1c8794..d9965b5a2 100644 --- a/test/snapd_cache_test.mocks.dart +++ b/test/snapd_cache_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.3 from annotations // in app_center/test/snapd_cache_test.dart. // Do not manually edit this file. @@ -6,12 +6,15 @@ import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i4; import 'package:snapd/src/snapd_client.dart' as _i2; // 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: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors @@ -236,7 +239,13 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #refreshMany, [names], ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #refreshMany, + [names], + ), + )), ) as _i3.Future); @override @@ -256,7 +265,18 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { slot, ], ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #connect, + [ + snap, + plug, + slotSnap, + slot, + ], + ), + )), ) as _i3.Future); @override @@ -276,7 +296,18 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { slot, ], ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #disconnect, + [ + plugSnap, + plug, + slotSnap, + slot, + ], + ), + )), ) as _i3.Future); @override @@ -363,7 +394,21 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #jailmode: jailmode, }, ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #install, + [name], + { + #channel: channel, + #revision: revision, + #classic: classic, + #dangerous: dangerous, + #devmode: devmode, + #jailmode: jailmode, + }, + ), + )), ) as _i3.Future); @override @@ -381,7 +426,17 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #classic: classic, }, ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #refresh, + [name], + { + #channel: channel, + #classic: classic, + }, + ), + )), ) as _i3.Future); @override @@ -395,7 +450,14 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { [name], {#purge: purge}, ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #remove, + [name], + {#purge: purge}, + ), + )), ) as _i3.Future); @override @@ -404,7 +466,13 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #enable, [name], ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #enable, + [name], + ), + )), ) as _i3.Future); @override @@ -413,7 +481,13 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #disable, [name], ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #disable, + [name], + ), + )), ) as _i3.Future); @override diff --git a/test/snapd_watcher_test.mocks.dart b/test/snapd_watcher_test.mocks.dart index 3d27fc336..23f43b8af 100644 --- a/test/snapd_watcher_test.mocks.dart +++ b/test/snapd_watcher_test.mocks.dart @@ -1,4 +1,4 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.3 from annotations // in app_center/test/snapd_watcher_test.dart. // Do not manually edit this file. @@ -6,12 +6,15 @@ import 'dart:async' as _i3; import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i4; import 'package:snapd/src/snapd_client.dart' as _i2; // 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: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors @@ -236,7 +239,13 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #refreshMany, [names], ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #refreshMany, + [names], + ), + )), ) as _i3.Future); @override @@ -256,7 +265,18 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { slot, ], ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #connect, + [ + snap, + plug, + slotSnap, + slot, + ], + ), + )), ) as _i3.Future); @override @@ -276,7 +296,18 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { slot, ], ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #disconnect, + [ + plugSnap, + plug, + slotSnap, + slot, + ], + ), + )), ) as _i3.Future); @override @@ -363,7 +394,21 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #jailmode: jailmode, }, ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #install, + [name], + { + #channel: channel, + #revision: revision, + #classic: classic, + #dangerous: dangerous, + #devmode: devmode, + #jailmode: jailmode, + }, + ), + )), ) as _i3.Future); @override @@ -381,7 +426,17 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #classic: classic, }, ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #refresh, + [name], + { + #channel: channel, + #classic: classic, + }, + ), + )), ) as _i3.Future); @override @@ -395,7 +450,14 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { [name], {#purge: purge}, ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #remove, + [name], + {#purge: purge}, + ), + )), ) as _i3.Future); @override @@ -404,7 +466,13 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #enable, [name], ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #enable, + [name], + ), + )), ) as _i3.Future); @override @@ -413,7 +481,13 @@ class MockSnapdClient extends _i1.Mock implements _i2.SnapdClient { #disable, [name], ), - returnValue: _i3.Future.value(''), + returnValue: _i3.Future.value(_i4.dummyValue( + this, + Invocation.method( + #disable, + [name], + ), + )), ) as _i3.Future); @override diff --git a/test/test_utils.mocks.dart b/test/test_utils.mocks.dart index 9a8ecba90..860212eab 100644 --- a/test/test_utils.mocks.dart +++ b/test/test_utils.mocks.dart @@ -1,26 +1,27 @@ -// Mocks generated by Mockito 5.4.2 from annotations +// Mocks generated by Mockito 5.4.3 from annotations // in app_center/test/test_utils.dart. // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i14; -import 'dart:ui' as _i15; +import 'dart:async' as _i15; +import 'dart:ui' as _i16; import 'package:app_center/appstream.dart' as _i7; import 'package:app_center/packagekit.dart' as _i8; import 'package:app_center/snapd.dart' as _i6; -import 'package:app_center/src/deb/deb_model.dart' as _i16; -import 'package:app_center/src/manage/manage_model.dart' as _i17; +import 'package:app_center/src/deb/deb_model.dart' as _i17; +import 'package:app_center/src/manage/manage_model.dart' as _i18; import 'package:app_center/src/ratings/exports.dart' as _i12; import 'package:app_center/src/ratings/ratings_model.dart' as _i13; import 'package:app_center/src/ratings/ratings_service.dart' as _i4; import 'package:app_center_ratings_client/ratings_client.dart' as _i11; import 'package:appstream/appstream.dart' as _i9; -import 'package:dbus/dbus.dart' as _i20; -import 'package:file/file.dart' as _i18; +import 'package:dbus/dbus.dart' as _i21; +import 'package:file/file.dart' as _i19; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; -import 'package:gtk/src/gtk_application_notifier.dart' as _i19; +import 'package:gtk/src/gtk_application_notifier.dart' as _i20; import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i14; import 'package:packagekit/packagekit.dart' as _i10; import 'package:snapcraft_launcher/snapcraft_launcher.dart' as _i3; import 'package:snapd/snapd.dart' as _i2; @@ -29,6 +30,8 @@ import 'package:snapd/snapd.dart' as _i2; // ignore_for_file: avoid_redundant_argument_values // ignore_for_file: avoid_setters_without_getters // ignore_for_file: comment_references +// ignore_for_file: deprecated_member_use +// ignore_for_file: deprecated_member_use_from_same_package // ignore_for_file: implementation_imports // ignore_for_file: invalid_use_of_visible_for_testing_member // ignore_for_file: prefer_const_constructors @@ -268,13 +271,19 @@ class MockRatingsModel extends _i1.Mock implements _i13.RatingsModel { @override String get snapId => (super.noSuchMethod( Invocation.getter(#snapId), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#snapId), + ), ) as String); @override String get snapRevision => (super.noSuchMethod( Invocation.getter(#snapRevision), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#snapRevision), + ), ) as String); @override @@ -302,27 +311,27 @@ class MockRatingsModel extends _i1.Mock implements _i13.RatingsModel { ) as bool); @override - _i14.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future castVote(_i13.VoteStatus? castVote) => (super.noSuchMethod( + _i15.Future castVote(_i13.VoteStatus? castVote) => (super.noSuchMethod( Invocation.method( #castVote, [castVote], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -331,7 +340,7 @@ class MockRatingsModel extends _i1.Mock implements _i13.RatingsModel { ); @override - void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -378,7 +387,10 @@ class MockSnapModel extends _i1.Mock implements _i6.SnapModel { @override String get snapName => (super.noSuchMethod( Invocation.getter(#snapName), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#snapName), + ), ) as String); @override @@ -439,10 +451,10 @@ class MockSnapModel extends _i1.Mock implements _i6.SnapModel { ); @override - _i14.Stream<_i2.SnapdException> get errorStream => (super.noSuchMethod( + _i15.Stream<_i2.SnapdException> get errorStream => (super.noSuchMethod( Invocation.getter(#errorStream), - returnValue: _i14.Stream<_i2.SnapdException>.empty(), - ) as _i14.Stream<_i2.SnapdException>); + returnValue: _i15.Stream<_i2.SnapdException>.empty(), + ) as _i15.Stream<_i2.SnapdException>); @override bool get hasListeners => (super.noSuchMethod( @@ -451,67 +463,67 @@ class MockSnapModel extends _i1.Mock implements _i6.SnapModel { ) as bool); @override - _i14.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future dispose() => (super.noSuchMethod( + _i15.Future dispose() => (super.noSuchMethod( Invocation.method( #dispose, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future cancel() => (super.noSuchMethod( + _i15.Future cancel() => (super.noSuchMethod( Invocation.method( #cancel, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future install() => (super.noSuchMethod( + _i15.Future install() => (super.noSuchMethod( Invocation.method( #install, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future refresh() => (super.noSuchMethod( + _i15.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future remove() => (super.noSuchMethod( + _i15.Future remove() => (super.noSuchMethod( Invocation.method( #remove, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -520,7 +532,7 @@ class MockSnapModel extends _i1.Mock implements _i6.SnapModel { ); @override - void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -541,7 +553,7 @@ class MockSnapModel extends _i1.Mock implements _i6.SnapModel { /// A class which mocks [DebModel]. /// /// See the documentation for Mockito's code generation for more information. -class MockDebModel extends _i1.Mock implements _i16.DebModel { +class MockDebModel extends _i1.Mock implements _i17.DebModel { MockDebModel() { _i1.throwOnMissingStub(this); } @@ -567,7 +579,10 @@ class MockDebModel extends _i1.Mock implements _i16.DebModel { @override String get id => (super.noSuchMethod( Invocation.getter(#id), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#id), + ), ) as String); @override @@ -605,11 +620,11 @@ class MockDebModel extends _i1.Mock implements _i16.DebModel { ) as bool); @override - _i14.Stream<_i10.PackageKitErrorCodeEvent> get errorStream => + _i15.Stream<_i10.PackageKitErrorCodeEvent> get errorStream => (super.noSuchMethod( Invocation.getter(#errorStream), - returnValue: _i14.Stream<_i10.PackageKitErrorCodeEvent>.empty(), - ) as _i14.Stream<_i10.PackageKitErrorCodeEvent>); + returnValue: _i15.Stream<_i10.PackageKitErrorCodeEvent>.empty(), + ) as _i15.Stream<_i10.PackageKitErrorCodeEvent>); @override bool get hasListeners => (super.noSuchMethod( @@ -618,47 +633,47 @@ class MockDebModel extends _i1.Mock implements _i16.DebModel { ) as bool); @override - _i14.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future install() => (super.noSuchMethod( + _i15.Future install() => (super.noSuchMethod( Invocation.method( #install, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future remove() => (super.noSuchMethod( + _i15.Future remove() => (super.noSuchMethod( Invocation.method( #remove, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future cancel() => (super.noSuchMethod( + _i15.Future cancel() => (super.noSuchMethod( Invocation.method( #cancel, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -667,7 +682,7 @@ class MockDebModel extends _i1.Mock implements _i16.DebModel { ); @override - void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -697,7 +712,7 @@ class MockDebModel extends _i1.Mock implements _i16.DebModel { /// A class which mocks [ManageModel]. /// /// See the documentation for Mockito's code generation for more information. -class MockManageModel extends _i1.Mock implements _i17.ManageModel { +class MockManageModel extends _i1.Mock implements _i18.ManageModel { MockManageModel() { _i1.throwOnMissingStub(this); } @@ -748,14 +763,14 @@ class MockManageModel extends _i1.Mock implements _i17.ManageModel { ) as bool); @override - _i14.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override void dispose() => super.noSuchMethod( @@ -767,7 +782,7 @@ class MockManageModel extends _i1.Mock implements _i17.ManageModel { ); @override - void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -776,7 +791,7 @@ class MockManageModel extends _i1.Mock implements _i17.ManageModel { ); @override - void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -827,25 +842,25 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { ); @override - _i14.Future waitChange(String? changeId) => (super.noSuchMethod( + _i15.Future waitChange(String? changeId) => (super.noSuchMethod( Invocation.method( #waitChange, [changeId], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future loadAuthorization({String? path}) => (super.noSuchMethod( + _i15.Future loadAuthorization({String? path}) => (super.noSuchMethod( Invocation.method( #loadAuthorization, [], {#path: path}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override void setAuthorization( @@ -864,12 +879,12 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { ); @override - _i14.Future<_i2.SnapdSystemInfoResponse> systemInfo() => (super.noSuchMethod( + _i15.Future<_i2.SnapdSystemInfoResponse> systemInfo() => (super.noSuchMethod( Invocation.method( #systemInfo, [], ), - returnValue: _i14.Future<_i2.SnapdSystemInfoResponse>.value( + returnValue: _i15.Future<_i2.SnapdSystemInfoResponse>.value( _FakeSnapdSystemInfoResponse_9( this, Invocation.method( @@ -877,34 +892,34 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { [], ), )), - ) as _i14.Future<_i2.SnapdSystemInfoResponse>); + ) as _i15.Future<_i2.SnapdSystemInfoResponse>); @override - _i14.Future> getSnaps() => (super.noSuchMethod( + _i15.Future> getSnaps() => (super.noSuchMethod( Invocation.method( #getSnaps, [], ), - returnValue: _i14.Future>.value(<_i2.Snap>[]), - ) as _i14.Future>); + returnValue: _i15.Future>.value(<_i2.Snap>[]), + ) as _i15.Future>); @override - _i14.Future<_i2.Snap> getSnap(String? name) => (super.noSuchMethod( + _i15.Future<_i2.Snap> getSnap(String? name) => (super.noSuchMethod( Invocation.method( #getSnap, [name], ), - returnValue: _i14.Future<_i2.Snap>.value(_FakeSnap_0( + returnValue: _i15.Future<_i2.Snap>.value(_FakeSnap_0( this, Invocation.method( #getSnap, [name], ), )), - ) as _i14.Future<_i2.Snap>); + ) as _i15.Future<_i2.Snap>); @override - _i14.Future> getApps({ + _i15.Future> getApps({ List? names, _i2.SnapdAppFilter? filter, }) => @@ -917,22 +932,22 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #filter: filter, }, ), - returnValue: _i14.Future>.value(<_i2.SnapApp>[]), - ) as _i14.Future>); + returnValue: _i15.Future>.value(<_i2.SnapApp>[]), + ) as _i15.Future>); @override - _i14.Future> getCategories() => + _i15.Future> getCategories() => (super.noSuchMethod( Invocation.method( #getCategories, [], ), - returnValue: _i14.Future>.value( + returnValue: _i15.Future>.value( <_i2.SnapdCategoryDetails>[]), - ) as _i14.Future>); + ) as _i15.Future>); @override - _i14.Future<_i2.SnapdConnectionsResponse> getConnections({ + _i15.Future<_i2.SnapdConnectionsResponse> getConnections({ String? snap, String? interface, _i2.SnapdConnectionFilter? filter, @@ -947,7 +962,7 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #filter: filter, }, ), - returnValue: _i14.Future<_i2.SnapdConnectionsResponse>.value( + returnValue: _i15.Future<_i2.SnapdConnectionsResponse>.value( _FakeSnapdConnectionsResponse_10( this, Invocation.method( @@ -960,19 +975,25 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { }, ), )), - ) as _i14.Future<_i2.SnapdConnectionsResponse>); + ) as _i15.Future<_i2.SnapdConnectionsResponse>); @override - _i14.Future refreshMany(List? names) => (super.noSuchMethod( + _i15.Future refreshMany(List? names) => (super.noSuchMethod( Invocation.method( #refreshMany, [names], ), - returnValue: _i14.Future.value(''), - ) as _i14.Future); + returnValue: _i15.Future.value(_i14.dummyValue( + this, + Invocation.method( + #refreshMany, + [names], + ), + )), + ) as _i15.Future); @override - _i14.Future connect( + _i15.Future connect( String? snap, String? plug, String? slotSnap, @@ -988,11 +1009,22 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { slot, ], ), - returnValue: _i14.Future.value(''), - ) as _i14.Future); + returnValue: _i15.Future.value(_i14.dummyValue( + this, + Invocation.method( + #connect, + [ + snap, + plug, + slotSnap, + slot, + ], + ), + )), + ) as _i15.Future); @override - _i14.Future disconnect( + _i15.Future disconnect( String? plugSnap, String? plug, String? slotSnap, @@ -1008,11 +1040,22 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { slot, ], ), - returnValue: _i14.Future.value(''), - ) as _i14.Future); + returnValue: _i15.Future.value(_i14.dummyValue( + this, + Invocation.method( + #disconnect, + [ + plugSnap, + plug, + slotSnap, + slot, + ], + ), + )), + ) as _i15.Future); @override - _i14.Future> find({ + _i15.Future> find({ String? query, String? name, String? category, @@ -1031,11 +1074,11 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #filter: filter, }, ), - returnValue: _i14.Future>.value(<_i2.Snap>[]), - ) as _i14.Future>); + returnValue: _i15.Future>.value(<_i2.Snap>[]), + ) as _i15.Future>); @override - _i14.Future<_i2.SnapdLoginResponse> login( + _i15.Future<_i2.SnapdLoginResponse> login( String? email, String? password, { String? otp, @@ -1049,7 +1092,7 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { ], {#otp: otp}, ), - returnValue: _i14.Future<_i2.SnapdLoginResponse>.value( + returnValue: _i15.Future<_i2.SnapdLoginResponse>.value( _FakeSnapdLoginResponse_11( this, Invocation.method( @@ -1061,19 +1104,19 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { {#otp: otp}, ), )), - ) as _i14.Future<_i2.SnapdLoginResponse>); + ) as _i15.Future<_i2.SnapdLoginResponse>); @override - _i14.Future logout(int? id) => (super.noSuchMethod( + _i15.Future logout(int? id) => (super.noSuchMethod( Invocation.method( #logout, [id], ), - returnValue: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future install( + _i15.Future install( String? name, { String? channel, String? revision, @@ -1095,11 +1138,25 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #jailmode: jailmode, }, ), - returnValue: _i14.Future.value(''), - ) as _i14.Future); + returnValue: _i15.Future.value(_i14.dummyValue( + this, + Invocation.method( + #install, + [name], + { + #channel: channel, + #revision: revision, + #classic: classic, + #dangerous: dangerous, + #devmode: devmode, + #jailmode: jailmode, + }, + ), + )), + ) as _i15.Future); @override - _i14.Future refresh( + _i15.Future refresh( String? name, { String? channel, bool? classic = false, @@ -1113,11 +1170,21 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #classic: classic, }, ), - returnValue: _i14.Future.value(''), - ) as _i14.Future); + returnValue: _i15.Future.value(_i14.dummyValue( + this, + Invocation.method( + #refresh, + [name], + { + #channel: channel, + #classic: classic, + }, + ), + )), + ) as _i15.Future); @override - _i14.Future remove( + _i15.Future remove( String? name, { bool? purge = false, }) => @@ -1127,44 +1194,63 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { [name], {#purge: purge}, ), - returnValue: _i14.Future.value(''), - ) as _i14.Future); + returnValue: _i15.Future.value(_i14.dummyValue( + this, + Invocation.method( + #remove, + [name], + {#purge: purge}, + ), + )), + ) as _i15.Future); @override - _i14.Future enable(String? name) => (super.noSuchMethod( + _i15.Future enable(String? name) => (super.noSuchMethod( Invocation.method( #enable, [name], ), - returnValue: _i14.Future.value(''), - ) as _i14.Future); + returnValue: _i15.Future.value(_i14.dummyValue( + this, + Invocation.method( + #enable, + [name], + ), + )), + ) as _i15.Future); @override - _i14.Future disable(String? name) => (super.noSuchMethod( + _i15.Future disable(String? name) => (super.noSuchMethod( Invocation.method( #disable, [name], ), - returnValue: _i14.Future.value(''), - ) as _i14.Future); + returnValue: _i15.Future.value(_i14.dummyValue( + this, + Invocation.method( + #disable, + [name], + ), + )), + ) as _i15.Future); @override - _i14.Future<_i2.SnapdChange> getChange(String? id) => (super.noSuchMethod( + _i15.Future<_i2.SnapdChange> getChange(String? id) => (super.noSuchMethod( Invocation.method( #getChange, [id], ), - returnValue: _i14.Future<_i2.SnapdChange>.value(_FakeSnapdChange_12( + returnValue: _i15.Future<_i2.SnapdChange>.value(_FakeSnapdChange_12( this, Invocation.method( #getChange, [id], ), )), - ) as _i14.Future<_i2.SnapdChange>); + ) as _i15.Future<_i2.SnapdChange>); @override - _i14.Future> getChanges({ + _i15.Future> getChanges({ _i2.SnapdChangeFilter? filter, String? name, }) => @@ -1178,23 +1264,23 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { }, ), returnValue: - _i14.Future>.value(<_i2.SnapdChange>[]), - ) as _i14.Future>); + _i15.Future>.value(<_i2.SnapdChange>[]), + ) as _i15.Future>); @override - _i14.Future<_i2.SnapdChange> abortChange(String? id) => (super.noSuchMethod( + _i15.Future<_i2.SnapdChange> abortChange(String? id) => (super.noSuchMethod( Invocation.method( #abortChange, [id], ), - returnValue: _i14.Future<_i2.SnapdChange>.value(_FakeSnapdChange_12( + returnValue: _i15.Future<_i2.SnapdChange>.value(_FakeSnapdChange_12( this, Invocation.method( #abortChange, [id], ), )), - ) as _i14.Future<_i2.SnapdChange>); + ) as _i15.Future<_i2.SnapdChange>); @override void close() => super.noSuchMethod( @@ -1206,10 +1292,10 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { ); @override - _i14.Stream> getCategory( + _i15.Stream> getCategory( String? name, { Duration? expiry = const Duration(days: 1), - _i18.FileSystem? fs, + _i19.FileSystem? fs, }) => (super.noSuchMethod( Invocation.method( @@ -1220,14 +1306,14 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #fs: fs, }, ), - returnValue: _i14.Stream>.empty(), - ) as _i14.Stream>); + returnValue: _i15.Stream>.empty(), + ) as _i15.Stream>); @override - _i14.Stream<_i2.Snap?> getStoreSnap( + _i15.Stream<_i2.Snap?> getStoreSnap( String? name, { Duration? expiry = const Duration(minutes: 1), - _i18.FileSystem? fs, + _i19.FileSystem? fs, }) => (super.noSuchMethod( Invocation.method( @@ -1238,14 +1324,14 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #fs: fs, }, ), - returnValue: _i14.Stream<_i2.Snap?>.empty(), - ) as _i14.Stream<_i2.Snap?>); + returnValue: _i15.Stream<_i2.Snap?>.empty(), + ) as _i15.Stream<_i2.Snap?>); @override - _i14.Stream> getStoreSnaps( + _i15.Stream> getStoreSnaps( List? names, { Duration? expiry = const Duration(minutes: 1), - _i18.FileSystem? fs, + _i19.FileSystem? fs, }) => (super.noSuchMethod( Invocation.method( @@ -1256,11 +1342,11 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #fs: fs, }, ), - returnValue: _i14.Stream>.empty(), - ) as _i14.Stream>); + returnValue: _i15.Stream>.empty(), + ) as _i15.Stream>); @override - _i14.Stream<_i2.SnapdChange> watchChange( + _i15.Stream<_i2.SnapdChange> watchChange( String? id, { Duration? interval = const Duration(milliseconds: 100), }) => @@ -1270,11 +1356,11 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { [id], {#interval: interval}, ), - returnValue: _i14.Stream<_i2.SnapdChange>.empty(), - ) as _i14.Stream<_i2.SnapdChange>); + returnValue: _i15.Stream<_i2.SnapdChange>.empty(), + ) as _i15.Stream<_i2.SnapdChange>); @override - _i14.Stream> watchChanges({ + _i15.Stream> watchChanges({ String? name, Duration? interval = const Duration(milliseconds: 100), }) => @@ -1287,8 +1373,8 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #interval: interval, }, ), - returnValue: _i14.Stream>.empty(), - ) as _i14.Stream>); + returnValue: _i15.Stream>.empty(), + ) as _i15.Stream>); } /// A class which mocks [UpdatesModel]. @@ -1324,10 +1410,10 @@ class MockUpdatesModel extends _i1.Mock implements _i6.UpdatesModel { ) as _i5.AsyncValue); @override - _i14.Stream<_i2.SnapdException> get errorStream => (super.noSuchMethod( + _i15.Stream<_i2.SnapdException> get errorStream => (super.noSuchMethod( Invocation.getter(#errorStream), - returnValue: _i14.Stream<_i2.SnapdException>.empty(), - ) as _i14.Stream<_i2.SnapdException>); + returnValue: _i15.Stream<_i2.SnapdException>.empty(), + ) as _i15.Stream<_i2.SnapdException>); @override bool get hasListeners => (super.noSuchMethod( @@ -1336,14 +1422,14 @@ class MockUpdatesModel extends _i1.Mock implements _i6.UpdatesModel { ) as bool); @override - _i14.Future refresh() => (super.noSuchMethod( + _i15.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override bool hasUpdate(String? snapName) => (super.noSuchMethod( @@ -1355,17 +1441,17 @@ class MockUpdatesModel extends _i1.Mock implements _i6.UpdatesModel { ) as bool); @override - _i14.Future updateAll() => (super.noSuchMethod( + _i15.Future updateAll() => (super.noSuchMethod( Invocation.method( #updateAll, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1374,7 +1460,7 @@ class MockUpdatesModel extends _i1.Mock implements _i6.UpdatesModel { ); @override - void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1405,13 +1491,13 @@ class MockUpdatesModel extends _i1.Mock implements _i6.UpdatesModel { /// /// See the documentation for Mockito's code generation for more information. class MockGtkApplicationNotifier extends _i1.Mock - implements _i19.GtkApplicationNotifier { + implements _i20.GtkApplicationNotifier { MockGtkApplicationNotifier() { _i1.throwOnMissingStub(this); } @override - void addCommandLineListener(_i19.GtkCommandLineListener? listener) => + void addCommandLineListener(_i20.GtkCommandLineListener? listener) => super.noSuchMethod( Invocation.method( #addCommandLineListener, @@ -1421,7 +1507,7 @@ class MockGtkApplicationNotifier extends _i1.Mock ); @override - void removeCommandLineListener(_i19.GtkCommandLineListener? listener) => + void removeCommandLineListener(_i20.GtkCommandLineListener? listener) => super.noSuchMethod( Invocation.method( #removeCommandLineListener, @@ -1431,7 +1517,7 @@ class MockGtkApplicationNotifier extends _i1.Mock ); @override - void addOpenListener(_i19.GtkOpenListener? listener) => super.noSuchMethod( + void addOpenListener(_i20.GtkOpenListener? listener) => super.noSuchMethod( Invocation.method( #addOpenListener, [listener], @@ -1440,7 +1526,7 @@ class MockGtkApplicationNotifier extends _i1.Mock ); @override - void removeOpenListener(_i19.GtkOpenListener? listener) => super.noSuchMethod( + void removeOpenListener(_i20.GtkOpenListener? listener) => super.noSuchMethod( Invocation.method( #removeOpenListener, [listener], @@ -1564,25 +1650,37 @@ class MockPackageKitClient extends _i1.Mock implements _i10.PackageKitClient { @override String get backendAuthor => (super.noSuchMethod( Invocation.getter(#backendAuthor), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#backendAuthor), + ), ) as String); @override String get backendDescription => (super.noSuchMethod( Invocation.getter(#backendDescription), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#backendDescription), + ), ) as String); @override String get backendName => (super.noSuchMethod( Invocation.getter(#backendName), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#backendName), + ), ) as String); @override String get distroId => (super.noSuchMethod( Invocation.getter(#distroId), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#distroId), + ), ) as String); @override @@ -1640,30 +1738,30 @@ class MockPackageKitClient extends _i1.Mock implements _i10.PackageKitClient { ) as int); @override - _i14.Stream> get propertiesChanged => (super.noSuchMethod( + _i15.Stream> get propertiesChanged => (super.noSuchMethod( Invocation.getter(#propertiesChanged), - returnValue: _i14.Stream>.empty(), - ) as _i14.Stream>); + returnValue: _i15.Stream>.empty(), + ) as _i15.Stream>); @override - _i14.Future connect() => (super.noSuchMethod( + _i15.Future connect() => (super.noSuchMethod( Invocation.method( #connect, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future<_i10.PackageKitTransaction> getTransaction( - _i20.DBusObjectPath? path) => + _i15.Future<_i10.PackageKitTransaction> getTransaction( + _i21.DBusObjectPath? path) => (super.noSuchMethod( Invocation.method( #getTransaction, [path], ), - returnValue: _i14.Future<_i10.PackageKitTransaction>.value( + returnValue: _i15.Future<_i10.PackageKitTransaction>.value( _FakePackageKitTransaction_13( this, Invocation.method( @@ -1671,16 +1769,16 @@ class MockPackageKitClient extends _i1.Mock implements _i10.PackageKitClient { [path], ), )), - ) as _i14.Future<_i10.PackageKitTransaction>); + ) as _i15.Future<_i10.PackageKitTransaction>); @override - _i14.Future<_i10.PackageKitTransaction> createTransaction() => + _i15.Future<_i10.PackageKitTransaction> createTransaction() => (super.noSuchMethod( Invocation.method( #createTransaction, [], ), - returnValue: _i14.Future<_i10.PackageKitTransaction>.value( + returnValue: _i15.Future<_i10.PackageKitTransaction>.value( _FakePackageKitTransaction_13( this, Invocation.method( @@ -1688,17 +1786,17 @@ class MockPackageKitClient extends _i1.Mock implements _i10.PackageKitClient { [], ), )), - ) as _i14.Future<_i10.PackageKitTransaction>); + ) as _i15.Future<_i10.PackageKitTransaction>); @override - _i14.Future close() => (super.noSuchMethod( + _i15.Future close() => (super.noSuchMethod( Invocation.method( #close, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); } /// A class which mocks [PackageKitTransaction]. @@ -1711,13 +1809,13 @@ class MockPackageKitTransaction extends _i1.Mock } @override - _i14.Stream<_i10.PackageKitEvent> get events => (super.noSuchMethod( + _i15.Stream<_i10.PackageKitEvent> get events => (super.noSuchMethod( Invocation.getter(#events), - returnValue: _i14.Stream<_i10.PackageKitEvent>.empty(), - ) as _i14.Stream<_i10.PackageKitEvent>); + returnValue: _i15.Stream<_i10.PackageKitEvent>.empty(), + ) as _i15.Stream<_i10.PackageKitEvent>); @override - set events(_i14.Stream<_i10.PackageKitEvent>? _events) => super.noSuchMethod( + set events(_i15.Stream<_i10.PackageKitEvent>? _events) => super.noSuchMethod( Invocation.setter( #events, _events, @@ -1740,7 +1838,10 @@ class MockPackageKitTransaction extends _i1.Mock @override String get lastPackage => (super.noSuchMethod( Invocation.getter(#lastPackage), - returnValue: '', + returnValue: _i14.dummyValue( + this, + Invocation.getter(#lastPackage), + ), ) as String); @override @@ -1799,23 +1900,23 @@ class MockPackageKitTransaction extends _i1.Mock ) as Set<_i10.PackageKitTransactionFlag>); @override - _i14.Stream> get propertiesChanged => (super.noSuchMethod( + _i15.Stream> get propertiesChanged => (super.noSuchMethod( Invocation.getter(#propertiesChanged), - returnValue: _i14.Stream>.empty(), - ) as _i14.Stream>); + returnValue: _i15.Stream>.empty(), + ) as _i15.Stream>); @override - _i14.Future cancel() => (super.noSuchMethod( + _i15.Future cancel() => (super.noSuchMethod( Invocation.method( #cancel, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future dependsOn( + _i15.Future dependsOn( Iterable<_i10.PackageKitPackageId>? packageIds, { Set<_i10.PackageKitFilter>? filter = const {}, bool? recursive = false, @@ -1829,35 +1930,35 @@ class MockPackageKitTransaction extends _i1.Mock #recursive: recursive, }, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future getDetails( + _i15.Future getDetails( Iterable<_i10.PackageKitPackageId>? packageIds) => (super.noSuchMethod( Invocation.method( #getDetails, [packageIds], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future getDetailsLocal(Iterable? paths) => + _i15.Future getDetailsLocal(Iterable? paths) => (super.noSuchMethod( Invocation.method( #getDetailsLocal, [paths], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future downloadPackages( + _i15.Future downloadPackages( Iterable<_i10.PackageKitPackageId>? packageIds, { bool? storeInCache = false, }) => @@ -1867,34 +1968,34 @@ class MockPackageKitTransaction extends _i1.Mock [packageIds], {#storeInCache: storeInCache}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future getFiles(Iterable<_i10.PackageKitPackageId>? packageIds) => + _i15.Future getFiles(Iterable<_i10.PackageKitPackageId>? packageIds) => (super.noSuchMethod( Invocation.method( #getFiles, [packageIds], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future getFilesLocal(Iterable? paths) => + _i15.Future getFilesLocal(Iterable? paths) => (super.noSuchMethod( Invocation.method( #getFilesLocal, [paths], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future getPackages( + _i15.Future getPackages( {Set<_i10.PackageKitFilter>? filter = const {}}) => (super.noSuchMethod( Invocation.method( @@ -1902,12 +2003,12 @@ class MockPackageKitTransaction extends _i1.Mock [], {#filter: filter}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future getRepositoryList( + _i15.Future getRepositoryList( {Set<_i10.PackageKitFilter>? filter = const {}}) => (super.noSuchMethod( Invocation.method( @@ -1915,12 +2016,12 @@ class MockPackageKitTransaction extends _i1.Mock [], {#filter: filter}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future setRepositoryEnabled( + _i15.Future setRepositoryEnabled( String? id, bool? enabled, ) => @@ -1932,12 +2033,12 @@ class MockPackageKitTransaction extends _i1.Mock enabled, ], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future setRepositoryData( + _i15.Future setRepositoryData( String? id, String? parameter, String? value, @@ -1951,12 +2052,12 @@ class MockPackageKitTransaction extends _i1.Mock value, ], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future removeRepository( + _i15.Future removeRepository( String? id, { bool? autoremovePackages = false, }) => @@ -1966,24 +2067,24 @@ class MockPackageKitTransaction extends _i1.Mock [id], {#autoremovePackages: autoremovePackages}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future getUpdateDetail( + _i15.Future getUpdateDetail( Iterable<_i10.PackageKitPackageId>? packageIds) => (super.noSuchMethod( Invocation.method( #getUpdateDetail, [packageIds], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future getUpdates( + _i15.Future getUpdates( {Set<_i10.PackageKitFilter>? filter = const {}}) => (super.noSuchMethod( Invocation.method( @@ -1991,12 +2092,12 @@ class MockPackageKitTransaction extends _i1.Mock [], {#filter: filter}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future installFiles( + _i15.Future installFiles( Iterable? paths, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, }) => @@ -2006,12 +2107,12 @@ class MockPackageKitTransaction extends _i1.Mock [paths], {#transactionFlags: transactionFlags}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future installPackages( + _i15.Future installPackages( Iterable<_i10.PackageKitPackageId>? packageIds, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, }) => @@ -2021,23 +2122,23 @@ class MockPackageKitTransaction extends _i1.Mock [packageIds], {#transactionFlags: transactionFlags}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future refreshCache({bool? force = false}) => (super.noSuchMethod( + _i15.Future refreshCache({bool? force = false}) => (super.noSuchMethod( Invocation.method( #refreshCache, [], {#force: force}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future removePackages( + _i15.Future removePackages( Iterable<_i10.PackageKitPackageId>? packageIds, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, bool? allowDeps = false, @@ -2053,12 +2154,12 @@ class MockPackageKitTransaction extends _i1.Mock #autoremove: autoremove, }, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future resolve( + _i15.Future resolve( Iterable? packages, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, }) => @@ -2068,12 +2169,12 @@ class MockPackageKitTransaction extends _i1.Mock [packages], {#transactionFlags: transactionFlags}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future searchFiles( + _i15.Future searchFiles( Iterable? values, { Set<_i10.PackageKitFilter>? filter = const {}, }) => @@ -2083,12 +2184,12 @@ class MockPackageKitTransaction extends _i1.Mock [values], {#filter: filter}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future searchNames( + _i15.Future searchNames( Iterable? values, { Set<_i10.PackageKitFilter>? filter = const {}, }) => @@ -2098,12 +2199,12 @@ class MockPackageKitTransaction extends _i1.Mock [values], {#filter: filter}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future updatePackages( + _i15.Future updatePackages( Iterable<_i10.PackageKitPackageId>? packageIds, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, }) => @@ -2113,12 +2214,12 @@ class MockPackageKitTransaction extends _i1.Mock [packageIds], {#transactionFlags: transactionFlags}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future upgradeSystem( + _i15.Future upgradeSystem( String? distroId, _i10.PackageKitDistroUpgrade? upgradeKind, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, @@ -2132,9 +2233,9 @@ class MockPackageKitTransaction extends _i1.Mock ], {#transactionFlags: transactionFlags}, ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); } /// A class which mocks [RatingsService]. @@ -2155,53 +2256,53 @@ class MockRatingsService extends _i1.Mock implements _i4.RatingsService { ) as _i11.RatingsClient); @override - _i14.Future<_i12.Rating?> getRating(String? snapId) => (super.noSuchMethod( + _i15.Future<_i12.Rating?> getRating(String? snapId) => (super.noSuchMethod( Invocation.method( #getRating, [snapId], ), - returnValue: _i14.Future<_i12.Rating?>.value(), - ) as _i14.Future<_i12.Rating?>); + returnValue: _i15.Future<_i12.Rating?>.value(), + ) as _i15.Future<_i12.Rating?>); @override - _i14.Future vote(_i12.Vote? vote) => (super.noSuchMethod( + _i15.Future vote(_i12.Vote? vote) => (super.noSuchMethod( Invocation.method( #vote, [vote], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future delete() => (super.noSuchMethod( + _i15.Future delete() => (super.noSuchMethod( Invocation.method( #delete, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future> listMyVotes(String? snapFilter) => + _i15.Future> listMyVotes(String? snapFilter) => (super.noSuchMethod( Invocation.method( #listMyVotes, [snapFilter], ), - returnValue: _i14.Future>.value(<_i12.Vote>[]), - ) as _i14.Future>); + returnValue: _i15.Future>.value(<_i12.Vote>[]), + ) as _i15.Future>); @override - _i14.Future> getSnapVotes(String? snapId) => + _i15.Future> getSnapVotes(String? snapId) => (super.noSuchMethod( Invocation.method( #getSnapVotes, [snapId], ), - returnValue: _i14.Future>.value(<_i12.Vote>[]), - ) as _i14.Future>); + returnValue: _i15.Future>.value(<_i12.Vote>[]), + ) as _i15.Future>); } /// A class which mocks [RatingsClient]. @@ -2213,7 +2314,7 @@ class MockRatingsClient extends _i1.Mock implements _i11.RatingsClient { } @override - _i14.Future<_i12.Rating> getRating( + _i15.Future<_i12.Rating> getRating( String? snapId, String? token, ) => @@ -2225,7 +2326,7 @@ class MockRatingsClient extends _i1.Mock implements _i11.RatingsClient { token, ], ), - returnValue: _i14.Future<_i12.Rating>.value(_FakeRating_15( + returnValue: _i15.Future<_i12.Rating>.value(_FakeRating_15( this, Invocation.method( #getRating, @@ -2235,19 +2336,25 @@ class MockRatingsClient extends _i1.Mock implements _i11.RatingsClient { ], ), )), - ) as _i14.Future<_i12.Rating>); + ) as _i15.Future<_i12.Rating>); @override - _i14.Future authenticate(String? id) => (super.noSuchMethod( + _i15.Future authenticate(String? id) => (super.noSuchMethod( Invocation.method( #authenticate, [id], ), - returnValue: _i14.Future.value(''), - ) as _i14.Future); + returnValue: _i15.Future.value(_i14.dummyValue( + this, + Invocation.method( + #authenticate, + [id], + ), + )), + ) as _i15.Future); @override - _i14.Future> listMyVotes( + _i15.Future> listMyVotes( String? snapIdFilter, String? token, ) => @@ -2259,11 +2366,11 @@ class MockRatingsClient extends _i1.Mock implements _i11.RatingsClient { token, ], ), - returnValue: _i14.Future>.value(<_i12.Vote>[]), - ) as _i14.Future>); + returnValue: _i15.Future>.value(<_i12.Vote>[]), + ) as _i15.Future>); @override - _i14.Future vote( + _i15.Future vote( String? snapId, int? snapRevision, bool? voteUp, @@ -2279,22 +2386,22 @@ class MockRatingsClient extends _i1.Mock implements _i11.RatingsClient { token, ], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future delete(String? token) => (super.noSuchMethod( + _i15.Future delete(String? token) => (super.noSuchMethod( Invocation.method( #delete, [token], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future> getSnapVotes( + _i15.Future> getSnapVotes( String? snap_id, String? token, ) => @@ -2306,8 +2413,8 @@ class MockRatingsClient extends _i1.Mock implements _i11.RatingsClient { token, ], ), - returnValue: _i14.Future>.value(<_i12.Vote>[]), - ) as _i14.Future>); + returnValue: _i15.Future>.value(<_i12.Vote>[]), + ) as _i15.Future>); } /// A class which mocks [AppstreamService]. @@ -2331,25 +2438,25 @@ class MockAppstreamService extends _i1.Mock implements _i7.AppstreamService { ) as int); @override - _i14.Future init() => (super.noSuchMethod( + _i15.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future> search(String? search) => + _i15.Future> search(String? search) => (super.noSuchMethod( Invocation.method( #search, [search], ), - returnValue: _i14.Future>.value( + returnValue: _i15.Future>.value( <_i9.AppstreamComponent>[]), - ) as _i14.Future>); + ) as _i15.Future>); @override _i9.AppstreamComponent getFromId(String? id) => (super.noSuchMethod( @@ -2382,11 +2489,11 @@ class MockPackageKitService extends _i1.Mock implements _i8.PackageKitService { ) as bool); @override - _i14.Stream<_i10.PackageKitErrorCodeEvent> get errorStream => + _i15.Stream<_i10.PackageKitErrorCodeEvent> get errorStream => (super.noSuchMethod( Invocation.getter(#errorStream), - returnValue: _i14.Stream<_i10.PackageKitErrorCodeEvent>.empty(), - ) as _i14.Stream<_i10.PackageKitErrorCodeEvent>); + returnValue: _i15.Stream<_i10.PackageKitErrorCodeEvent>.empty(), + ) as _i15.Stream<_i10.PackageKitErrorCodeEvent>); @override _i10.PackageKitTransaction? getTransaction(int? id) => @@ -2396,57 +2503,57 @@ class MockPackageKitService extends _i1.Mock implements _i8.PackageKitService { )) as _i10.PackageKitTransaction?); @override - _i14.Future activateService() => (super.noSuchMethod( + _i15.Future activateService() => (super.noSuchMethod( Invocation.method( #activateService, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future waitTransaction(int? id) => (super.noSuchMethod( + _i15.Future waitTransaction(int? id) => (super.noSuchMethod( Invocation.method( #waitTransaction, [id], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future cancelTransaction(int? id) => (super.noSuchMethod( + _i15.Future cancelTransaction(int? id) => (super.noSuchMethod( Invocation.method( #cancelTransaction, [id], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); @override - _i14.Future install(_i10.PackageKitPackageId? packageId) => + _i15.Future install(_i10.PackageKitPackageId? packageId) => (super.noSuchMethod( Invocation.method( #install, [packageId], ), - returnValue: _i14.Future.value(0), - ) as _i14.Future); + returnValue: _i15.Future.value(0), + ) as _i15.Future); @override - _i14.Future remove(_i10.PackageKitPackageId? packageId) => + _i15.Future remove(_i10.PackageKitPackageId? packageId) => (super.noSuchMethod( Invocation.method( #remove, [packageId], ), - returnValue: _i14.Future.value(0), - ) as _i14.Future); + returnValue: _i15.Future.value(0), + ) as _i15.Future); @override - _i14.Future<_i10.PackageKitPackageEvent?> resolve( + _i15.Future<_i10.PackageKitPackageEvent?> resolve( String? name, [ String? architecture, ]) => @@ -2458,16 +2565,16 @@ class MockPackageKitService extends _i1.Mock implements _i8.PackageKitService { architecture, ], ), - returnValue: _i14.Future<_i10.PackageKitPackageEvent?>.value(), - ) as _i14.Future<_i10.PackageKitPackageEvent?>); + returnValue: _i15.Future<_i10.PackageKitPackageEvent?>.value(), + ) as _i15.Future<_i10.PackageKitPackageEvent?>); @override - _i14.Future dispose() => (super.noSuchMethod( + _i15.Future dispose() => (super.noSuchMethod( Invocation.method( #dispose, [], ), - returnValue: _i14.Future.value(), - returnValueForMissingStub: _i14.Future.value(), - ) as _i14.Future); + returnValue: _i15.Future.value(), + returnValueForMissingStub: _i15.Future.value(), + ) as _i15.Future); }