diff --git a/packages/app_center/lib/src/ratings/ratings_l10n.dart b/packages/app_center/lib/src/ratings/ratings_l10n.dart index 6e1baa067..2f200a0d1 100644 --- a/packages/app_center/lib/src/ratings/ratings_l10n.dart +++ b/packages/app_center/lib/src/ratings/ratings_l10n.dart @@ -1,8 +1,7 @@ import 'package:app_center_ratings_client/ratings_client.dart'; import 'package:flutter/material.dart'; -import '/l10n.dart'; -import 'exports.dart'; +import '../../l10n.dart'; extension RatingsBandL10n on RatingsBand { String localize(AppLocalizations l10n) { diff --git a/packages/app_center/test/test_utils.mocks.dart b/packages/app_center/test/test_utils.mocks.dart index 860212eab..7d0cdaaa2 100644 --- a/packages/app_center/test/test_utils.mocks.dart +++ b/packages/app_center/test/test_utils.mocks.dart @@ -3,25 +3,26 @@ // Do not manually edit this file. // ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i15; -import 'dart:ui' as _i16; +import 'dart:async' as _i14; +import 'dart:ui' as _i15; 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 _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/deb/deb_model.dart' as _i16; +import 'package:app_center/src/manage/manage_model.dart' as _i17; +import 'package:app_center/src/ratings/exports.dart' as _i21; +import 'package:app_center/src/ratings/ratings_model.dart' as _i12; import 'package:app_center/src/ratings/ratings_service.dart' as _i4; import 'package:app_center_ratings_client/ratings_client.dart' as _i11; +import 'package:app_center_ratings_client/src/chart.dart' as _i22; import 'package:appstream/appstream.dart' as _i9; -import 'package:dbus/dbus.dart' as _i21; -import 'package:file/file.dart' as _i19; +import 'package:dbus/dbus.dart' as _i20; +import 'package:file/file.dart' as _i18; import 'package:flutter_riverpod/flutter_riverpod.dart' as _i5; -import 'package:gtk/src/gtk_application_notifier.dart' as _i20; +import 'package:gtk/src/gtk_application_notifier.dart' as _i19; import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i14; +import 'package:mockito/src/dummies.dart' as _i13; import 'package:packagekit/packagekit.dart' as _i10; import 'package:snapcraft_launcher/snapcraft_launcher.dart' as _i3; import 'package:snapd/snapd.dart' as _i2; @@ -199,7 +200,7 @@ class _FakeRatingsClient_14 extends _i1.SmartFake ); } -class _FakeRating_15 extends _i1.SmartFake implements _i12.Rating { +class _FakeRating_15 extends _i1.SmartFake implements _i11.Rating { _FakeRating_15( Object parent, Invocation parentInvocation, @@ -254,7 +255,7 @@ class MockSnapLauncher extends _i1.Mock implements _i6.SnapLauncher { /// A class which mocks [RatingsModel]. /// /// See the documentation for Mockito's code generation for more information. -class MockRatingsModel extends _i1.Mock implements _i13.RatingsModel { +class MockRatingsModel extends _i1.Mock implements _i12.RatingsModel { MockRatingsModel() { _i1.throwOnMissingStub(this); } @@ -271,7 +272,7 @@ class MockRatingsModel extends _i1.Mock implements _i13.RatingsModel { @override String get snapId => (super.noSuchMethod( Invocation.getter(#snapId), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#snapId), ), @@ -280,14 +281,14 @@ class MockRatingsModel extends _i1.Mock implements _i13.RatingsModel { @override String get snapRevision => (super.noSuchMethod( Invocation.getter(#snapRevision), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#snapRevision), ), ) as String); @override - set snapRating(_i12.Rating? _snapRating) => super.noSuchMethod( + set snapRating(_i11.Rating? _snapRating) => super.noSuchMethod( Invocation.setter( #snapRating, _snapRating, @@ -311,27 +312,27 @@ class MockRatingsModel extends _i1.Mock implements _i13.RatingsModel { ) as bool); @override - _i15.Future init() => (super.noSuchMethod( + _i14.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future castVote(_i13.VoteStatus? castVote) => (super.noSuchMethod( + _i14.Future castVote(_i12.VoteStatus? castVote) => (super.noSuchMethod( Invocation.method( #castVote, [castVote], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -340,7 +341,7 @@ class MockRatingsModel extends _i1.Mock implements _i13.RatingsModel { ); @override - void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -387,7 +388,7 @@ class MockSnapModel extends _i1.Mock implements _i6.SnapModel { @override String get snapName => (super.noSuchMethod( Invocation.getter(#snapName), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#snapName), ), @@ -451,10 +452,10 @@ class MockSnapModel extends _i1.Mock implements _i6.SnapModel { ); @override - _i15.Stream<_i2.SnapdException> get errorStream => (super.noSuchMethod( + _i14.Stream<_i2.SnapdException> get errorStream => (super.noSuchMethod( Invocation.getter(#errorStream), - returnValue: _i15.Stream<_i2.SnapdException>.empty(), - ) as _i15.Stream<_i2.SnapdException>); + returnValue: _i14.Stream<_i2.SnapdException>.empty(), + ) as _i14.Stream<_i2.SnapdException>); @override bool get hasListeners => (super.noSuchMethod( @@ -463,67 +464,67 @@ class MockSnapModel extends _i1.Mock implements _i6.SnapModel { ) as bool); @override - _i15.Future init() => (super.noSuchMethod( + _i14.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future dispose() => (super.noSuchMethod( + _i14.Future dispose() => (super.noSuchMethod( Invocation.method( #dispose, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future cancel() => (super.noSuchMethod( + _i14.Future cancel() => (super.noSuchMethod( Invocation.method( #cancel, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future install() => (super.noSuchMethod( + _i14.Future install() => (super.noSuchMethod( Invocation.method( #install, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future refresh() => (super.noSuchMethod( + _i14.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future remove() => (super.noSuchMethod( + _i14.Future remove() => (super.noSuchMethod( Invocation.method( #remove, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -532,7 +533,7 @@ class MockSnapModel extends _i1.Mock implements _i6.SnapModel { ); @override - void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -553,7 +554,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 _i17.DebModel { +class MockDebModel extends _i1.Mock implements _i16.DebModel { MockDebModel() { _i1.throwOnMissingStub(this); } @@ -579,7 +580,7 @@ class MockDebModel extends _i1.Mock implements _i17.DebModel { @override String get id => (super.noSuchMethod( Invocation.getter(#id), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#id), ), @@ -620,11 +621,11 @@ class MockDebModel extends _i1.Mock implements _i17.DebModel { ) as bool); @override - _i15.Stream<_i10.PackageKitErrorCodeEvent> get errorStream => + _i14.Stream<_i10.PackageKitErrorCodeEvent> get errorStream => (super.noSuchMethod( Invocation.getter(#errorStream), - returnValue: _i15.Stream<_i10.PackageKitErrorCodeEvent>.empty(), - ) as _i15.Stream<_i10.PackageKitErrorCodeEvent>); + returnValue: _i14.Stream<_i10.PackageKitErrorCodeEvent>.empty(), + ) as _i14.Stream<_i10.PackageKitErrorCodeEvent>); @override bool get hasListeners => (super.noSuchMethod( @@ -633,47 +634,47 @@ class MockDebModel extends _i1.Mock implements _i17.DebModel { ) as bool); @override - _i15.Future init() => (super.noSuchMethod( + _i14.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future install() => (super.noSuchMethod( + _i14.Future install() => (super.noSuchMethod( Invocation.method( #install, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future remove() => (super.noSuchMethod( + _i14.Future remove() => (super.noSuchMethod( Invocation.method( #remove, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future cancel() => (super.noSuchMethod( + _i14.Future cancel() => (super.noSuchMethod( Invocation.method( #cancel, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -682,7 +683,7 @@ class MockDebModel extends _i1.Mock implements _i17.DebModel { ); @override - void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -712,7 +713,7 @@ class MockDebModel extends _i1.Mock implements _i17.DebModel { /// A class which mocks [ManageModel]. /// /// See the documentation for Mockito's code generation for more information. -class MockManageModel extends _i1.Mock implements _i18.ManageModel { +class MockManageModel extends _i1.Mock implements _i17.ManageModel { MockManageModel() { _i1.throwOnMissingStub(this); } @@ -763,14 +764,14 @@ class MockManageModel extends _i1.Mock implements _i18.ManageModel { ) as bool); @override - _i15.Future init() => (super.noSuchMethod( + _i14.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override void dispose() => super.noSuchMethod( @@ -782,7 +783,7 @@ class MockManageModel extends _i1.Mock implements _i18.ManageModel { ); @override - void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -791,7 +792,7 @@ class MockManageModel extends _i1.Mock implements _i18.ManageModel { ); @override - void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -842,25 +843,25 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { ); @override - _i15.Future waitChange(String? changeId) => (super.noSuchMethod( + _i14.Future waitChange(String? changeId) => (super.noSuchMethod( Invocation.method( #waitChange, [changeId], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future loadAuthorization({String? path}) => (super.noSuchMethod( + _i14.Future loadAuthorization({String? path}) => (super.noSuchMethod( Invocation.method( #loadAuthorization, [], {#path: path}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override void setAuthorization( @@ -879,12 +880,12 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { ); @override - _i15.Future<_i2.SnapdSystemInfoResponse> systemInfo() => (super.noSuchMethod( + _i14.Future<_i2.SnapdSystemInfoResponse> systemInfo() => (super.noSuchMethod( Invocation.method( #systemInfo, [], ), - returnValue: _i15.Future<_i2.SnapdSystemInfoResponse>.value( + returnValue: _i14.Future<_i2.SnapdSystemInfoResponse>.value( _FakeSnapdSystemInfoResponse_9( this, Invocation.method( @@ -892,34 +893,34 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { [], ), )), - ) as _i15.Future<_i2.SnapdSystemInfoResponse>); + ) as _i14.Future<_i2.SnapdSystemInfoResponse>); @override - _i15.Future> getSnaps() => (super.noSuchMethod( + _i14.Future> getSnaps() => (super.noSuchMethod( Invocation.method( #getSnaps, [], ), - returnValue: _i15.Future>.value(<_i2.Snap>[]), - ) as _i15.Future>); + returnValue: _i14.Future>.value(<_i2.Snap>[]), + ) as _i14.Future>); @override - _i15.Future<_i2.Snap> getSnap(String? name) => (super.noSuchMethod( + _i14.Future<_i2.Snap> getSnap(String? name) => (super.noSuchMethod( Invocation.method( #getSnap, [name], ), - returnValue: _i15.Future<_i2.Snap>.value(_FakeSnap_0( + returnValue: _i14.Future<_i2.Snap>.value(_FakeSnap_0( this, Invocation.method( #getSnap, [name], ), )), - ) as _i15.Future<_i2.Snap>); + ) as _i14.Future<_i2.Snap>); @override - _i15.Future> getApps({ + _i14.Future> getApps({ List? names, _i2.SnapdAppFilter? filter, }) => @@ -932,22 +933,22 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #filter: filter, }, ), - returnValue: _i15.Future>.value(<_i2.SnapApp>[]), - ) as _i15.Future>); + returnValue: _i14.Future>.value(<_i2.SnapApp>[]), + ) as _i14.Future>); @override - _i15.Future> getCategories() => + _i14.Future> getCategories() => (super.noSuchMethod( Invocation.method( #getCategories, [], ), - returnValue: _i15.Future>.value( + returnValue: _i14.Future>.value( <_i2.SnapdCategoryDetails>[]), - ) as _i15.Future>); + ) as _i14.Future>); @override - _i15.Future<_i2.SnapdConnectionsResponse> getConnections({ + _i14.Future<_i2.SnapdConnectionsResponse> getConnections({ String? snap, String? interface, _i2.SnapdConnectionFilter? filter, @@ -962,7 +963,7 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #filter: filter, }, ), - returnValue: _i15.Future<_i2.SnapdConnectionsResponse>.value( + returnValue: _i14.Future<_i2.SnapdConnectionsResponse>.value( _FakeSnapdConnectionsResponse_10( this, Invocation.method( @@ -975,25 +976,25 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { }, ), )), - ) as _i15.Future<_i2.SnapdConnectionsResponse>); + ) as _i14.Future<_i2.SnapdConnectionsResponse>); @override - _i15.Future refreshMany(List? names) => (super.noSuchMethod( + _i14.Future refreshMany(List? names) => (super.noSuchMethod( Invocation.method( #refreshMany, [names], ), - returnValue: _i15.Future.value(_i14.dummyValue( + returnValue: _i14.Future.value(_i13.dummyValue( this, Invocation.method( #refreshMany, [names], ), )), - ) as _i15.Future); + ) as _i14.Future); @override - _i15.Future connect( + _i14.Future connect( String? snap, String? plug, String? slotSnap, @@ -1009,7 +1010,7 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { slot, ], ), - returnValue: _i15.Future.value(_i14.dummyValue( + returnValue: _i14.Future.value(_i13.dummyValue( this, Invocation.method( #connect, @@ -1021,10 +1022,10 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { ], ), )), - ) as _i15.Future); + ) as _i14.Future); @override - _i15.Future disconnect( + _i14.Future disconnect( String? plugSnap, String? plug, String? slotSnap, @@ -1040,7 +1041,7 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { slot, ], ), - returnValue: _i15.Future.value(_i14.dummyValue( + returnValue: _i14.Future.value(_i13.dummyValue( this, Invocation.method( #disconnect, @@ -1052,10 +1053,10 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { ], ), )), - ) as _i15.Future); + ) as _i14.Future); @override - _i15.Future> find({ + _i14.Future> find({ String? query, String? name, String? category, @@ -1074,11 +1075,11 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #filter: filter, }, ), - returnValue: _i15.Future>.value(<_i2.Snap>[]), - ) as _i15.Future>); + returnValue: _i14.Future>.value(<_i2.Snap>[]), + ) as _i14.Future>); @override - _i15.Future<_i2.SnapdLoginResponse> login( + _i14.Future<_i2.SnapdLoginResponse> login( String? email, String? password, { String? otp, @@ -1092,7 +1093,7 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { ], {#otp: otp}, ), - returnValue: _i15.Future<_i2.SnapdLoginResponse>.value( + returnValue: _i14.Future<_i2.SnapdLoginResponse>.value( _FakeSnapdLoginResponse_11( this, Invocation.method( @@ -1104,19 +1105,19 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { {#otp: otp}, ), )), - ) as _i15.Future<_i2.SnapdLoginResponse>); + ) as _i14.Future<_i2.SnapdLoginResponse>); @override - _i15.Future logout(int? id) => (super.noSuchMethod( + _i14.Future logout(int? id) => (super.noSuchMethod( Invocation.method( #logout, [id], ), - returnValue: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future install( + _i14.Future install( String? name, { String? channel, String? revision, @@ -1138,7 +1139,7 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #jailmode: jailmode, }, ), - returnValue: _i15.Future.value(_i14.dummyValue( + returnValue: _i14.Future.value(_i13.dummyValue( this, Invocation.method( #install, @@ -1153,10 +1154,10 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { }, ), )), - ) as _i15.Future); + ) as _i14.Future); @override - _i15.Future refresh( + _i14.Future refresh( String? name, { String? channel, bool? classic = false, @@ -1170,7 +1171,7 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #classic: classic, }, ), - returnValue: _i15.Future.value(_i14.dummyValue( + returnValue: _i14.Future.value(_i13.dummyValue( this, Invocation.method( #refresh, @@ -1181,10 +1182,10 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { }, ), )), - ) as _i15.Future); + ) as _i14.Future); @override - _i15.Future remove( + _i14.Future remove( String? name, { bool? purge = false, }) => @@ -1194,7 +1195,7 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { [name], {#purge: purge}, ), - returnValue: _i15.Future.value(_i14.dummyValue( + returnValue: _i14.Future.value(_i13.dummyValue( this, Invocation.method( #remove, @@ -1202,55 +1203,55 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { {#purge: purge}, ), )), - ) as _i15.Future); + ) as _i14.Future); @override - _i15.Future enable(String? name) => (super.noSuchMethod( + _i14.Future enable(String? name) => (super.noSuchMethod( Invocation.method( #enable, [name], ), - returnValue: _i15.Future.value(_i14.dummyValue( + returnValue: _i14.Future.value(_i13.dummyValue( this, Invocation.method( #enable, [name], ), )), - ) as _i15.Future); + ) as _i14.Future); @override - _i15.Future disable(String? name) => (super.noSuchMethod( + _i14.Future disable(String? name) => (super.noSuchMethod( Invocation.method( #disable, [name], ), - returnValue: _i15.Future.value(_i14.dummyValue( + returnValue: _i14.Future.value(_i13.dummyValue( this, Invocation.method( #disable, [name], ), )), - ) as _i15.Future); + ) as _i14.Future); @override - _i15.Future<_i2.SnapdChange> getChange(String? id) => (super.noSuchMethod( + _i14.Future<_i2.SnapdChange> getChange(String? id) => (super.noSuchMethod( Invocation.method( #getChange, [id], ), - returnValue: _i15.Future<_i2.SnapdChange>.value(_FakeSnapdChange_12( + returnValue: _i14.Future<_i2.SnapdChange>.value(_FakeSnapdChange_12( this, Invocation.method( #getChange, [id], ), )), - ) as _i15.Future<_i2.SnapdChange>); + ) as _i14.Future<_i2.SnapdChange>); @override - _i15.Future> getChanges({ + _i14.Future> getChanges({ _i2.SnapdChangeFilter? filter, String? name, }) => @@ -1264,23 +1265,23 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { }, ), returnValue: - _i15.Future>.value(<_i2.SnapdChange>[]), - ) as _i15.Future>); + _i14.Future>.value(<_i2.SnapdChange>[]), + ) as _i14.Future>); @override - _i15.Future<_i2.SnapdChange> abortChange(String? id) => (super.noSuchMethod( + _i14.Future<_i2.SnapdChange> abortChange(String? id) => (super.noSuchMethod( Invocation.method( #abortChange, [id], ), - returnValue: _i15.Future<_i2.SnapdChange>.value(_FakeSnapdChange_12( + returnValue: _i14.Future<_i2.SnapdChange>.value(_FakeSnapdChange_12( this, Invocation.method( #abortChange, [id], ), )), - ) as _i15.Future<_i2.SnapdChange>); + ) as _i14.Future<_i2.SnapdChange>); @override void close() => super.noSuchMethod( @@ -1292,10 +1293,10 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { ); @override - _i15.Stream> getCategory( + _i14.Stream> getCategory( String? name, { Duration? expiry = const Duration(days: 1), - _i19.FileSystem? fs, + _i18.FileSystem? fs, }) => (super.noSuchMethod( Invocation.method( @@ -1306,14 +1307,14 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #fs: fs, }, ), - returnValue: _i15.Stream>.empty(), - ) as _i15.Stream>); + returnValue: _i14.Stream>.empty(), + ) as _i14.Stream>); @override - _i15.Stream<_i2.Snap?> getStoreSnap( + _i14.Stream<_i2.Snap?> getStoreSnap( String? name, { Duration? expiry = const Duration(minutes: 1), - _i19.FileSystem? fs, + _i18.FileSystem? fs, }) => (super.noSuchMethod( Invocation.method( @@ -1324,14 +1325,14 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #fs: fs, }, ), - returnValue: _i15.Stream<_i2.Snap?>.empty(), - ) as _i15.Stream<_i2.Snap?>); + returnValue: _i14.Stream<_i2.Snap?>.empty(), + ) as _i14.Stream<_i2.Snap?>); @override - _i15.Stream> getStoreSnaps( + _i14.Stream> getStoreSnaps( List? names, { Duration? expiry = const Duration(minutes: 1), - _i19.FileSystem? fs, + _i18.FileSystem? fs, }) => (super.noSuchMethod( Invocation.method( @@ -1342,11 +1343,11 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #fs: fs, }, ), - returnValue: _i15.Stream>.empty(), - ) as _i15.Stream>); + returnValue: _i14.Stream>.empty(), + ) as _i14.Stream>); @override - _i15.Stream<_i2.SnapdChange> watchChange( + _i14.Stream<_i2.SnapdChange> watchChange( String? id, { Duration? interval = const Duration(milliseconds: 100), }) => @@ -1356,11 +1357,11 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { [id], {#interval: interval}, ), - returnValue: _i15.Stream<_i2.SnapdChange>.empty(), - ) as _i15.Stream<_i2.SnapdChange>); + returnValue: _i14.Stream<_i2.SnapdChange>.empty(), + ) as _i14.Stream<_i2.SnapdChange>); @override - _i15.Stream> watchChanges({ + _i14.Stream> watchChanges({ String? name, Duration? interval = const Duration(milliseconds: 100), }) => @@ -1373,8 +1374,8 @@ class MockSnapdService extends _i1.Mock implements _i6.SnapdService { #interval: interval, }, ), - returnValue: _i15.Stream>.empty(), - ) as _i15.Stream>); + returnValue: _i14.Stream>.empty(), + ) as _i14.Stream>); } /// A class which mocks [UpdatesModel]. @@ -1410,10 +1411,10 @@ class MockUpdatesModel extends _i1.Mock implements _i6.UpdatesModel { ) as _i5.AsyncValue); @override - _i15.Stream<_i2.SnapdException> get errorStream => (super.noSuchMethod( + _i14.Stream<_i2.SnapdException> get errorStream => (super.noSuchMethod( Invocation.getter(#errorStream), - returnValue: _i15.Stream<_i2.SnapdException>.empty(), - ) as _i15.Stream<_i2.SnapdException>); + returnValue: _i14.Stream<_i2.SnapdException>.empty(), + ) as _i14.Stream<_i2.SnapdException>); @override bool get hasListeners => (super.noSuchMethod( @@ -1422,14 +1423,14 @@ class MockUpdatesModel extends _i1.Mock implements _i6.UpdatesModel { ) as bool); @override - _i15.Future refresh() => (super.noSuchMethod( + _i14.Future refresh() => (super.noSuchMethod( Invocation.method( #refresh, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override bool hasUpdate(String? snapName) => (super.noSuchMethod( @@ -1441,17 +1442,17 @@ class MockUpdatesModel extends _i1.Mock implements _i6.UpdatesModel { ) as bool); @override - _i15.Future updateAll() => (super.noSuchMethod( + _i14.Future updateAll() => (super.noSuchMethod( Invocation.method( #updateAll, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - void addListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void addListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #addListener, [listener], @@ -1460,7 +1461,7 @@ class MockUpdatesModel extends _i1.Mock implements _i6.UpdatesModel { ); @override - void removeListener(_i16.VoidCallback? listener) => super.noSuchMethod( + void removeListener(_i15.VoidCallback? listener) => super.noSuchMethod( Invocation.method( #removeListener, [listener], @@ -1491,13 +1492,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 _i20.GtkApplicationNotifier { + implements _i19.GtkApplicationNotifier { MockGtkApplicationNotifier() { _i1.throwOnMissingStub(this); } @override - void addCommandLineListener(_i20.GtkCommandLineListener? listener) => + void addCommandLineListener(_i19.GtkCommandLineListener? listener) => super.noSuchMethod( Invocation.method( #addCommandLineListener, @@ -1507,7 +1508,7 @@ class MockGtkApplicationNotifier extends _i1.Mock ); @override - void removeCommandLineListener(_i20.GtkCommandLineListener? listener) => + void removeCommandLineListener(_i19.GtkCommandLineListener? listener) => super.noSuchMethod( Invocation.method( #removeCommandLineListener, @@ -1517,7 +1518,7 @@ class MockGtkApplicationNotifier extends _i1.Mock ); @override - void addOpenListener(_i20.GtkOpenListener? listener) => super.noSuchMethod( + void addOpenListener(_i19.GtkOpenListener? listener) => super.noSuchMethod( Invocation.method( #addOpenListener, [listener], @@ -1526,7 +1527,7 @@ class MockGtkApplicationNotifier extends _i1.Mock ); @override - void removeOpenListener(_i20.GtkOpenListener? listener) => super.noSuchMethod( + void removeOpenListener(_i19.GtkOpenListener? listener) => super.noSuchMethod( Invocation.method( #removeOpenListener, [listener], @@ -1650,7 +1651,7 @@ class MockPackageKitClient extends _i1.Mock implements _i10.PackageKitClient { @override String get backendAuthor => (super.noSuchMethod( Invocation.getter(#backendAuthor), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#backendAuthor), ), @@ -1659,7 +1660,7 @@ class MockPackageKitClient extends _i1.Mock implements _i10.PackageKitClient { @override String get backendDescription => (super.noSuchMethod( Invocation.getter(#backendDescription), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#backendDescription), ), @@ -1668,7 +1669,7 @@ class MockPackageKitClient extends _i1.Mock implements _i10.PackageKitClient { @override String get backendName => (super.noSuchMethod( Invocation.getter(#backendName), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#backendName), ), @@ -1677,7 +1678,7 @@ class MockPackageKitClient extends _i1.Mock implements _i10.PackageKitClient { @override String get distroId => (super.noSuchMethod( Invocation.getter(#distroId), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#distroId), ), @@ -1738,30 +1739,30 @@ class MockPackageKitClient extends _i1.Mock implements _i10.PackageKitClient { ) as int); @override - _i15.Stream> get propertiesChanged => (super.noSuchMethod( + _i14.Stream> get propertiesChanged => (super.noSuchMethod( Invocation.getter(#propertiesChanged), - returnValue: _i15.Stream>.empty(), - ) as _i15.Stream>); + returnValue: _i14.Stream>.empty(), + ) as _i14.Stream>); @override - _i15.Future connect() => (super.noSuchMethod( + _i14.Future connect() => (super.noSuchMethod( Invocation.method( #connect, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future<_i10.PackageKitTransaction> getTransaction( - _i21.DBusObjectPath? path) => + _i14.Future<_i10.PackageKitTransaction> getTransaction( + _i20.DBusObjectPath? path) => (super.noSuchMethod( Invocation.method( #getTransaction, [path], ), - returnValue: _i15.Future<_i10.PackageKitTransaction>.value( + returnValue: _i14.Future<_i10.PackageKitTransaction>.value( _FakePackageKitTransaction_13( this, Invocation.method( @@ -1769,16 +1770,16 @@ class MockPackageKitClient extends _i1.Mock implements _i10.PackageKitClient { [path], ), )), - ) as _i15.Future<_i10.PackageKitTransaction>); + ) as _i14.Future<_i10.PackageKitTransaction>); @override - _i15.Future<_i10.PackageKitTransaction> createTransaction() => + _i14.Future<_i10.PackageKitTransaction> createTransaction() => (super.noSuchMethod( Invocation.method( #createTransaction, [], ), - returnValue: _i15.Future<_i10.PackageKitTransaction>.value( + returnValue: _i14.Future<_i10.PackageKitTransaction>.value( _FakePackageKitTransaction_13( this, Invocation.method( @@ -1786,17 +1787,17 @@ class MockPackageKitClient extends _i1.Mock implements _i10.PackageKitClient { [], ), )), - ) as _i15.Future<_i10.PackageKitTransaction>); + ) as _i14.Future<_i10.PackageKitTransaction>); @override - _i15.Future close() => (super.noSuchMethod( + _i14.Future close() => (super.noSuchMethod( Invocation.method( #close, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); } /// A class which mocks [PackageKitTransaction]. @@ -1809,13 +1810,13 @@ class MockPackageKitTransaction extends _i1.Mock } @override - _i15.Stream<_i10.PackageKitEvent> get events => (super.noSuchMethod( + _i14.Stream<_i10.PackageKitEvent> get events => (super.noSuchMethod( Invocation.getter(#events), - returnValue: _i15.Stream<_i10.PackageKitEvent>.empty(), - ) as _i15.Stream<_i10.PackageKitEvent>); + returnValue: _i14.Stream<_i10.PackageKitEvent>.empty(), + ) as _i14.Stream<_i10.PackageKitEvent>); @override - set events(_i15.Stream<_i10.PackageKitEvent>? _events) => super.noSuchMethod( + set events(_i14.Stream<_i10.PackageKitEvent>? _events) => super.noSuchMethod( Invocation.setter( #events, _events, @@ -1838,7 +1839,7 @@ class MockPackageKitTransaction extends _i1.Mock @override String get lastPackage => (super.noSuchMethod( Invocation.getter(#lastPackage), - returnValue: _i14.dummyValue( + returnValue: _i13.dummyValue( this, Invocation.getter(#lastPackage), ), @@ -1900,23 +1901,23 @@ class MockPackageKitTransaction extends _i1.Mock ) as Set<_i10.PackageKitTransactionFlag>); @override - _i15.Stream> get propertiesChanged => (super.noSuchMethod( + _i14.Stream> get propertiesChanged => (super.noSuchMethod( Invocation.getter(#propertiesChanged), - returnValue: _i15.Stream>.empty(), - ) as _i15.Stream>); + returnValue: _i14.Stream>.empty(), + ) as _i14.Stream>); @override - _i15.Future cancel() => (super.noSuchMethod( + _i14.Future cancel() => (super.noSuchMethod( Invocation.method( #cancel, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future dependsOn( + _i14.Future dependsOn( Iterable<_i10.PackageKitPackageId>? packageIds, { Set<_i10.PackageKitFilter>? filter = const {}, bool? recursive = false, @@ -1930,35 +1931,35 @@ class MockPackageKitTransaction extends _i1.Mock #recursive: recursive, }, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future getDetails( + _i14.Future getDetails( Iterable<_i10.PackageKitPackageId>? packageIds) => (super.noSuchMethod( Invocation.method( #getDetails, [packageIds], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future getDetailsLocal(Iterable? paths) => + _i14.Future getDetailsLocal(Iterable? paths) => (super.noSuchMethod( Invocation.method( #getDetailsLocal, [paths], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future downloadPackages( + _i14.Future downloadPackages( Iterable<_i10.PackageKitPackageId>? packageIds, { bool? storeInCache = false, }) => @@ -1968,34 +1969,34 @@ class MockPackageKitTransaction extends _i1.Mock [packageIds], {#storeInCache: storeInCache}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future getFiles(Iterable<_i10.PackageKitPackageId>? packageIds) => + _i14.Future getFiles(Iterable<_i10.PackageKitPackageId>? packageIds) => (super.noSuchMethod( Invocation.method( #getFiles, [packageIds], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future getFilesLocal(Iterable? paths) => + _i14.Future getFilesLocal(Iterable? paths) => (super.noSuchMethod( Invocation.method( #getFilesLocal, [paths], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future getPackages( + _i14.Future getPackages( {Set<_i10.PackageKitFilter>? filter = const {}}) => (super.noSuchMethod( Invocation.method( @@ -2003,12 +2004,12 @@ class MockPackageKitTransaction extends _i1.Mock [], {#filter: filter}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future getRepositoryList( + _i14.Future getRepositoryList( {Set<_i10.PackageKitFilter>? filter = const {}}) => (super.noSuchMethod( Invocation.method( @@ -2016,12 +2017,12 @@ class MockPackageKitTransaction extends _i1.Mock [], {#filter: filter}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future setRepositoryEnabled( + _i14.Future setRepositoryEnabled( String? id, bool? enabled, ) => @@ -2033,12 +2034,12 @@ class MockPackageKitTransaction extends _i1.Mock enabled, ], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future setRepositoryData( + _i14.Future setRepositoryData( String? id, String? parameter, String? value, @@ -2052,12 +2053,12 @@ class MockPackageKitTransaction extends _i1.Mock value, ], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future removeRepository( + _i14.Future removeRepository( String? id, { bool? autoremovePackages = false, }) => @@ -2067,24 +2068,24 @@ class MockPackageKitTransaction extends _i1.Mock [id], {#autoremovePackages: autoremovePackages}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future getUpdateDetail( + _i14.Future getUpdateDetail( Iterable<_i10.PackageKitPackageId>? packageIds) => (super.noSuchMethod( Invocation.method( #getUpdateDetail, [packageIds], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future getUpdates( + _i14.Future getUpdates( {Set<_i10.PackageKitFilter>? filter = const {}}) => (super.noSuchMethod( Invocation.method( @@ -2092,12 +2093,12 @@ class MockPackageKitTransaction extends _i1.Mock [], {#filter: filter}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future installFiles( + _i14.Future installFiles( Iterable? paths, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, }) => @@ -2107,12 +2108,12 @@ class MockPackageKitTransaction extends _i1.Mock [paths], {#transactionFlags: transactionFlags}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future installPackages( + _i14.Future installPackages( Iterable<_i10.PackageKitPackageId>? packageIds, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, }) => @@ -2122,23 +2123,23 @@ class MockPackageKitTransaction extends _i1.Mock [packageIds], {#transactionFlags: transactionFlags}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future refreshCache({bool? force = false}) => (super.noSuchMethod( + _i14.Future refreshCache({bool? force = false}) => (super.noSuchMethod( Invocation.method( #refreshCache, [], {#force: force}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future removePackages( + _i14.Future removePackages( Iterable<_i10.PackageKitPackageId>? packageIds, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, bool? allowDeps = false, @@ -2154,12 +2155,12 @@ class MockPackageKitTransaction extends _i1.Mock #autoremove: autoremove, }, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future resolve( + _i14.Future resolve( Iterable? packages, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, }) => @@ -2169,12 +2170,12 @@ class MockPackageKitTransaction extends _i1.Mock [packages], {#transactionFlags: transactionFlags}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future searchFiles( + _i14.Future searchFiles( Iterable? values, { Set<_i10.PackageKitFilter>? filter = const {}, }) => @@ -2184,12 +2185,12 @@ class MockPackageKitTransaction extends _i1.Mock [values], {#filter: filter}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future searchNames( + _i14.Future searchNames( Iterable? values, { Set<_i10.PackageKitFilter>? filter = const {}, }) => @@ -2199,12 +2200,12 @@ class MockPackageKitTransaction extends _i1.Mock [values], {#filter: filter}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future updatePackages( + _i14.Future updatePackages( Iterable<_i10.PackageKitPackageId>? packageIds, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, }) => @@ -2214,12 +2215,12 @@ class MockPackageKitTransaction extends _i1.Mock [packageIds], {#transactionFlags: transactionFlags}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future upgradeSystem( + _i14.Future upgradeSystem( String? distroId, _i10.PackageKitDistroUpgrade? upgradeKind, { Set<_i10.PackageKitTransactionFlag>? transactionFlags = const {}, @@ -2233,9 +2234,9 @@ class MockPackageKitTransaction extends _i1.Mock ], {#transactionFlags: transactionFlags}, ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); } /// A class which mocks [RatingsService]. @@ -2256,53 +2257,53 @@ class MockRatingsService extends _i1.Mock implements _i4.RatingsService { ) as _i11.RatingsClient); @override - _i15.Future<_i12.Rating?> getRating(String? snapId) => (super.noSuchMethod( + _i14.Future<_i11.Rating?> getRating(String? snapId) => (super.noSuchMethod( Invocation.method( #getRating, [snapId], ), - returnValue: _i15.Future<_i12.Rating?>.value(), - ) as _i15.Future<_i12.Rating?>); + returnValue: _i14.Future<_i11.Rating?>.value(), + ) as _i14.Future<_i11.Rating?>); @override - _i15.Future vote(_i12.Vote? vote) => (super.noSuchMethod( + _i14.Future vote(_i21.Vote? vote) => (super.noSuchMethod( Invocation.method( #vote, [vote], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future delete() => (super.noSuchMethod( + _i14.Future delete() => (super.noSuchMethod( Invocation.method( #delete, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future> listMyVotes(String? snapFilter) => + _i14.Future> listMyVotes(String? snapFilter) => (super.noSuchMethod( Invocation.method( #listMyVotes, [snapFilter], ), - returnValue: _i15.Future>.value(<_i12.Vote>[]), - ) as _i15.Future>); + returnValue: _i14.Future>.value(<_i21.Vote>[]), + ) as _i14.Future>); @override - _i15.Future> getSnapVotes(String? snapId) => + _i14.Future> getSnapVotes(String? snapId) => (super.noSuchMethod( Invocation.method( #getSnapVotes, [snapId], ), - returnValue: _i15.Future>.value(<_i12.Vote>[]), - ) as _i15.Future>); + returnValue: _i14.Future>.value(<_i21.Vote>[]), + ) as _i14.Future>); } /// A class which mocks [RatingsClient]. @@ -2314,7 +2315,49 @@ class MockRatingsClient extends _i1.Mock implements _i11.RatingsClient { } @override - _i15.Future<_i12.Rating> getRating( + _i14.Future authenticate(String? id) => (super.noSuchMethod( + Invocation.method( + #authenticate, + [id], + ), + returnValue: _i14.Future.value(_i13.dummyValue( + this, + Invocation.method( + #authenticate, + [id], + ), + )), + ) as _i14.Future); + + @override + _i14.Future delete(String? token) => (super.noSuchMethod( + Invocation.method( + #delete, + [token], + ), + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); + + @override + _i14.Future> getChart( + _i22.Timeframe? timeframe, + String? token, + ) => + (super.noSuchMethod( + Invocation.method( + #getChart, + [ + timeframe, + token, + ], + ), + returnValue: + _i14.Future>.value(<_i22.ChartData>[]), + ) as _i14.Future>); + + @override + _i14.Future<_i11.Rating> getRating( String? snapId, String? token, ) => @@ -2326,7 +2369,7 @@ class MockRatingsClient extends _i1.Mock implements _i11.RatingsClient { token, ], ), - returnValue: _i15.Future<_i12.Rating>.value(_FakeRating_15( + returnValue: _i14.Future<_i11.Rating>.value(_FakeRating_15( this, Invocation.method( #getRating, @@ -2336,25 +2379,26 @@ class MockRatingsClient extends _i1.Mock implements _i11.RatingsClient { ], ), )), - ) as _i15.Future<_i12.Rating>); + ) as _i14.Future<_i11.Rating>); @override - _i15.Future authenticate(String? id) => (super.noSuchMethod( + _i14.Future> getSnapVotes( + String? snap_id, + String? token, + ) => + (super.noSuchMethod( Invocation.method( - #authenticate, - [id], + #getSnapVotes, + [ + snap_id, + token, + ], ), - returnValue: _i15.Future.value(_i14.dummyValue( - this, - Invocation.method( - #authenticate, - [id], - ), - )), - ) as _i15.Future); + returnValue: _i14.Future>.value(<_i21.Vote>[]), + ) as _i14.Future>); @override - _i15.Future> listMyVotes( + _i14.Future> listMyVotes( String? snapIdFilter, String? token, ) => @@ -2366,11 +2410,11 @@ class MockRatingsClient extends _i1.Mock implements _i11.RatingsClient { token, ], ), - returnValue: _i15.Future>.value(<_i12.Vote>[]), - ) as _i15.Future>); + returnValue: _i14.Future>.value(<_i21.Vote>[]), + ) as _i14.Future>); @override - _i15.Future vote( + _i14.Future vote( String? snapId, int? snapRevision, bool? voteUp, @@ -2386,35 +2430,9 @@ class MockRatingsClient extends _i1.Mock implements _i11.RatingsClient { token, ], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); - - @override - _i15.Future delete(String? token) => (super.noSuchMethod( - Invocation.method( - #delete, - [token], - ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); - - @override - _i15.Future> getSnapVotes( - String? snap_id, - String? token, - ) => - (super.noSuchMethod( - Invocation.method( - #getSnapVotes, - [ - snap_id, - token, - ], - ), - returnValue: _i15.Future>.value(<_i12.Vote>[]), - ) as _i15.Future>); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); } /// A class which mocks [AppstreamService]. @@ -2438,25 +2456,25 @@ class MockAppstreamService extends _i1.Mock implements _i7.AppstreamService { ) as int); @override - _i15.Future init() => (super.noSuchMethod( + _i14.Future init() => (super.noSuchMethod( Invocation.method( #init, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future> search(String? search) => + _i14.Future> search(String? search) => (super.noSuchMethod( Invocation.method( #search, [search], ), - returnValue: _i15.Future>.value( + returnValue: _i14.Future>.value( <_i9.AppstreamComponent>[]), - ) as _i15.Future>); + ) as _i14.Future>); @override _i9.AppstreamComponent getFromId(String? id) => (super.noSuchMethod( @@ -2489,11 +2507,11 @@ class MockPackageKitService extends _i1.Mock implements _i8.PackageKitService { ) as bool); @override - _i15.Stream<_i10.PackageKitErrorCodeEvent> get errorStream => + _i14.Stream<_i10.PackageKitErrorCodeEvent> get errorStream => (super.noSuchMethod( Invocation.getter(#errorStream), - returnValue: _i15.Stream<_i10.PackageKitErrorCodeEvent>.empty(), - ) as _i15.Stream<_i10.PackageKitErrorCodeEvent>); + returnValue: _i14.Stream<_i10.PackageKitErrorCodeEvent>.empty(), + ) as _i14.Stream<_i10.PackageKitErrorCodeEvent>); @override _i10.PackageKitTransaction? getTransaction(int? id) => @@ -2503,57 +2521,57 @@ class MockPackageKitService extends _i1.Mock implements _i8.PackageKitService { )) as _i10.PackageKitTransaction?); @override - _i15.Future activateService() => (super.noSuchMethod( + _i14.Future activateService() => (super.noSuchMethod( Invocation.method( #activateService, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future waitTransaction(int? id) => (super.noSuchMethod( + _i14.Future waitTransaction(int? id) => (super.noSuchMethod( Invocation.method( #waitTransaction, [id], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future cancelTransaction(int? id) => (super.noSuchMethod( + _i14.Future cancelTransaction(int? id) => (super.noSuchMethod( Invocation.method( #cancelTransaction, [id], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override - _i15.Future install(_i10.PackageKitPackageId? packageId) => + _i14.Future install(_i10.PackageKitPackageId? packageId) => (super.noSuchMethod( Invocation.method( #install, [packageId], ), - returnValue: _i15.Future.value(0), - ) as _i15.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i15.Future remove(_i10.PackageKitPackageId? packageId) => + _i14.Future remove(_i10.PackageKitPackageId? packageId) => (super.noSuchMethod( Invocation.method( #remove, [packageId], ), - returnValue: _i15.Future.value(0), - ) as _i15.Future); + returnValue: _i14.Future.value(0), + ) as _i14.Future); @override - _i15.Future<_i10.PackageKitPackageEvent?> resolve( + _i14.Future<_i10.PackageKitPackageEvent?> resolve( String? name, [ String? architecture, ]) => @@ -2565,16 +2583,16 @@ class MockPackageKitService extends _i1.Mock implements _i8.PackageKitService { architecture, ], ), - returnValue: _i15.Future<_i10.PackageKitPackageEvent?>.value(), - ) as _i15.Future<_i10.PackageKitPackageEvent?>); + returnValue: _i14.Future<_i10.PackageKitPackageEvent?>.value(), + ) as _i14.Future<_i10.PackageKitPackageEvent?>); @override - _i15.Future dispose() => (super.noSuchMethod( + _i14.Future dispose() => (super.noSuchMethod( Invocation.method( #dispose, [], ), - returnValue: _i15.Future.value(), - returnValueForMissingStub: _i15.Future.value(), - ) as _i15.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); } diff --git a/packages/app_center_ratings_client/lib/ratings_client.dart b/packages/app_center_ratings_client/lib/ratings_client.dart index b2ee8f5bc..5431c1e6c 100644 --- a/packages/app_center_ratings_client/lib/ratings_client.dart +++ b/packages/app_center_ratings_client/lib/ratings_client.dart @@ -11,7 +11,7 @@ import 'src/generated/ratings_features_user.pbgrpc.dart' as userPb; import 'src/ratings.dart'; import 'src/user.dart'; -export 'src/ratings.dart' hide RatingsBandL10n; +export 'src/ratings.dart'; class RatingsClient { late appPb.AppClient _appClient; diff --git a/packages/app_center_ratings_client/lib/src/generated/ratings_features_app.pbenum.dart b/packages/app_center_ratings_client/lib/src/generated/ratings_features_app.pbenum.dart deleted file mode 100644 index bd808605b..000000000 --- a/packages/app_center_ratings_client/lib/src/generated/ratings_features_app.pbenum.dart +++ /dev/null @@ -1,10 +0,0 @@ -// -// Generated code. Do not modify. -// source: ratings_features_app.proto -// -// @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/packages/app_center_ratings_client/lib/src/generated/ratings_features_user.pbenum.dart b/packages/app_center_ratings_client/lib/src/generated/ratings_features_user.pbenum.dart deleted file mode 100644 index a7ac33807..000000000 --- a/packages/app_center_ratings_client/lib/src/generated/ratings_features_user.pbenum.dart +++ /dev/null @@ -1,10 +0,0 @@ -// -// Generated code. Do not modify. -// source: ratings_features_user.proto -// -// @dart = 2.12 - -// ignore_for_file: annotate_overrides, camel_case_types, comment_references -// ignore_for_file: constant_identifier_names, library_prefixes -// ignore_for_file: non_constant_identifier_names, prefer_final_fields -// ignore_for_file: unnecessary_import, unnecessary_this, unused_import diff --git a/packages/app_center_ratings_client/test/ratings_client_test.mocks.dart b/packages/app_center_ratings_client/test/ratings_client_test.mocks.dart index 334cd95e5..024a105c2 100644 --- a/packages/app_center_ratings_client/test/ratings_client_test.mocks.dart +++ b/packages/app_center_ratings_client/test/ratings_client_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_ratings_client/test/ratings_client_test.dart. // Do not manually edit this file. @@ -27,6 +27,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