diff --git a/gui/packages/ubuntupro/.gitignore b/gui/packages/ubuntupro/.gitignore index 964320a96..2f22dc38d 100644 --- a/gui/packages/ubuntupro/.gitignore +++ b/gui/packages/ubuntupro/.gitignore @@ -1,3 +1,4 @@ # Applications should include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. !pubspec.lock devtools_options.yaml +*.mocks.dart diff --git a/gui/packages/ubuntupro/test/core/agent_connection_test.mocks.dart b/gui/packages/ubuntupro/test/core/agent_connection_test.mocks.dart deleted file mode 100644 index 8d0f427d7..000000000 --- a/gui/packages/ubuntupro/test/core/agent_connection_test.mocks.dart +++ /dev/null @@ -1,263 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/core/agent_connection_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:io' as _i6; - -import 'package:agentapi/agentapi.dart' as _i3; -import 'package:grpc/grpc.dart' as _i7; -import 'package:mockito/mockito.dart' as _i1; -import 'package:ubuntupro/core/agent_api_client.dart' as _i2; -import 'package:ubuntupro/core/agent_monitor.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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeAgentApiClient_0 extends _i1.SmartFake - implements _i2.AgentApiClient { - _FakeAgentApiClient_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeUIClient_1 extends _i1.SmartFake implements _i3.UIClient { - _FakeUIClient_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSubscriptionInfo_2 extends _i1.SmartFake - implements _i3.SubscriptionInfo { - _FakeSubscriptionInfo_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeLandscapeSource_3 extends _i1.SmartFake - implements _i3.LandscapeSource { - _FakeLandscapeSource_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeConfigSources_4 extends _i1.SmartFake implements _i3.ConfigSources { - _FakeConfigSources_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AgentStartupMonitor]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentStartupMonitor extends _i1.Mock - implements _i4.AgentStartupMonitor { - MockAgentStartupMonitor() { - _i1.throwOnMissingStub(this); - } - - @override - _i4.AgentLauncher get agentLauncher => (super.noSuchMethod( - Invocation.getter(#agentLauncher), - returnValue: () => _i5.Future.value(false), - ) as _i4.AgentLauncher); - - @override - _i4.ApiClientFactory get clientFactory => (super.noSuchMethod( - Invocation.getter(#clientFactory), - returnValue: ( - String host, - int port, - _i6.Directory certsDir, - ) => - _FakeAgentApiClient_0( - this, - Invocation.getter(#clientFactory), - ), - ) as _i4.ApiClientFactory); - - @override - bool addNewClientListener(_i4.AgentApiCallback? cb) => (super.noSuchMethod( - Invocation.method( - #addNewClientListener, - [cb], - ), - returnValue: false, - ) as bool); - - @override - _i5.Stream<_i4.AgentState> start({ - Duration? interval = const Duration(seconds: 1), - Duration? timeout = const Duration(seconds: 5), - }) => - (super.noSuchMethod( - Invocation.method( - #start, - [], - { - #interval: interval, - #timeout: timeout, - }, - ), - returnValue: _i5.Stream<_i4.AgentState>.empty(), - ) as _i5.Stream<_i4.AgentState>); - - @override - _i5.Future reset() => (super.noSuchMethod( - Invocation.method( - #reset, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); -} - -/// A class which mocks [AgentApiClient]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentApiClient extends _i1.Mock implements _i2.AgentApiClient { - MockAgentApiClient() { - _i1.throwOnMissingStub(this); - } - - @override - _i3.UIClient Function(_i7.ClientChannel) get stubFactory => - (super.noSuchMethod( - Invocation.getter(#stubFactory), - returnValue: (_i7.ClientChannel __p0) => _FakeUIClient_1( - this, - Invocation.getter(#stubFactory), - ), - ) as _i3.UIClient Function(_i7.ClientChannel)); - - @override - _i5.Stream<_i2.ConnectionEvent> get onConnectionChanged => - (super.noSuchMethod( - Invocation.getter(#onConnectionChanged), - returnValue: _i5.Stream<_i2.ConnectionEvent>.empty(), - ) as _i5.Stream<_i2.ConnectionEvent>); - - @override - _i5.Future connectTo( - String? host, - int? port, - _i6.Directory? certsDir, - ) => - (super.noSuchMethod( - Invocation.method( - #connectTo, - [ - host, - port, - certsDir, - ], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i3.SubscriptionInfo> applyProToken(String? token) => - (super.noSuchMethod( - Invocation.method( - #applyProToken, - [token], - ), - returnValue: - _i5.Future<_i3.SubscriptionInfo>.value(_FakeSubscriptionInfo_2( - this, - Invocation.method( - #applyProToken, - [token], - ), - )), - ) as _i5.Future<_i3.SubscriptionInfo>); - - @override - _i5.Future<_i3.LandscapeSource> applyLandscapeConfig(String? config) => - (super.noSuchMethod( - Invocation.method( - #applyLandscapeConfig, - [config], - ), - returnValue: - _i5.Future<_i3.LandscapeSource>.value(_FakeLandscapeSource_3( - this, - Invocation.method( - #applyLandscapeConfig, - [config], - ), - )), - ) as _i5.Future<_i3.LandscapeSource>); - - @override - _i5.Future ping() => (super.noSuchMethod( - Invocation.method( - #ping, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i3.ConfigSources> configSources() => (super.noSuchMethod( - Invocation.method( - #configSources, - [], - ), - returnValue: _i5.Future<_i3.ConfigSources>.value(_FakeConfigSources_4( - this, - Invocation.method( - #configSources, - [], - ), - )), - ) as _i5.Future<_i3.ConfigSources>); - - @override - _i5.Future<_i3.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( - Invocation.method( - #notifyPurchase, - [], - ), - returnValue: - _i5.Future<_i3.SubscriptionInfo>.value(_FakeSubscriptionInfo_2( - this, - Invocation.method( - #notifyPurchase, - [], - ), - )), - ) as _i5.Future<_i3.SubscriptionInfo>); -} diff --git a/gui/packages/ubuntupro/test/core/agent_monitor_test.mocks.dart b/gui/packages/ubuntupro/test/core/agent_monitor_test.mocks.dart deleted file mode 100644 index 72b7a9afd..000000000 --- a/gui/packages/ubuntupro/test/core/agent_monitor_test.mocks.dart +++ /dev/null @@ -1,185 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/core/agent_monitor_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:io' as _i6; - -import 'package:agentapi/agentapi.dart' as _i2; -import 'package:grpc/grpc.dart' as _i4; -import 'package:mockito/mockito.dart' as _i1; -import 'package:ubuntupro/core/agent_api_client.dart' as _i3; - -// 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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeUIClient_0 extends _i1.SmartFake implements _i2.UIClient { - _FakeUIClient_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSubscriptionInfo_1 extends _i1.SmartFake - implements _i2.SubscriptionInfo { - _FakeSubscriptionInfo_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeLandscapeSource_2 extends _i1.SmartFake - implements _i2.LandscapeSource { - _FakeLandscapeSource_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeConfigSources_3 extends _i1.SmartFake implements _i2.ConfigSources { - _FakeConfigSources_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AgentApiClient]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { - MockAgentApiClient() { - _i1.throwOnMissingStub(this); - } - - @override - _i2.UIClient Function(_i4.ClientChannel) get stubFactory => - (super.noSuchMethod( - Invocation.getter(#stubFactory), - returnValue: (_i4.ClientChannel __p0) => _FakeUIClient_0( - this, - Invocation.getter(#stubFactory), - ), - ) as _i2.UIClient Function(_i4.ClientChannel)); - - @override - _i5.Stream<_i3.ConnectionEvent> get onConnectionChanged => - (super.noSuchMethod( - Invocation.getter(#onConnectionChanged), - returnValue: _i5.Stream<_i3.ConnectionEvent>.empty(), - ) as _i5.Stream<_i3.ConnectionEvent>); - - @override - _i5.Future connectTo( - String? host, - int? port, - _i6.Directory? certsDir, - ) => - (super.noSuchMethod( - Invocation.method( - #connectTo, - [ - host, - port, - certsDir, - ], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.SubscriptionInfo> applyProToken(String? token) => - (super.noSuchMethod( - Invocation.method( - #applyProToken, - [token], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #applyProToken, - [token], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); - - @override - _i5.Future<_i2.LandscapeSource> applyLandscapeConfig(String? config) => - (super.noSuchMethod( - Invocation.method( - #applyLandscapeConfig, - [config], - ), - returnValue: - _i5.Future<_i2.LandscapeSource>.value(_FakeLandscapeSource_2( - this, - Invocation.method( - #applyLandscapeConfig, - [config], - ), - )), - ) as _i5.Future<_i2.LandscapeSource>); - - @override - _i5.Future ping() => (super.noSuchMethod( - Invocation.method( - #ping, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.ConfigSources> configSources() => (super.noSuchMethod( - Invocation.method( - #configSources, - [], - ), - returnValue: _i5.Future<_i2.ConfigSources>.value(_FakeConfigSources_3( - this, - Invocation.method( - #configSources, - [], - ), - )), - ) as _i5.Future<_i2.ConfigSources>); - - @override - _i5.Future<_i2.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( - Invocation.method( - #notifyPurchase, - [], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #notifyPurchase, - [], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); -} diff --git a/gui/packages/ubuntupro/test/core/settings_test.mocks.dart b/gui/packages/ubuntupro/test/core/settings_test.mocks.dart deleted file mode 100644 index d04c4f458..000000000 --- a/gui/packages/ubuntupro/test/core/settings_test.mocks.dart +++ /dev/null @@ -1,54 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/core/settings_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:mockito/mockito.dart' as _i1; -import 'package:ubuntupro/core/settings.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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -/// A class which mocks [SettingsRepository]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockSettingsRepository extends _i1.Mock - implements _i2.SettingsRepository { - MockSettingsRepository() { - _i1.throwOnMissingStub(this); - } - - @override - void close() => super.noSuchMethod( - Invocation.method( - #close, - [], - ), - returnValueForMissingStub: null, - ); - - @override - int? readInt(String? name) => (super.noSuchMethod(Invocation.method( - #readInt, - [name], - )) as int?); - - @override - bool load() => (super.noSuchMethod( - Invocation.method( - #load, - [], - ), - returnValue: false, - ) as bool); -} diff --git a/gui/packages/ubuntupro/test/pages/landscape/landscape_model_test.mocks.dart b/gui/packages/ubuntupro/test/pages/landscape/landscape_model_test.mocks.dart deleted file mode 100644 index ad7e628e1..000000000 --- a/gui/packages/ubuntupro/test/pages/landscape/landscape_model_test.mocks.dart +++ /dev/null @@ -1,185 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/pages/landscape/landscape_model_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:io' as _i6; - -import 'package:agentapi/agentapi.dart' as _i2; -import 'package:grpc/grpc.dart' as _i4; -import 'package:mockito/mockito.dart' as _i1; -import 'package:ubuntupro/core/agent_api_client.dart' as _i3; - -// 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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeUIClient_0 extends _i1.SmartFake implements _i2.UIClient { - _FakeUIClient_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSubscriptionInfo_1 extends _i1.SmartFake - implements _i2.SubscriptionInfo { - _FakeSubscriptionInfo_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeLandscapeSource_2 extends _i1.SmartFake - implements _i2.LandscapeSource { - _FakeLandscapeSource_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeConfigSources_3 extends _i1.SmartFake implements _i2.ConfigSources { - _FakeConfigSources_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AgentApiClient]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { - MockAgentApiClient() { - _i1.throwOnMissingStub(this); - } - - @override - _i2.UIClient Function(_i4.ClientChannel) get stubFactory => - (super.noSuchMethod( - Invocation.getter(#stubFactory), - returnValue: (_i4.ClientChannel __p0) => _FakeUIClient_0( - this, - Invocation.getter(#stubFactory), - ), - ) as _i2.UIClient Function(_i4.ClientChannel)); - - @override - _i5.Stream<_i3.ConnectionEvent> get onConnectionChanged => - (super.noSuchMethod( - Invocation.getter(#onConnectionChanged), - returnValue: _i5.Stream<_i3.ConnectionEvent>.empty(), - ) as _i5.Stream<_i3.ConnectionEvent>); - - @override - _i5.Future connectTo( - String? host, - int? port, - _i6.Directory? certsDir, - ) => - (super.noSuchMethod( - Invocation.method( - #connectTo, - [ - host, - port, - certsDir, - ], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.SubscriptionInfo> applyProToken(String? token) => - (super.noSuchMethod( - Invocation.method( - #applyProToken, - [token], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #applyProToken, - [token], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); - - @override - _i5.Future<_i2.LandscapeSource> applyLandscapeConfig(String? config) => - (super.noSuchMethod( - Invocation.method( - #applyLandscapeConfig, - [config], - ), - returnValue: - _i5.Future<_i2.LandscapeSource>.value(_FakeLandscapeSource_2( - this, - Invocation.method( - #applyLandscapeConfig, - [config], - ), - )), - ) as _i5.Future<_i2.LandscapeSource>); - - @override - _i5.Future ping() => (super.noSuchMethod( - Invocation.method( - #ping, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.ConfigSources> configSources() => (super.noSuchMethod( - Invocation.method( - #configSources, - [], - ), - returnValue: _i5.Future<_i2.ConfigSources>.value(_FakeConfigSources_3( - this, - Invocation.method( - #configSources, - [], - ), - )), - ) as _i5.Future<_i2.ConfigSources>); - - @override - _i5.Future<_i2.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( - Invocation.method( - #notifyPurchase, - [], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #notifyPurchase, - [], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); -} diff --git a/gui/packages/ubuntupro/test/pages/landscape/landscape_page_test.mocks.dart b/gui/packages/ubuntupro/test/pages/landscape/landscape_page_test.mocks.dart deleted file mode 100644 index 88ebe35aa..000000000 --- a/gui/packages/ubuntupro/test/pages/landscape/landscape_page_test.mocks.dart +++ /dev/null @@ -1,185 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/pages/landscape/landscape_page_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:io' as _i6; - -import 'package:agentapi/agentapi.dart' as _i2; -import 'package:grpc/grpc.dart' as _i4; -import 'package:mockito/mockito.dart' as _i1; -import 'package:ubuntupro/core/agent_api_client.dart' as _i3; - -// 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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeUIClient_0 extends _i1.SmartFake implements _i2.UIClient { - _FakeUIClient_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSubscriptionInfo_1 extends _i1.SmartFake - implements _i2.SubscriptionInfo { - _FakeSubscriptionInfo_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeLandscapeSource_2 extends _i1.SmartFake - implements _i2.LandscapeSource { - _FakeLandscapeSource_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeConfigSources_3 extends _i1.SmartFake implements _i2.ConfigSources { - _FakeConfigSources_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AgentApiClient]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { - MockAgentApiClient() { - _i1.throwOnMissingStub(this); - } - - @override - _i2.UIClient Function(_i4.ClientChannel) get stubFactory => - (super.noSuchMethod( - Invocation.getter(#stubFactory), - returnValue: (_i4.ClientChannel __p0) => _FakeUIClient_0( - this, - Invocation.getter(#stubFactory), - ), - ) as _i2.UIClient Function(_i4.ClientChannel)); - - @override - _i5.Stream<_i3.ConnectionEvent> get onConnectionChanged => - (super.noSuchMethod( - Invocation.getter(#onConnectionChanged), - returnValue: _i5.Stream<_i3.ConnectionEvent>.empty(), - ) as _i5.Stream<_i3.ConnectionEvent>); - - @override - _i5.Future connectTo( - String? host, - int? port, - _i6.Directory? certsDir, - ) => - (super.noSuchMethod( - Invocation.method( - #connectTo, - [ - host, - port, - certsDir, - ], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.SubscriptionInfo> applyProToken(String? token) => - (super.noSuchMethod( - Invocation.method( - #applyProToken, - [token], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #applyProToken, - [token], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); - - @override - _i5.Future<_i2.LandscapeSource> applyLandscapeConfig(String? config) => - (super.noSuchMethod( - Invocation.method( - #applyLandscapeConfig, - [config], - ), - returnValue: - _i5.Future<_i2.LandscapeSource>.value(_FakeLandscapeSource_2( - this, - Invocation.method( - #applyLandscapeConfig, - [config], - ), - )), - ) as _i5.Future<_i2.LandscapeSource>); - - @override - _i5.Future ping() => (super.noSuchMethod( - Invocation.method( - #ping, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.ConfigSources> configSources() => (super.noSuchMethod( - Invocation.method( - #configSources, - [], - ), - returnValue: _i5.Future<_i2.ConfigSources>.value(_FakeConfigSources_3( - this, - Invocation.method( - #configSources, - [], - ), - )), - ) as _i5.Future<_i2.ConfigSources>); - - @override - _i5.Future<_i2.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( - Invocation.method( - #notifyPurchase, - [], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #notifyPurchase, - [], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); -} diff --git a/gui/packages/ubuntupro/test/pages/subcribe_now/subscribe_now_model_test.mocks.dart b/gui/packages/ubuntupro/test/pages/subcribe_now/subscribe_now_model_test.mocks.dart deleted file mode 100644 index 6c6f13232..000000000 --- a/gui/packages/ubuntupro/test/pages/subcribe_now/subscribe_now_model_test.mocks.dart +++ /dev/null @@ -1,185 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/pages/subcribe_now/subscribe_now_model_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:io' as _i6; - -import 'package:agentapi/agentapi.dart' as _i2; -import 'package:grpc/grpc.dart' as _i4; -import 'package:mockito/mockito.dart' as _i1; -import 'package:ubuntupro/core/agent_api_client.dart' as _i3; - -// 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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeUIClient_0 extends _i1.SmartFake implements _i2.UIClient { - _FakeUIClient_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSubscriptionInfo_1 extends _i1.SmartFake - implements _i2.SubscriptionInfo { - _FakeSubscriptionInfo_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeLandscapeSource_2 extends _i1.SmartFake - implements _i2.LandscapeSource { - _FakeLandscapeSource_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeConfigSources_3 extends _i1.SmartFake implements _i2.ConfigSources { - _FakeConfigSources_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AgentApiClient]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { - MockAgentApiClient() { - _i1.throwOnMissingStub(this); - } - - @override - _i2.UIClient Function(_i4.ClientChannel) get stubFactory => - (super.noSuchMethod( - Invocation.getter(#stubFactory), - returnValue: (_i4.ClientChannel __p0) => _FakeUIClient_0( - this, - Invocation.getter(#stubFactory), - ), - ) as _i2.UIClient Function(_i4.ClientChannel)); - - @override - _i5.Stream<_i3.ConnectionEvent> get onConnectionChanged => - (super.noSuchMethod( - Invocation.getter(#onConnectionChanged), - returnValue: _i5.Stream<_i3.ConnectionEvent>.empty(), - ) as _i5.Stream<_i3.ConnectionEvent>); - - @override - _i5.Future connectTo( - String? host, - int? port, - _i6.Directory? certsDir, - ) => - (super.noSuchMethod( - Invocation.method( - #connectTo, - [ - host, - port, - certsDir, - ], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.SubscriptionInfo> applyProToken(String? token) => - (super.noSuchMethod( - Invocation.method( - #applyProToken, - [token], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #applyProToken, - [token], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); - - @override - _i5.Future<_i2.LandscapeSource> applyLandscapeConfig(String? config) => - (super.noSuchMethod( - Invocation.method( - #applyLandscapeConfig, - [config], - ), - returnValue: - _i5.Future<_i2.LandscapeSource>.value(_FakeLandscapeSource_2( - this, - Invocation.method( - #applyLandscapeConfig, - [config], - ), - )), - ) as _i5.Future<_i2.LandscapeSource>); - - @override - _i5.Future ping() => (super.noSuchMethod( - Invocation.method( - #ping, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.ConfigSources> configSources() => (super.noSuchMethod( - Invocation.method( - #configSources, - [], - ), - returnValue: _i5.Future<_i2.ConfigSources>.value(_FakeConfigSources_3( - this, - Invocation.method( - #configSources, - [], - ), - )), - ) as _i5.Future<_i2.ConfigSources>); - - @override - _i5.Future<_i2.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( - Invocation.method( - #notifyPurchase, - [], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #notifyPurchase, - [], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); -} diff --git a/gui/packages/ubuntupro/test/pages/subcribe_now/subscribe_now_page_test.mocks.dart b/gui/packages/ubuntupro/test/pages/subcribe_now/subscribe_now_page_test.mocks.dart deleted file mode 100644 index f267ee342..000000000 --- a/gui/packages/ubuntupro/test/pages/subcribe_now/subscribe_now_page_test.mocks.dart +++ /dev/null @@ -1,207 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/pages/subcribe_now/subscribe_now_page_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:io' as _i6; - -import 'package:agentapi/agentapi.dart' as _i2; -import 'package:grpc/grpc.dart' as _i4; -import 'package:mockito/mockito.dart' as _i1; -import 'package:p4w_ms_store/p4w_ms_store.dart' as _i7; -import 'package:p4w_ms_store/p4w_ms_store_platform_interface.dart' as _i8; -import 'package:ubuntupro/core/agent_api_client.dart' as _i3; - -// 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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeUIClient_0 extends _i1.SmartFake implements _i2.UIClient { - _FakeUIClient_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSubscriptionInfo_1 extends _i1.SmartFake - implements _i2.SubscriptionInfo { - _FakeSubscriptionInfo_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeLandscapeSource_2 extends _i1.SmartFake - implements _i2.LandscapeSource { - _FakeLandscapeSource_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeConfigSources_3 extends _i1.SmartFake implements _i2.ConfigSources { - _FakeConfigSources_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AgentApiClient]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { - MockAgentApiClient() { - _i1.throwOnMissingStub(this); - } - - @override - _i2.UIClient Function(_i4.ClientChannel) get stubFactory => - (super.noSuchMethod( - Invocation.getter(#stubFactory), - returnValue: (_i4.ClientChannel __p0) => _FakeUIClient_0( - this, - Invocation.getter(#stubFactory), - ), - ) as _i2.UIClient Function(_i4.ClientChannel)); - - @override - _i5.Stream<_i3.ConnectionEvent> get onConnectionChanged => - (super.noSuchMethod( - Invocation.getter(#onConnectionChanged), - returnValue: _i5.Stream<_i3.ConnectionEvent>.empty(), - ) as _i5.Stream<_i3.ConnectionEvent>); - - @override - _i5.Future connectTo( - String? host, - int? port, - _i6.Directory? certsDir, - ) => - (super.noSuchMethod( - Invocation.method( - #connectTo, - [ - host, - port, - certsDir, - ], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.SubscriptionInfo> applyProToken(String? token) => - (super.noSuchMethod( - Invocation.method( - #applyProToken, - [token], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #applyProToken, - [token], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); - - @override - _i5.Future<_i2.LandscapeSource> applyLandscapeConfig(String? config) => - (super.noSuchMethod( - Invocation.method( - #applyLandscapeConfig, - [config], - ), - returnValue: - _i5.Future<_i2.LandscapeSource>.value(_FakeLandscapeSource_2( - this, - Invocation.method( - #applyLandscapeConfig, - [config], - ), - )), - ) as _i5.Future<_i2.LandscapeSource>); - - @override - _i5.Future ping() => (super.noSuchMethod( - Invocation.method( - #ping, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.ConfigSources> configSources() => (super.noSuchMethod( - Invocation.method( - #configSources, - [], - ), - returnValue: _i5.Future<_i2.ConfigSources>.value(_FakeConfigSources_3( - this, - Invocation.method( - #configSources, - [], - ), - )), - ) as _i5.Future<_i2.ConfigSources>); - - @override - _i5.Future<_i2.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( - Invocation.method( - #notifyPurchase, - [], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #notifyPurchase, - [], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); -} - -/// A class which mocks [P4wMsStore]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockP4wMsStore extends _i1.Mock implements _i7.P4wMsStore { - MockP4wMsStore() { - _i1.throwOnMissingStub(this); - } - - @override - _i5.Future<_i8.PurchaseStatus> purchaseSubscription(String? productId) => - (super.noSuchMethod( - Invocation.method( - #purchaseSubscription, - [productId], - ), - returnValue: - _i5.Future<_i8.PurchaseStatus>.value(_i8.PurchaseStatus.succeeded), - ) as _i5.Future<_i8.PurchaseStatus>); -} diff --git a/gui/packages/ubuntupro/test/pages/subcribe_now/subscribe_now_widgets_test.mocks.dart b/gui/packages/ubuntupro/test/pages/subcribe_now/subscribe_now_widgets_test.mocks.dart deleted file mode 100644 index 4fd4aede4..000000000 --- a/gui/packages/ubuntupro/test/pages/subcribe_now/subscribe_now_widgets_test.mocks.dart +++ /dev/null @@ -1,185 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/pages/subcribe_now/subscribe_now_widgets_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:io' as _i6; - -import 'package:agentapi/agentapi.dart' as _i2; -import 'package:grpc/grpc.dart' as _i4; -import 'package:mockito/mockito.dart' as _i1; -import 'package:ubuntupro/core/agent_api_client.dart' as _i3; - -// 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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeUIClient_0 extends _i1.SmartFake implements _i2.UIClient { - _FakeUIClient_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSubscriptionInfo_1 extends _i1.SmartFake - implements _i2.SubscriptionInfo { - _FakeSubscriptionInfo_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeLandscapeSource_2 extends _i1.SmartFake - implements _i2.LandscapeSource { - _FakeLandscapeSource_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeConfigSources_3 extends _i1.SmartFake implements _i2.ConfigSources { - _FakeConfigSources_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AgentApiClient]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { - MockAgentApiClient() { - _i1.throwOnMissingStub(this); - } - - @override - _i2.UIClient Function(_i4.ClientChannel) get stubFactory => - (super.noSuchMethod( - Invocation.getter(#stubFactory), - returnValue: (_i4.ClientChannel __p0) => _FakeUIClient_0( - this, - Invocation.getter(#stubFactory), - ), - ) as _i2.UIClient Function(_i4.ClientChannel)); - - @override - _i5.Stream<_i3.ConnectionEvent> get onConnectionChanged => - (super.noSuchMethod( - Invocation.getter(#onConnectionChanged), - returnValue: _i5.Stream<_i3.ConnectionEvent>.empty(), - ) as _i5.Stream<_i3.ConnectionEvent>); - - @override - _i5.Future connectTo( - String? host, - int? port, - _i6.Directory? certsDir, - ) => - (super.noSuchMethod( - Invocation.method( - #connectTo, - [ - host, - port, - certsDir, - ], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.SubscriptionInfo> applyProToken(String? token) => - (super.noSuchMethod( - Invocation.method( - #applyProToken, - [token], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #applyProToken, - [token], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); - - @override - _i5.Future<_i2.LandscapeSource> applyLandscapeConfig(String? config) => - (super.noSuchMethod( - Invocation.method( - #applyLandscapeConfig, - [config], - ), - returnValue: - _i5.Future<_i2.LandscapeSource>.value(_FakeLandscapeSource_2( - this, - Invocation.method( - #applyLandscapeConfig, - [config], - ), - )), - ) as _i5.Future<_i2.LandscapeSource>); - - @override - _i5.Future ping() => (super.noSuchMethod( - Invocation.method( - #ping, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.ConfigSources> configSources() => (super.noSuchMethod( - Invocation.method( - #configSources, - [], - ), - returnValue: _i5.Future<_i2.ConfigSources>.value(_FakeConfigSources_3( - this, - Invocation.method( - #configSources, - [], - ), - )), - ) as _i5.Future<_i2.ConfigSources>); - - @override - _i5.Future<_i2.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( - Invocation.method( - #notifyPurchase, - [], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #notifyPurchase, - [], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); -} 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 deleted file mode 100644 index a8d4fc851..000000000 --- a/gui/packages/ubuntupro/test/pages/subscription_status/subscription_status_model_test.mocks.dart +++ /dev/null @@ -1,185 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/pages/subscription_status/subscription_status_model_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:io' as _i6; - -import 'package:agentapi/agentapi.dart' as _i2; -import 'package:grpc/grpc.dart' as _i4; -import 'package:mockito/mockito.dart' as _i1; -import 'package:ubuntupro/core/agent_api_client.dart' as _i3; - -// 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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeUIClient_0 extends _i1.SmartFake implements _i2.UIClient { - _FakeUIClient_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSubscriptionInfo_1 extends _i1.SmartFake - implements _i2.SubscriptionInfo { - _FakeSubscriptionInfo_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeLandscapeSource_2 extends _i1.SmartFake - implements _i2.LandscapeSource { - _FakeLandscapeSource_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeConfigSources_3 extends _i1.SmartFake implements _i2.ConfigSources { - _FakeConfigSources_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AgentApiClient]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentApiClient extends _i1.Mock implements _i3.AgentApiClient { - MockAgentApiClient() { - _i1.throwOnMissingStub(this); - } - - @override - _i2.UIClient Function(_i4.ClientChannel) get stubFactory => - (super.noSuchMethod( - Invocation.getter(#stubFactory), - returnValue: (_i4.ClientChannel __p0) => _FakeUIClient_0( - this, - Invocation.getter(#stubFactory), - ), - ) as _i2.UIClient Function(_i4.ClientChannel)); - - @override - _i5.Stream<_i3.ConnectionEvent> get onConnectionChanged => - (super.noSuchMethod( - Invocation.getter(#onConnectionChanged), - returnValue: _i5.Stream<_i3.ConnectionEvent>.empty(), - ) as _i5.Stream<_i3.ConnectionEvent>); - - @override - _i5.Future connectTo( - String? host, - int? port, - _i6.Directory? certsDir, - ) => - (super.noSuchMethod( - Invocation.method( - #connectTo, - [ - host, - port, - certsDir, - ], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.SubscriptionInfo> applyProToken(String? token) => - (super.noSuchMethod( - Invocation.method( - #applyProToken, - [token], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #applyProToken, - [token], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); - - @override - _i5.Future<_i2.LandscapeSource> applyLandscapeConfig(String? config) => - (super.noSuchMethod( - Invocation.method( - #applyLandscapeConfig, - [config], - ), - returnValue: - _i5.Future<_i2.LandscapeSource>.value(_FakeLandscapeSource_2( - this, - Invocation.method( - #applyLandscapeConfig, - [config], - ), - )), - ) as _i5.Future<_i2.LandscapeSource>); - - @override - _i5.Future ping() => (super.noSuchMethod( - Invocation.method( - #ping, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i2.ConfigSources> configSources() => (super.noSuchMethod( - Invocation.method( - #configSources, - [], - ), - returnValue: _i5.Future<_i2.ConfigSources>.value(_FakeConfigSources_3( - this, - Invocation.method( - #configSources, - [], - ), - )), - ) as _i5.Future<_i2.ConfigSources>); - - @override - _i5.Future<_i2.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( - Invocation.method( - #notifyPurchase, - [], - ), - returnValue: - _i5.Future<_i2.SubscriptionInfo>.value(_FakeSubscriptionInfo_1( - this, - Invocation.method( - #notifyPurchase, - [], - ), - )), - ) as _i5.Future<_i2.SubscriptionInfo>); -} diff --git a/gui/packages/ubuntupro/test/pages/widgets/status_bar_test.mocks.dart b/gui/packages/ubuntupro/test/pages/widgets/status_bar_test.mocks.dart deleted file mode 100644 index 19eadd286..000000000 --- a/gui/packages/ubuntupro/test/pages/widgets/status_bar_test.mocks.dart +++ /dev/null @@ -1,111 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/pages/widgets/status_bar_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i4; -import 'dart:ui' as _i5; - -import 'package:mockito/mockito.dart' as _i1; -import 'package:ubuntupro/core/agent_connection.dart' as _i3; -import 'package:ubuntupro/core/agent_monitor.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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeAgentStartupMonitor_0 extends _i1.SmartFake - implements _i2.AgentStartupMonitor { - _FakeAgentStartupMonitor_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AgentConnection]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentConnection extends _i1.Mock implements _i3.AgentConnection { - MockAgentConnection() { - _i1.throwOnMissingStub(this); - } - - @override - _i2.AgentStartupMonitor get monitor => (super.noSuchMethod( - Invocation.getter(#monitor), - returnValue: _FakeAgentStartupMonitor_0( - this, - Invocation.getter(#monitor), - ), - ) as _i2.AgentStartupMonitor); - - @override - _i3.AgentConnectionState get state => (super.noSuchMethod( - Invocation.getter(#state), - returnValue: _i3.AgentConnectionState.connected, - ) as _i3.AgentConnectionState); - - @override - bool get hasListeners => (super.noSuchMethod( - Invocation.getter(#hasListeners), - returnValue: false, - ) as bool); - - @override - _i4.Future restartAgent() => (super.noSuchMethod( - Invocation.method( - #restartAgent, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - void dispose() => super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValueForMissingStub: null, - ); - - @override - void addListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #addListener, - [listener], - ), - returnValueForMissingStub: null, - ); - - @override - void removeListener(_i5.VoidCallback? listener) => super.noSuchMethod( - Invocation.method( - #removeListener, - [listener], - ), - returnValueForMissingStub: null, - ); - - @override - void notifyListeners() => super.noSuchMethod( - Invocation.method( - #notifyListeners, - [], - ), - returnValueForMissingStub: null, - ); -} diff --git a/gui/packages/ubuntupro/test/startup/startup_model_test.mocks.dart b/gui/packages/ubuntupro/test/startup/startup_model_test.mocks.dart deleted file mode 100644 index 8c7aa62dd..000000000 --- a/gui/packages/ubuntupro/test/startup/startup_model_test.mocks.dart +++ /dev/null @@ -1,101 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/startup/startup_model_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i4; -import 'dart:io' as _i5; - -import 'package:mockito/mockito.dart' as _i1; -import 'package:ubuntupro/core/agent_api_client.dart' as _i2; -import 'package:ubuntupro/core/agent_monitor.dart' as _i3; - -// 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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeAgentApiClient_0 extends _i1.SmartFake - implements _i2.AgentApiClient { - _FakeAgentApiClient_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AgentStartupMonitor]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentStartupMonitor extends _i1.Mock - implements _i3.AgentStartupMonitor { - MockAgentStartupMonitor() { - _i1.throwOnMissingStub(this); - } - - @override - _i3.AgentLauncher get agentLauncher => (super.noSuchMethod( - Invocation.getter(#agentLauncher), - returnValue: () => _i4.Future.value(false), - ) as _i3.AgentLauncher); - - @override - _i3.ApiClientFactory get clientFactory => (super.noSuchMethod( - Invocation.getter(#clientFactory), - returnValue: ( - String host, - int port, - _i5.Directory certsDir, - ) => - _FakeAgentApiClient_0( - this, - Invocation.getter(#clientFactory), - ), - ) as _i3.ApiClientFactory); - - @override - bool addNewClientListener(_i3.AgentApiCallback? cb) => (super.noSuchMethod( - Invocation.method( - #addNewClientListener, - [cb], - ), - returnValue: false, - ) as bool); - - @override - _i4.Stream<_i3.AgentState> start({ - Duration? interval = const Duration(seconds: 1), - Duration? timeout = const Duration(seconds: 5), - }) => - (super.noSuchMethod( - Invocation.method( - #start, - [], - { - #interval: interval, - #timeout: timeout, - }, - ), - returnValue: _i4.Stream<_i3.AgentState>.empty(), - ) as _i4.Stream<_i3.AgentState>); - - @override - _i4.Future reset() => (super.noSuchMethod( - Invocation.method( - #reset, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); -} diff --git a/gui/packages/ubuntupro/test/startup/startup_page_test.mocks.dart b/gui/packages/ubuntupro/test/startup/startup_page_test.mocks.dart deleted file mode 100644 index a010df078..000000000 --- a/gui/packages/ubuntupro/test/startup/startup_page_test.mocks.dart +++ /dev/null @@ -1,263 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in ubuntupro/test/startup/startup_page_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i5; -import 'dart:io' as _i6; - -import 'package:agentapi/agentapi.dart' as _i3; -import 'package:grpc/grpc.dart' as _i7; -import 'package:mockito/mockito.dart' as _i1; -import 'package:ubuntupro/core/agent_api_client.dart' as _i2; -import 'package:ubuntupro/core/agent_monitor.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 -// ignore_for_file: unnecessary_parenthesis -// ignore_for_file: camel_case_types -// ignore_for_file: subtype_of_sealed_class - -class _FakeAgentApiClient_0 extends _i1.SmartFake - implements _i2.AgentApiClient { - _FakeAgentApiClient_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeUIClient_1 extends _i1.SmartFake implements _i3.UIClient { - _FakeUIClient_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSubscriptionInfo_2 extends _i1.SmartFake - implements _i3.SubscriptionInfo { - _FakeSubscriptionInfo_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeLandscapeSource_3 extends _i1.SmartFake - implements _i3.LandscapeSource { - _FakeLandscapeSource_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeConfigSources_4 extends _i1.SmartFake implements _i3.ConfigSources { - _FakeConfigSources_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AgentStartupMonitor]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentStartupMonitor extends _i1.Mock - implements _i4.AgentStartupMonitor { - MockAgentStartupMonitor() { - _i1.throwOnMissingStub(this); - } - - @override - _i4.AgentLauncher get agentLauncher => (super.noSuchMethod( - Invocation.getter(#agentLauncher), - returnValue: () => _i5.Future.value(false), - ) as _i4.AgentLauncher); - - @override - _i4.ApiClientFactory get clientFactory => (super.noSuchMethod( - Invocation.getter(#clientFactory), - returnValue: ( - String host, - int port, - _i6.Directory certsDir, - ) => - _FakeAgentApiClient_0( - this, - Invocation.getter(#clientFactory), - ), - ) as _i4.ApiClientFactory); - - @override - bool addNewClientListener(_i4.AgentApiCallback? cb) => (super.noSuchMethod( - Invocation.method( - #addNewClientListener, - [cb], - ), - returnValue: false, - ) as bool); - - @override - _i5.Stream<_i4.AgentState> start({ - Duration? interval = const Duration(seconds: 1), - Duration? timeout = const Duration(seconds: 5), - }) => - (super.noSuchMethod( - Invocation.method( - #start, - [], - { - #interval: interval, - #timeout: timeout, - }, - ), - returnValue: _i5.Stream<_i4.AgentState>.empty(), - ) as _i5.Stream<_i4.AgentState>); - - @override - _i5.Future reset() => (super.noSuchMethod( - Invocation.method( - #reset, - [], - ), - returnValue: _i5.Future.value(), - returnValueForMissingStub: _i5.Future.value(), - ) as _i5.Future); -} - -/// A class which mocks [AgentApiClient]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAgentApiClient extends _i1.Mock implements _i2.AgentApiClient { - MockAgentApiClient() { - _i1.throwOnMissingStub(this); - } - - @override - _i3.UIClient Function(_i7.ClientChannel) get stubFactory => - (super.noSuchMethod( - Invocation.getter(#stubFactory), - returnValue: (_i7.ClientChannel __p0) => _FakeUIClient_1( - this, - Invocation.getter(#stubFactory), - ), - ) as _i3.UIClient Function(_i7.ClientChannel)); - - @override - _i5.Stream<_i2.ConnectionEvent> get onConnectionChanged => - (super.noSuchMethod( - Invocation.getter(#onConnectionChanged), - returnValue: _i5.Stream<_i2.ConnectionEvent>.empty(), - ) as _i5.Stream<_i2.ConnectionEvent>); - - @override - _i5.Future connectTo( - String? host, - int? port, - _i6.Directory? certsDir, - ) => - (super.noSuchMethod( - Invocation.method( - #connectTo, - [ - host, - port, - certsDir, - ], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i3.SubscriptionInfo> applyProToken(String? token) => - (super.noSuchMethod( - Invocation.method( - #applyProToken, - [token], - ), - returnValue: - _i5.Future<_i3.SubscriptionInfo>.value(_FakeSubscriptionInfo_2( - this, - Invocation.method( - #applyProToken, - [token], - ), - )), - ) as _i5.Future<_i3.SubscriptionInfo>); - - @override - _i5.Future<_i3.LandscapeSource> applyLandscapeConfig(String? config) => - (super.noSuchMethod( - Invocation.method( - #applyLandscapeConfig, - [config], - ), - returnValue: - _i5.Future<_i3.LandscapeSource>.value(_FakeLandscapeSource_3( - this, - Invocation.method( - #applyLandscapeConfig, - [config], - ), - )), - ) as _i5.Future<_i3.LandscapeSource>); - - @override - _i5.Future ping() => (super.noSuchMethod( - Invocation.method( - #ping, - [], - ), - returnValue: _i5.Future.value(false), - ) as _i5.Future); - - @override - _i5.Future<_i3.ConfigSources> configSources() => (super.noSuchMethod( - Invocation.method( - #configSources, - [], - ), - returnValue: _i5.Future<_i3.ConfigSources>.value(_FakeConfigSources_4( - this, - Invocation.method( - #configSources, - [], - ), - )), - ) as _i5.Future<_i3.ConfigSources>); - - @override - _i5.Future<_i3.SubscriptionInfo> notifyPurchase() => (super.noSuchMethod( - Invocation.method( - #notifyPurchase, - [], - ), - returnValue: - _i5.Future<_i3.SubscriptionInfo>.value(_FakeSubscriptionInfo_2( - this, - Invocation.method( - #notifyPurchase, - [], - ), - )), - ) as _i5.Future<_i3.SubscriptionInfo>); -}