From 09cee6dbd09986b68f0c6ba2ea7e68e1be713075 Mon Sep 17 00:00:00 2001 From: Carlos Date: Tue, 21 Nov 2023 13:14:08 -0300 Subject: [PATCH] Regenerate mocks --- .../subscription_status/subscribe_now_page_test.mocks.dart | 4 ++++ .../subscription_status_model_test.mocks.dart | 3 +++ .../ubuntupro/test/startup/agent_monitor_test.mocks.dart | 3 +++ .../ubuntupro/test/startup/startup_model_test.mocks.dart | 4 ++++ .../ubuntupro/test/startup/startup_page_test.mocks.dart | 7 +++++++ 5 files changed, 21 insertions(+) diff --git a/gui/packages/ubuntupro/test/pages/subscription_status/subscribe_now_page_test.mocks.dart b/gui/packages/ubuntupro/test/pages/subscription_status/subscribe_now_page_test.mocks.dart index 9a63352b8..c4e5aedc9 100644 --- a/gui/packages/ubuntupro/test/pages/subscription_status/subscribe_now_page_test.mocks.dart +++ b/gui/packages/ubuntupro/test/pages/subscription_status/subscribe_now_page_test.mocks.dart @@ -75,6 +75,7 @@ class MockSubscribeNowModel extends _i1.Mock implements _i5.SubscribeNowModel { Invocation.getter(#client), ), ) as _i2.AgentApiClient); + @override _i6.Future<_i3.SubscriptionInfo> applyProToken(_i7.ProToken? token) => (super.noSuchMethod( @@ -91,6 +92,7 @@ class MockSubscribeNowModel extends _i1.Mock implements _i5.SubscribeNowModel { ), )), ) as _i6.Future<_i3.SubscriptionInfo>); + @override void launchProWebPage() => super.noSuchMethod( Invocation.method( @@ -99,6 +101,7 @@ class MockSubscribeNowModel extends _i1.Mock implements _i5.SubscribeNowModel { ), returnValueForMissingStub: null, ); + @override _i6.Future<_i4.Either<_i8.PurchaseStatus, _i3.SubscriptionInfo>> purchaseSubscription() => (super.noSuchMethod( @@ -117,6 +120,7 @@ class MockSubscribeNowModel extends _i1.Mock implements _i5.SubscribeNowModel { )), ) as _i6 .Future<_i4.Either<_i8.PurchaseStatus, _i3.SubscriptionInfo>>); + @override bool purchaseAllowed() => (super.noSuchMethod( Invocation.method( diff --git a/gui/packages/ubuntupro/test/pages/subscription_status/subscription_status_model_test.mocks.dart b/gui/packages/ubuntupro/test/pages/subscription_status/subscription_status_model_test.mocks.dart index d356648d9..5f7449edd 100644 --- a/gui/packages/ubuntupro/test/pages/subscription_status/subscription_status_model_test.mocks.dart +++ b/gui/packages/ubuntupro/test/pages/subscription_status/subscription_status_model_test.mocks.dart @@ -57,6 +57,7 @@ class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { ), )), ) as _i4.Future<_i2.SubscriptionInfo>); + @override _i4.Future ping() => (super.noSuchMethod( Invocation.method( @@ -65,6 +66,7 @@ class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future<_i2.SubscriptionInfo> subscriptionInfo() => (super.noSuchMethod( Invocation.method( @@ -80,6 +82,7 @@ class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { ), )), ) as _i4.Future<_i2.SubscriptionInfo>); + @override _i4.Future<_i2.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( Invocation.method( diff --git a/gui/packages/ubuntupro/test/startup/agent_monitor_test.mocks.dart b/gui/packages/ubuntupro/test/startup/agent_monitor_test.mocks.dart index d2e7bff0c..f6764d49d 100644 --- a/gui/packages/ubuntupro/test/startup/agent_monitor_test.mocks.dart +++ b/gui/packages/ubuntupro/test/startup/agent_monitor_test.mocks.dart @@ -57,6 +57,7 @@ class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { ), )), ) as _i4.Future<_i2.SubscriptionInfo>); + @override _i4.Future ping() => (super.noSuchMethod( Invocation.method( @@ -65,6 +66,7 @@ class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { ), returnValue: _i4.Future.value(false), ) as _i4.Future); + @override _i4.Future<_i2.SubscriptionInfo> subscriptionInfo() => (super.noSuchMethod( Invocation.method( @@ -80,6 +82,7 @@ class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { ), )), ) as _i4.Future<_i2.SubscriptionInfo>); + @override _i4.Future<_i2.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( Invocation.method( diff --git a/gui/packages/ubuntupro/test/startup/startup_model_test.mocks.dart b/gui/packages/ubuntupro/test/startup/startup_model_test.mocks.dart index 2d2f28932..2a2547c38 100644 --- a/gui/packages/ubuntupro/test/startup/startup_model_test.mocks.dart +++ b/gui/packages/ubuntupro/test/startup/startup_model_test.mocks.dart @@ -47,6 +47,7 @@ class MockAgentStartupMonitor extends _i1.Mock Invocation.getter(#agentLauncher), returnValue: () => _i4.Future.value(false), ) as _i3.AgentLauncher); + @override _i3.ApiClientFactory get clientFactory => (super.noSuchMethod( Invocation.getter(#clientFactory), @@ -55,11 +56,13 @@ class MockAgentStartupMonitor extends _i1.Mock Invocation.getter(#clientFactory), ), ) as _i3.ApiClientFactory); + @override _i3.AgentApiCallback get onClient => (super.noSuchMethod( Invocation.getter(#onClient), returnValue: (_i2.AgentApiClient __p0) => null, ) as _i3.AgentApiCallback); + @override _i4.Stream<_i3.AgentState> start({ Duration? interval = const Duration(seconds: 1), @@ -76,6 +79,7 @@ class MockAgentStartupMonitor extends _i1.Mock ), returnValue: _i4.Stream<_i3.AgentState>.empty(), ) as _i4.Stream<_i3.AgentState>); + @override _i4.Future reset() => (super.noSuchMethod( Invocation.method( diff --git a/gui/packages/ubuntupro/test/startup/startup_page_test.mocks.dart b/gui/packages/ubuntupro/test/startup/startup_page_test.mocks.dart index 4827acb51..48216572e 100644 --- a/gui/packages/ubuntupro/test/startup/startup_page_test.mocks.dart +++ b/gui/packages/ubuntupro/test/startup/startup_page_test.mocks.dart @@ -59,6 +59,7 @@ class MockAgentStartupMonitor extends _i1.Mock Invocation.getter(#agentLauncher), returnValue: () => _i5.Future.value(false), ) as _i4.AgentLauncher); + @override _i4.ApiClientFactory get clientFactory => (super.noSuchMethod( Invocation.getter(#clientFactory), @@ -67,11 +68,13 @@ class MockAgentStartupMonitor extends _i1.Mock Invocation.getter(#clientFactory), ), ) as _i4.ApiClientFactory); + @override _i4.AgentApiCallback get onClient => (super.noSuchMethod( Invocation.getter(#onClient), returnValue: (_i2.AgentApiClient __p0) => null, ) as _i4.AgentApiCallback); + @override _i5.Stream<_i4.AgentState> start({ Duration? interval = const Duration(seconds: 1), @@ -88,6 +91,7 @@ class MockAgentStartupMonitor extends _i1.Mock ), returnValue: _i5.Stream<_i4.AgentState>.empty(), ) as _i5.Stream<_i4.AgentState>); + @override _i5.Future reset() => (super.noSuchMethod( Invocation.method( @@ -123,6 +127,7 @@ class MockAgentApiClient extends _i1.Mock implements _i2.AgentApiClient { ), )), ) as _i5.Future<_i3.SubscriptionInfo>); + @override _i5.Future ping() => (super.noSuchMethod( Invocation.method( @@ -131,6 +136,7 @@ class MockAgentApiClient extends _i1.Mock implements _i2.AgentApiClient { ), returnValue: _i5.Future.value(false), ) as _i5.Future); + @override _i5.Future<_i3.SubscriptionInfo> subscriptionInfo() => (super.noSuchMethod( Invocation.method( @@ -146,6 +152,7 @@ class MockAgentApiClient extends _i1.Mock implements _i2.AgentApiClient { ), )), ) as _i5.Future<_i3.SubscriptionInfo>); + @override _i5.Future<_i3.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( Invocation.method(