From ce46949f75ea924eafe9e329e7a82df4ae1fb62f Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Fri, 27 Sep 2024 15:17:05 -0400 Subject: [PATCH 1/4] impl of adprogressinfo --- packages/interactive_media_ads/CHANGELOG.md | 4 + .../AdProgressInfoProxyApi.kt | 41 ++++++++++ .../AdsRequestProxyApi.kt | 2 +- .../ProxyApiRegistrar.kt | 4 + .../AdProgressInfoProxyApiTest.kt | 79 +++++++++++++++++++ .../AdsRequestProxyAPIDelegate.swift | 2 +- .../interactive_media_ads_android.dart | 28 +++++++ packages/interactive_media_ads/pubspec.yaml | 2 +- 8 files changed, 159 insertions(+), 3 deletions(-) create mode 100644 packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdProgressInfoProxyApi.kt create mode 100644 packages/interactive_media_ads/android/src/test/kotlin/dev/flutter/packages/interactive_media_ads/AdProgressInfoProxyApiTest.kt diff --git a/packages/interactive_media_ads/CHANGELOG.md b/packages/interactive_media_ads/CHANGELOG.md index af8606dce33..ebf0512682a 100644 --- a/packages/interactive_media_ads/CHANGELOG.md +++ b/packages/interactive_media_ads/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.2.2+4 + +* Adds internal wrapper for Android native `AdProgressInfo`. + ## 0.2.2+3 * Adds internal wrapper for iOS native `IMAFriendlyObstruction`. diff --git a/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdProgressInfoProxyApi.kt b/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdProgressInfoProxyApi.kt new file mode 100644 index 00000000000..51fbf0c54e4 --- /dev/null +++ b/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdProgressInfoProxyApi.kt @@ -0,0 +1,41 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package dev.flutter.packages.interactive_media_ads + +import com.google.ads.interactivemedia.v3.api.AdProgressInfo + +/** + * ProxyApi implementation for [AdProgressInfo]. + * + *

This class may handle instantiating native object instances that are attached to a Dart + * instance or handle method calls on the associated native class or an instance of that class. + */ +class AdProgressInfoProxyApi(override val pigeonRegistrar: ProxyApiRegistrar) : + PigeonApiAdProgressInfo(pigeonRegistrar) { + + override fun adBreakDuration(pigeon_instance: AdProgressInfo): Double { + return pigeon_instance.adBreakDuration + } + + override fun adPeriodDuration(pigeon_instance: AdProgressInfo): Double { + return pigeon_instance.adPeriodDuration + } + + override fun adPosition(pigeon_instance: AdProgressInfo): Long { + return pigeon_instance.adPosition.toLong() + } + + override fun currentTime(pigeon_instance: AdProgressInfo): Double { + return pigeon_instance.currentTime + } + + override fun duration(pigeon_instance: AdProgressInfo): Double { + return pigeon_instance.duration + } + + override fun totalAds(pigeon_instance: AdProgressInfo): Long { + return pigeon_instance.totalAds.toLong() + } +} diff --git a/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdsRequestProxyApi.kt b/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdsRequestProxyApi.kt index 74c520939af..08333ec3d98 100644 --- a/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdsRequestProxyApi.kt +++ b/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdsRequestProxyApi.kt @@ -21,7 +21,7 @@ class AdsRequestProxyApi(override val pigeonRegistrar: ProxyApiRegistrar) : * * This must match the version in pubspec.yaml. */ - const val pluginVersion = "0.2.2+3" + const val pluginVersion = "0.2.2+4" } override fun setAdTagUrl(pigeon_instance: AdsRequest, adTagUrl: String) { diff --git a/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/ProxyApiRegistrar.kt b/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/ProxyApiRegistrar.kt index 57667057e68..61707d049bc 100644 --- a/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/ProxyApiRegistrar.kt +++ b/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/ProxyApiRegistrar.kt @@ -129,4 +129,8 @@ open class ProxyApiRegistrar(binaryMessenger: BinaryMessenger, var context: Cont override fun getPigeonApiAdsRenderingSettings(): PigeonApiAdsRenderingSettings { return AdsRenderingSettingsProxyApi(this) } + + override fun getPigeonApiAdProgressInfo(): PigeonApiAdProgressInfo { + return AdProgressInfoProxyApi(this) + } } diff --git a/packages/interactive_media_ads/android/src/test/kotlin/dev/flutter/packages/interactive_media_ads/AdProgressInfoProxyApiTest.kt b/packages/interactive_media_ads/android/src/test/kotlin/dev/flutter/packages/interactive_media_ads/AdProgressInfoProxyApiTest.kt new file mode 100644 index 00000000000..8745bbf89f7 --- /dev/null +++ b/packages/interactive_media_ads/android/src/test/kotlin/dev/flutter/packages/interactive_media_ads/AdProgressInfoProxyApiTest.kt @@ -0,0 +1,79 @@ +// Copyright 2013 The Flutter Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +package dev.flutter.packages.interactive_media_ads + +import com.google.ads.interactivemedia.v3.api.AdProgressInfo +import kotlin.test.Test +import kotlin.test.assertEquals +import org.mockito.kotlin.mock +import org.mockito.kotlin.whenever + +class AdProgressInfoProxyApiTest { + @Test + fun adBreakDuration() { + val api = TestProxyApiRegistrar().getPigeonApiAdProgressInfo() + + val instance = mock() + val value = 1.0 + whenever(instance.adBreakDuration).thenReturn(value) + + assertEquals(value, api.adBreakDuration(instance)) + } + + @Test + fun adPeriodDuration() { + val api = TestProxyApiRegistrar().getPigeonApiAdProgressInfo() + + val instance = mock() + val value = 1.0 + whenever(instance.adPeriodDuration).thenReturn(value) + + assertEquals(value, api.adPeriodDuration(instance)) + } + + @Test + fun adPosition() { + val api = TestProxyApiRegistrar().getPigeonApiAdProgressInfo() + + val instance = mock() + val value = 0 + whenever(instance.adPosition).thenReturn(value) + + assertEquals(value.toLong(), api.adPosition(instance)) + } + + @Test + fun currentTime() { + val api = TestProxyApiRegistrar().getPigeonApiAdProgressInfo() + + val instance = mock() + val value = 1.0 + whenever(instance.currentTime).thenReturn(value) + + assertEquals(value, api.currentTime(instance)) + } + + @Test + fun duration() { + val api = TestProxyApiRegistrar().getPigeonApiAdProgressInfo() + + val instance = mock() + val value = 1.0 + whenever(instance.duration).thenReturn(value) + + assertEquals(value, api.duration(instance)) + } + + @Test + fun totalAds() { + val api = TestProxyApiRegistrar().getPigeonApiAdProgressInfo() + + val instance = mock() + val value = 0 + whenever(instance.totalAds).thenReturn(value) + + assertEquals(value.toLong(), api.totalAds(instance)) + } +} diff --git a/packages/interactive_media_ads/ios/interactive_media_ads/Sources/interactive_media_ads/AdsRequestProxyAPIDelegate.swift b/packages/interactive_media_ads/ios/interactive_media_ads/Sources/interactive_media_ads/AdsRequestProxyAPIDelegate.swift index e3588525018..9e3efc5a5e3 100644 --- a/packages/interactive_media_ads/ios/interactive_media_ads/Sources/interactive_media_ads/AdsRequestProxyAPIDelegate.swift +++ b/packages/interactive_media_ads/ios/interactive_media_ads/Sources/interactive_media_ads/AdsRequestProxyAPIDelegate.swift @@ -13,7 +13,7 @@ class AdsRequestProxyAPIDelegate: PigeonApiDelegateIMAAdsRequest { /// The current version of the `interactive_media_ads` plugin. /// /// This must match the version in pubspec.yaml. - static let pluginVersion = "0.2.2+3" + static let pluginVersion = "0.2.2+4" func pigeonDefaultConstructor( pigeonApi: PigeonApiIMAAdsRequest, adTagUrl: String, adDisplayContainer: IMAAdDisplayContainer, diff --git a/packages/interactive_media_ads/pigeons/interactive_media_ads_android.dart b/packages/interactive_media_ads/pigeons/interactive_media_ads_android.dart index f16486aff2d..fd1adb24e2b 100644 --- a/packages/interactive_media_ads/pigeons/interactive_media_ads_android.dart +++ b/packages/interactive_media_ads/pigeons/interactive_media_ads_android.dart @@ -834,3 +834,31 @@ abstract class AdsRenderingSettings { /// Sets the ad UI elements to be rendered by the IMA SDK. void setUiElements(List uiElements); } + +/// Represents the progress within this ad break. +/// +/// See https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side/api/reference/com/google/ads/interactivemedia/v3/api/AdProgressInfo.html. +@ProxyApi( + kotlinOptions: KotlinProxyApiOptions( + fullClassName: 'com.google.ads.interactivemedia.v3.api.AdProgressInfo', + ), +) +abstract class AdProgressInfo { + /// Total ad break duration (in seconds). + late final double adBreakDuration; + + /// Total ad period duration (in seconds). + late final double adPeriodDuration; + + /// The position of current ad within the ad break, starting with 1. + late final int adPosition; + + /// Current time within the ad (in seconds). + late final double currentTime; + + /// Duration of current ad (in seconds). + late final double duration; + + /// The total number of ads in this ad break. + late final int totalAds; +} diff --git a/packages/interactive_media_ads/pubspec.yaml b/packages/interactive_media_ads/pubspec.yaml index dcd422cbe4e..0fc37ddec89 100644 --- a/packages/interactive_media_ads/pubspec.yaml +++ b/packages/interactive_media_ads/pubspec.yaml @@ -2,7 +2,7 @@ name: interactive_media_ads description: A Flutter plugin for using the Interactive Media Ads SDKs on Android and iOS. repository: https://github.com/flutter/packages/tree/main/packages/interactive_media_ads issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+interactive_media_ads%22 -version: 0.2.2+3 # This must match the version in +version: 0.2.2+4 # This must match the version in # `android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/AdsRequestProxyApi.kt` and # `ios/interactive_media_ads/Sources/interactive_media_ads/AdsRequestProxyAPIDelegate.swift` From 9853dee3224577c1535a8cbbe9d043003b299bf1 Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Fri, 27 Sep 2024 15:21:35 -0400 Subject: [PATCH 2/4] add generated --- .../InteractiveMediaAdsLibrary.g.kt | 100 ++++++++++- .../src/android/interactive_media_ads.g.dart | 163 ++++++++++++++++-- 2 files changed, 251 insertions(+), 12 deletions(-) diff --git a/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/InteractiveMediaAdsLibrary.g.kt b/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/InteractiveMediaAdsLibrary.g.kt index 7dfd1306625..798bb41f20a 100644 --- a/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/InteractiveMediaAdsLibrary.g.kt +++ b/packages/interactive_media_ads/android/src/main/kotlin/dev/flutter/packages/interactive_media_ads/InteractiveMediaAdsLibrary.g.kt @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Autogenerated from Pigeon (v22.3.0), do not edit directly. +// Autogenerated from Pigeon (v22.4.0), do not edit directly. // See also: https://pub.dev/packages/pigeon @file:Suppress("UNCHECKED_CAST", "ArrayInDataClass", "SyntheticAccessor") @@ -543,6 +543,12 @@ abstract class InteractiveMediaAdsLibraryPigeonProxyApiRegistrar( */ abstract fun getPigeonApiAdsRenderingSettings(): PigeonApiAdsRenderingSettings + /** + * An implementation of [PigeonApiAdProgressInfo] used to add a new Dart instance of + * `AdProgressInfo` to the Dart `InstanceManager`. + */ + abstract fun getPigeonApiAdProgressInfo(): PigeonApiAdProgressInfo + fun setUp() { InteractiveMediaAdsLibraryPigeonInstanceManagerApi.setUpMessageHandlers( binaryMessenger, instanceManager) @@ -681,6 +687,8 @@ private class InteractiveMediaAdsLibraryPigeonProxyApiBaseCodec( registrar.getPigeonApiAdEventListener().pigeon_newInstance(value) {} } else if (value is com.google.ads.interactivemedia.v3.api.AdsRenderingSettings) { registrar.getPigeonApiAdsRenderingSettings().pigeon_newInstance(value) {} + } else if (value is com.google.ads.interactivemedia.v3.api.AdProgressInfo) { + registrar.getPigeonApiAdProgressInfo().pigeon_newInstance(value) {} } when { @@ -4620,3 +4628,93 @@ abstract class PigeonApiAdsRenderingSettings( } } } +/** + * Represents the progress within this ad break. + * + * See + * https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side/api/reference/com/google/ads/interactivemedia/v3/api/AdProgressInfo.html. + */ +@Suppress("UNCHECKED_CAST") +abstract class PigeonApiAdProgressInfo( + open val pigeonRegistrar: InteractiveMediaAdsLibraryPigeonProxyApiRegistrar +) { + /** Total ad break duration (in seconds). */ + abstract fun adBreakDuration( + pigeon_instance: com.google.ads.interactivemedia.v3.api.AdProgressInfo + ): Double + + /** Total ad period duration (in seconds). */ + abstract fun adPeriodDuration( + pigeon_instance: com.google.ads.interactivemedia.v3.api.AdProgressInfo + ): Double + + /** The position of current ad within the ad break, starting with 1. */ + abstract fun adPosition( + pigeon_instance: com.google.ads.interactivemedia.v3.api.AdProgressInfo + ): Long + + /** Current time within the ad (in seconds). */ + abstract fun currentTime( + pigeon_instance: com.google.ads.interactivemedia.v3.api.AdProgressInfo + ): Double + + /** Duration of current ad (in seconds). */ + abstract fun duration( + pigeon_instance: com.google.ads.interactivemedia.v3.api.AdProgressInfo + ): Double + + /** The total number of ads in this ad break. */ + abstract fun totalAds( + pigeon_instance: com.google.ads.interactivemedia.v3.api.AdProgressInfo + ): Long + + @Suppress("LocalVariableName", "FunctionName") + /** Creates a Dart instance of AdProgressInfo and attaches it to [pigeon_instanceArg]. */ + fun pigeon_newInstance( + pigeon_instanceArg: com.google.ads.interactivemedia.v3.api.AdProgressInfo, + callback: (Result) -> Unit + ) { + if (pigeonRegistrar.ignoreCallsToDart) { + callback( + Result.failure( + FlutterError("ignore-calls-error", "Calls to Dart are being ignored.", ""))) + return + } + if (pigeonRegistrar.instanceManager.containsInstance(pigeon_instanceArg)) { + Result.success(Unit) + return + } + val pigeon_identifierArg = + pigeonRegistrar.instanceManager.addHostCreatedInstance(pigeon_instanceArg) + val adBreakDurationArg = adBreakDuration(pigeon_instanceArg) + val adPeriodDurationArg = adPeriodDuration(pigeon_instanceArg) + val adPositionArg = adPosition(pigeon_instanceArg) + val currentTimeArg = currentTime(pigeon_instanceArg) + val durationArg = duration(pigeon_instanceArg) + val totalAdsArg = totalAds(pigeon_instanceArg) + val binaryMessenger = pigeonRegistrar.binaryMessenger + val codec = pigeonRegistrar.codec + val channelName = "dev.flutter.pigeon.interactive_media_ads.AdProgressInfo.pigeon_newInstance" + val channel = BasicMessageChannel(binaryMessenger, channelName, codec) + channel.send( + listOf( + pigeon_identifierArg, + adBreakDurationArg, + adPeriodDurationArg, + adPositionArg, + currentTimeArg, + durationArg, + totalAdsArg)) { + if (it is List<*>) { + if (it.size > 1) { + callback( + Result.failure(FlutterError(it[0] as String, it[1] as String, it[2] as String?))) + } else { + callback(Result.success(Unit)) + } + } else { + callback(Result.failure(createConnectionError(channelName))) + } + } + } +} diff --git a/packages/interactive_media_ads/lib/src/android/interactive_media_ads.g.dart b/packages/interactive_media_ads/lib/src/android/interactive_media_ads.g.dart index 4a1dd1516c5..168114afa66 100644 --- a/packages/interactive_media_ads/lib/src/android/interactive_media_ads.g.dart +++ b/packages/interactive_media_ads/lib/src/android/interactive_media_ads.g.dart @@ -1,7 +1,7 @@ // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -// Autogenerated from Pigeon (v22.3.0), do not edit directly. +// Autogenerated from Pigeon (v22.4.0), do not edit directly. // See also: https://pub.dev/packages/pigeon // ignore_for_file: public_member_api_docs, non_constant_identifier_names, avoid_as, unused_import, unnecessary_parenthesis, prefer_null_aware_operators, omit_local_variable_types, unused_shown_name, unnecessary_import, no_leading_underscores_for_local_identifiers @@ -191,6 +191,8 @@ class PigeonInstanceManager { pigeon_instanceManager: instanceManager); AdsRenderingSettings.pigeon_setUpMessageHandlers( pigeon_instanceManager: instanceManager); + AdProgressInfo.pigeon_setUpMessageHandlers( + pigeon_instanceManager: instanceManager); return instanceManager; } @@ -1710,7 +1712,7 @@ class AdsManager extends BaseManager { /// List of content time offsets in seconds at which ad breaks are scheduled. /// /// The list will be empty if no ad breaks are scheduled. - Future> getAdCuePoints() async { + Future> getAdCuePoints() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecAdsManager; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -1738,7 +1740,7 @@ class AdsManager extends BaseManager { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } @@ -2020,7 +2022,7 @@ class AdEvent extends PigeonInternalProxyApiBaseClass { final AdEventType type; /// A map containing any extra ad data for the event, if needed. - final Map? adData; + final Map? adData; static void pigeon_setUpMessageHandlers({ bool pigeon_clearHandlers = false, @@ -2028,7 +2030,7 @@ class AdEvent extends PigeonInternalProxyApiBaseClass { PigeonInstanceManager? pigeon_instanceManager, AdEvent Function( AdEventType type, - Map? adData, + Map? adData, )? pigeon_newInstance, }) { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = @@ -2055,8 +2057,8 @@ class AdEvent extends PigeonInternalProxyApiBaseClass { final AdEventType? arg_type = (args[1] as AdEventType?); assert(arg_type != null, 'Argument for dev.flutter.pigeon.interactive_media_ads.AdEvent.pigeon_newInstance was null, expected non-null AdEventType.'); - final Map? arg_adData = - (args[2] as Map?)?.cast(); + final Map? arg_adData = + (args[2] as Map?)?.cast(); try { (pigeon_instanceManager ?? PigeonInstanceManager.instance) .addHostCreatedInstance( @@ -5203,7 +5205,7 @@ class AdsRenderingSettings extends PigeonInternalProxyApiBaseClass { } /// The SDK will prioritize the media with MIME type on the list. - Future> getMimeTypes() async { + Future> getMimeTypes() async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecAdsRenderingSettings; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5231,7 +5233,7 @@ class AdsRenderingSettings extends PigeonInternalProxyApiBaseClass { message: 'Host platform returned null value for non-null return value.', ); } else { - return (pigeonVar_replyList[0] as List?)!.cast(); + return (pigeonVar_replyList[0] as List?)!.cast(); } } @@ -5398,7 +5400,7 @@ class AdsRenderingSettings extends PigeonInternalProxyApiBaseClass { /// If specified, the SDK will prioritize the media with MIME type on the /// list. - Future setMimeTypes(List mimeTypes) async { + Future setMimeTypes(List mimeTypes) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecAdsRenderingSettings; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5455,7 +5457,7 @@ class AdsRenderingSettings extends PigeonInternalProxyApiBaseClass { } /// Sets the ad UI elements to be rendered by the IMA SDK. - Future setUiElements(List uiElements) async { + Future setUiElements(List uiElements) async { final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = _pigeonVar_codecAdsRenderingSettings; final BinaryMessenger? pigeonVar_binaryMessenger = pigeon_binaryMessenger; @@ -5490,3 +5492,142 @@ class AdsRenderingSettings extends PigeonInternalProxyApiBaseClass { ); } } + +/// Represents the progress within this ad break. +/// +/// See https://developers.google.com/interactive-media-ads/docs/sdks/android/client-side/api/reference/com/google/ads/interactivemedia/v3/api/AdProgressInfo.html. +class AdProgressInfo extends PigeonInternalProxyApiBaseClass { + /// Constructs [AdProgressInfo] without creating the associated native object. + /// + /// This should only be used by subclasses created by this library or to + /// create copies for an [PigeonInstanceManager]. + @protected + AdProgressInfo.pigeon_detached({ + super.pigeon_binaryMessenger, + super.pigeon_instanceManager, + required this.adBreakDuration, + required this.adPeriodDuration, + required this.adPosition, + required this.currentTime, + required this.duration, + required this.totalAds, + }); + + /// Total ad break duration (in seconds). + final double adBreakDuration; + + /// Total ad period duration (in seconds). + final double adPeriodDuration; + + /// The position of current ad within the ad break, starting with 1. + final int adPosition; + + /// Current time within the ad (in seconds). + final double currentTime; + + /// Duration of current ad (in seconds). + final double duration; + + /// The total number of ads in this ad break. + final int totalAds; + + static void pigeon_setUpMessageHandlers({ + bool pigeon_clearHandlers = false, + BinaryMessenger? pigeon_binaryMessenger, + PigeonInstanceManager? pigeon_instanceManager, + AdProgressInfo Function( + double adBreakDuration, + double adPeriodDuration, + int adPosition, + double currentTime, + double duration, + int totalAds, + )? pigeon_newInstance, + }) { + final _PigeonInternalProxyApiBaseCodec pigeonChannelCodec = + _PigeonInternalProxyApiBaseCodec( + pigeon_instanceManager ?? PigeonInstanceManager.instance); + final BinaryMessenger? binaryMessenger = pigeon_binaryMessenger; + { + final BasicMessageChannel< + Object?> pigeonVar_channel = BasicMessageChannel< + Object?>( + 'dev.flutter.pigeon.interactive_media_ads.AdProgressInfo.pigeon_newInstance', + pigeonChannelCodec, + binaryMessenger: binaryMessenger); + if (pigeon_clearHandlers) { + pigeonVar_channel.setMessageHandler(null); + } else { + pigeonVar_channel.setMessageHandler((Object? message) async { + assert(message != null, + 'Argument for dev.flutter.pigeon.interactive_media_ads.AdProgressInfo.pigeon_newInstance was null.'); + final List args = (message as List?)!; + final int? arg_pigeon_instanceIdentifier = (args[0] as int?); + assert(arg_pigeon_instanceIdentifier != null, + 'Argument for dev.flutter.pigeon.interactive_media_ads.AdProgressInfo.pigeon_newInstance was null, expected non-null int.'); + final double? arg_adBreakDuration = (args[1] as double?); + assert(arg_adBreakDuration != null, + 'Argument for dev.flutter.pigeon.interactive_media_ads.AdProgressInfo.pigeon_newInstance was null, expected non-null double.'); + final double? arg_adPeriodDuration = (args[2] as double?); + assert(arg_adPeriodDuration != null, + 'Argument for dev.flutter.pigeon.interactive_media_ads.AdProgressInfo.pigeon_newInstance was null, expected non-null double.'); + final int? arg_adPosition = (args[3] as int?); + assert(arg_adPosition != null, + 'Argument for dev.flutter.pigeon.interactive_media_ads.AdProgressInfo.pigeon_newInstance was null, expected non-null int.'); + final double? arg_currentTime = (args[4] as double?); + assert(arg_currentTime != null, + 'Argument for dev.flutter.pigeon.interactive_media_ads.AdProgressInfo.pigeon_newInstance was null, expected non-null double.'); + final double? arg_duration = (args[5] as double?); + assert(arg_duration != null, + 'Argument for dev.flutter.pigeon.interactive_media_ads.AdProgressInfo.pigeon_newInstance was null, expected non-null double.'); + final int? arg_totalAds = (args[6] as int?); + assert(arg_totalAds != null, + 'Argument for dev.flutter.pigeon.interactive_media_ads.AdProgressInfo.pigeon_newInstance was null, expected non-null int.'); + try { + (pigeon_instanceManager ?? PigeonInstanceManager.instance) + .addHostCreatedInstance( + pigeon_newInstance?.call( + arg_adBreakDuration!, + arg_adPeriodDuration!, + arg_adPosition!, + arg_currentTime!, + arg_duration!, + arg_totalAds!) ?? + AdProgressInfo.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, + adBreakDuration: arg_adBreakDuration!, + adPeriodDuration: arg_adPeriodDuration!, + adPosition: arg_adPosition!, + currentTime: arg_currentTime!, + duration: arg_duration!, + totalAds: arg_totalAds!, + ), + arg_pigeon_instanceIdentifier!, + ); + return wrapResponse(empty: true); + } on PlatformException catch (e) { + return wrapResponse(error: e); + } catch (e) { + return wrapResponse( + error: PlatformException(code: 'error', message: e.toString())); + } + }); + } + } + } + + @override + AdProgressInfo pigeon_copy() { + return AdProgressInfo.pigeon_detached( + pigeon_binaryMessenger: pigeon_binaryMessenger, + pigeon_instanceManager: pigeon_instanceManager, + adBreakDuration: adBreakDuration, + adPeriodDuration: adPeriodDuration, + adPosition: adPosition, + currentTime: currentTime, + duration: duration, + totalAds: totalAds, + ); + } +} From 40deb944698096719f1c8ebeebabccc131b71a51 Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Fri, 27 Sep 2024 15:33:45 -0400 Subject: [PATCH 3/4] update mocks --- .../ad_display_container_test.mocks.dart | 1266 ------------ .../test/android/ads_loader_test.mocks.dart | 1801 ----------------- .../test/android/ads_manager_test.mocks.dart | 531 ----- .../content_progress_provider_test.mocks.dart | 97 - .../ios/ad_display_container_test.mocks.dart | 198 -- .../test/ios/ads_loader_test.mocks.dart | 563 ------ .../test/ios/ads_manager_test.mocks.dart | 167 -- .../content_progress_provider_test.mocks.dart | 96 - 8 files changed, 4719 deletions(-) delete mode 100644 packages/interactive_media_ads/test/android/ad_display_container_test.mocks.dart delete mode 100644 packages/interactive_media_ads/test/android/ads_loader_test.mocks.dart delete mode 100644 packages/interactive_media_ads/test/android/ads_manager_test.mocks.dart delete mode 100644 packages/interactive_media_ads/test/android/content_progress_provider_test.mocks.dart delete mode 100644 packages/interactive_media_ads/test/ios/ad_display_container_test.mocks.dart delete mode 100644 packages/interactive_media_ads/test/ios/ads_loader_test.mocks.dart delete mode 100644 packages/interactive_media_ads/test/ios/ads_manager_test.mocks.dart delete mode 100644 packages/interactive_media_ads/test/ios/content_progress_provider_test.mocks.dart diff --git a/packages/interactive_media_ads/test/android/ad_display_container_test.mocks.dart b/packages/interactive_media_ads/test/android/ad_display_container_test.mocks.dart deleted file mode 100644 index ef3f12b50b0..00000000000 --- a/packages/interactive_media_ads/test/android/ad_display_container_test.mocks.dart +++ /dev/null @@ -1,1266 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in interactive_media_ads/test/android/ad_display_container_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i6; -import 'dart:ui' as _i3; - -import 'package:flutter/services.dart' as _i4; -import 'package:interactive_media_ads/src/android/interactive_media_ads.g.dart' - as _i2; -import 'package:interactive_media_ads/src/android/platform_views_service_proxy.dart' - as _i7; -import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i5; - -// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake - implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdDisplayContainer_1 extends _i1.SmartFake - implements _i2.AdDisplayContainer { - _FakeAdDisplayContainer_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdMediaInfo_2 extends _i1.SmartFake implements _i2.AdMediaInfo { - _FakeAdMediaInfo_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdPodInfo_3 extends _i1.SmartFake implements _i2.AdPodInfo { - _FakeAdPodInfo_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeFrameLayout_4 extends _i1.SmartFake implements _i2.FrameLayout { - _FakeFrameLayout_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeMediaPlayer_5 extends _i1.SmartFake implements _i2.MediaPlayer { - _FakeMediaPlayer_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeVideoAdPlayer_6 extends _i1.SmartFake implements _i2.VideoAdPlayer { - _FakeVideoAdPlayer_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeVideoAdPlayerCallback_7 extends _i1.SmartFake - implements _i2.VideoAdPlayerCallback { - _FakeVideoAdPlayerCallback_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeVideoProgressUpdate_8 extends _i1.SmartFake - implements _i2.VideoProgressUpdate { - _FakeVideoProgressUpdate_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeVideoView_9 extends _i1.SmartFake implements _i2.VideoView { - _FakeVideoView_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeOffset_10 extends _i1.SmartFake implements _i3.Offset { - _FakeOffset_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSize_11 extends _i1.SmartFake implements _i3.Size { - _FakeSize_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeExpensiveAndroidViewController_12 extends _i1.SmartFake - implements _i4.ExpensiveAndroidViewController { - _FakeExpensiveAndroidViewController_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSurfaceAndroidViewController_13 extends _i1.SmartFake - implements _i4.SurfaceAndroidViewController { - _FakeSurfaceAndroidViewController_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AdDisplayContainer]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdDisplayContainer extends _i1.Mock - implements _i2.AdDisplayContainer { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdDisplayContainer pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdDisplayContainer_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdDisplayContainer_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdDisplayContainer); -} - -/// A class which mocks [AdMediaInfo]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdMediaInfo extends _i1.Mock implements _i2.AdMediaInfo { - @override - String get url => (super.noSuchMethod( - Invocation.getter(#url), - returnValue: _i5.dummyValue( - this, - Invocation.getter(#url), - ), - returnValueForMissingStub: _i5.dummyValue( - this, - Invocation.getter(#url), - ), - ) as String); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdMediaInfo pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdMediaInfo_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdMediaInfo_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdMediaInfo); -} - -/// A class which mocks [AdPodInfo]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdPodInfo extends _i1.Mock implements _i2.AdPodInfo { - @override - int get adPosition => (super.noSuchMethod( - Invocation.getter(#adPosition), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); - - @override - double get maxDuration => (super.noSuchMethod( - Invocation.getter(#maxDuration), - returnValue: 0.0, - returnValueForMissingStub: 0.0, - ) as double); - - @override - int get podIndex => (super.noSuchMethod( - Invocation.getter(#podIndex), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); - - @override - double get timeOffset => (super.noSuchMethod( - Invocation.getter(#timeOffset), - returnValue: 0.0, - returnValueForMissingStub: 0.0, - ) as double); - - @override - int get totalAds => (super.noSuchMethod( - Invocation.getter(#totalAds), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); - - @override - bool get isBumper => (super.noSuchMethod( - Invocation.getter(#isBumper), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdPodInfo pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdPodInfo_3( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdPodInfo_3( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdPodInfo); -} - -/// A class which mocks [FrameLayout]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockFrameLayout extends _i1.Mock implements _i2.FrameLayout { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.FrameLayout pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeFrameLayout_4( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeFrameLayout_4( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.FrameLayout); - - @override - _i6.Future addView(_i2.View? view) => (super.noSuchMethod( - Invocation.method( - #addView, - [view], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); -} - -/// A class which mocks [MediaPlayer]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockMediaPlayer extends _i1.Mock implements _i2.MediaPlayer { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i6.Future getDuration() => (super.noSuchMethod( - Invocation.method( - #getDuration, - [], - ), - returnValue: _i6.Future.value(0), - returnValueForMissingStub: _i6.Future.value(0), - ) as _i6.Future); - - @override - _i6.Future seekTo(int? mSec) => (super.noSuchMethod( - Invocation.method( - #seekTo, - [mSec], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future start() => (super.noSuchMethod( - Invocation.method( - #start, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future pause() => (super.noSuchMethod( - Invocation.method( - #pause, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future stop() => (super.noSuchMethod( - Invocation.method( - #stop, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i2.MediaPlayer pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeMediaPlayer_5( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeMediaPlayer_5( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.MediaPlayer); -} - -/// A class which mocks [VideoAdPlayer]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockVideoAdPlayer extends _i1.Mock implements _i2.VideoAdPlayer { - @override - void Function( - _i2.VideoAdPlayer, - _i2.VideoAdPlayerCallback, - ) get addCallback => (super.noSuchMethod( - Invocation.getter(#addCallback), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.VideoAdPlayerCallback callback, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.VideoAdPlayerCallback callback, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.VideoAdPlayerCallback, - )); - - @override - void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - _i2.AdPodInfo, - ) get loadAd => (super.noSuchMethod( - Invocation.getter(#loadAd), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - _i2.AdPodInfo adPodInfo, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - _i2.AdPodInfo adPodInfo, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - _i2.AdPodInfo, - )); - - @override - void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - ) get pauseAd => (super.noSuchMethod( - Invocation.getter(#pauseAd), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - )); - - @override - void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - ) get playAd => (super.noSuchMethod( - Invocation.getter(#playAd), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - )); - - @override - void Function(_i2.VideoAdPlayer) get release => (super.noSuchMethod( - Invocation.getter(#release), - returnValue: (_i2.VideoAdPlayer pigeon_instance) {}, - returnValueForMissingStub: (_i2.VideoAdPlayer pigeon_instance) {}, - ) as void Function(_i2.VideoAdPlayer)); - - @override - void Function( - _i2.VideoAdPlayer, - _i2.VideoAdPlayerCallback, - ) get removeCallback => (super.noSuchMethod( - Invocation.getter(#removeCallback), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.VideoAdPlayerCallback callback, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.VideoAdPlayerCallback callback, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.VideoAdPlayerCallback, - )); - - @override - void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - ) get stopAd => (super.noSuchMethod( - Invocation.getter(#stopAd), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i6.Future setVolume(int? value) => (super.noSuchMethod( - Invocation.method( - #setVolume, - [value], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future setAdProgress(_i2.VideoProgressUpdate? progress) => - (super.noSuchMethod( - Invocation.method( - #setAdProgress, - [progress], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i2.VideoAdPlayer pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeVideoAdPlayer_6( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeVideoAdPlayer_6( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.VideoAdPlayer); -} - -/// A class which mocks [VideoAdPlayerCallback]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockVideoAdPlayerCallback extends _i1.Mock - implements _i2.VideoAdPlayerCallback { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i6.Future onAdProgress( - _i2.AdMediaInfo? adMediaInfo, - _i2.VideoProgressUpdate? videoProgressUpdate, - ) => - (super.noSuchMethod( - Invocation.method( - #onAdProgress, - [ - adMediaInfo, - videoProgressUpdate, - ], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onBuffering(_i2.AdMediaInfo? adMediaInfo) => - (super.noSuchMethod( - Invocation.method( - #onBuffering, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onContentComplete() => (super.noSuchMethod( - Invocation.method( - #onContentComplete, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onEnded(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( - Invocation.method( - #onEnded, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onError(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( - Invocation.method( - #onError, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onLoaded(_i2.AdMediaInfo? adMediaInfo) => - (super.noSuchMethod( - Invocation.method( - #onLoaded, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onPause(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( - Invocation.method( - #onPause, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onPlay(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( - Invocation.method( - #onPlay, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onResume(_i2.AdMediaInfo? adMediaInfo) => - (super.noSuchMethod( - Invocation.method( - #onResume, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onVolumeChanged( - _i2.AdMediaInfo? adMediaInfo, - int? percentage, - ) => - (super.noSuchMethod( - Invocation.method( - #onVolumeChanged, - [ - adMediaInfo, - percentage, - ], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i2.VideoAdPlayerCallback pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeVideoAdPlayerCallback_7( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeVideoAdPlayerCallback_7( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.VideoAdPlayerCallback); -} - -/// A class which mocks [VideoProgressUpdate]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockVideoProgressUpdate extends _i1.Mock - implements _i2.VideoProgressUpdate { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.VideoProgressUpdate pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeVideoProgressUpdate_8( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeVideoProgressUpdate_8( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.VideoProgressUpdate); -} - -/// A class which mocks [VideoView]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockVideoView extends _i1.Mock implements _i2.VideoView { - @override - void Function( - _i2.VideoView, - _i2.MediaPlayer, - int, - int, - ) get onError => (super.noSuchMethod( - Invocation.getter(#onError), - returnValue: ( - _i2.VideoView pigeon_instance, - _i2.MediaPlayer player, - int what, - int extra, - ) {}, - returnValueForMissingStub: ( - _i2.VideoView pigeon_instance, - _i2.MediaPlayer player, - int what, - int extra, - ) {}, - ) as void Function( - _i2.VideoView, - _i2.MediaPlayer, - int, - int, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i6.Future setVideoUri(String? uri) => (super.noSuchMethod( - Invocation.method( - #setVideoUri, - [uri], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future getCurrentPosition() => (super.noSuchMethod( - Invocation.method( - #getCurrentPosition, - [], - ), - returnValue: _i6.Future.value(0), - returnValueForMissingStub: _i6.Future.value(0), - ) as _i6.Future); - - @override - _i2.VideoView pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeVideoView_9( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeVideoView_9( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.VideoView); -} - -/// A class which mocks [SurfaceAndroidViewController]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockSurfaceAndroidViewController extends _i1.Mock - implements _i4.SurfaceAndroidViewController { - @override - bool get requiresViewComposition => (super.noSuchMethod( - Invocation.getter(#requiresViewComposition), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); - - @override - int get viewId => (super.noSuchMethod( - Invocation.getter(#viewId), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); - - @override - bool get awaitingCreation => (super.noSuchMethod( - Invocation.getter(#awaitingCreation), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); - - @override - _i4.PointTransformer get pointTransformer => (super.noSuchMethod( - Invocation.getter(#pointTransformer), - returnValue: (_i3.Offset position) => _FakeOffset_10( - this, - Invocation.getter(#pointTransformer), - ), - returnValueForMissingStub: (_i3.Offset position) => _FakeOffset_10( - this, - Invocation.getter(#pointTransformer), - ), - ) as _i4.PointTransformer); - - @override - set pointTransformer(_i4.PointTransformer? transformer) => super.noSuchMethod( - Invocation.setter( - #pointTransformer, - transformer, - ), - returnValueForMissingStub: null, - ); - - @override - bool get isCreated => (super.noSuchMethod( - Invocation.getter(#isCreated), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); - - @override - List<_i4.PlatformViewCreatedCallback> get createdCallbacks => - (super.noSuchMethod( - Invocation.getter(#createdCallbacks), - returnValue: <_i4.PlatformViewCreatedCallback>[], - returnValueForMissingStub: <_i4.PlatformViewCreatedCallback>[], - ) as List<_i4.PlatformViewCreatedCallback>); - - @override - _i6.Future setOffset(_i3.Offset? off) => (super.noSuchMethod( - Invocation.method( - #setOffset, - [off], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future create({ - _i3.Size? size, - _i3.Offset? position, - }) => - (super.noSuchMethod( - Invocation.method( - #create, - [], - { - #size: size, - #position: position, - }, - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future<_i3.Size> setSize(_i3.Size? size) => (super.noSuchMethod( - Invocation.method( - #setSize, - [size], - ), - returnValue: _i6.Future<_i3.Size>.value(_FakeSize_11( - this, - Invocation.method( - #setSize, - [size], - ), - )), - returnValueForMissingStub: _i6.Future<_i3.Size>.value(_FakeSize_11( - this, - Invocation.method( - #setSize, - [size], - ), - )), - ) as _i6.Future<_i3.Size>); - - @override - _i6.Future sendMotionEvent(_i4.AndroidMotionEvent? event) => - (super.noSuchMethod( - Invocation.method( - #sendMotionEvent, - [event], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - void addOnPlatformViewCreatedListener( - _i4.PlatformViewCreatedCallback? listener) => - super.noSuchMethod( - Invocation.method( - #addOnPlatformViewCreatedListener, - [listener], - ), - returnValueForMissingStub: null, - ); - - @override - void removeOnPlatformViewCreatedListener( - _i4.PlatformViewCreatedCallback? listener) => - super.noSuchMethod( - Invocation.method( - #removeOnPlatformViewCreatedListener, - [listener], - ), - returnValueForMissingStub: null, - ); - - @override - _i6.Future setLayoutDirection(_i3.TextDirection? layoutDirection) => - (super.noSuchMethod( - Invocation.method( - #setLayoutDirection, - [layoutDirection], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future dispatchPointerEvent(_i4.PointerEvent? event) => - (super.noSuchMethod( - Invocation.method( - #dispatchPointerEvent, - [event], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future clearFocus() => (super.noSuchMethod( - Invocation.method( - #clearFocus, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future dispose() => (super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); -} - -/// A class which mocks [PlatformViewsServiceProxy]. -/// -/// See the documentation for Mockito's code generation for more information. -// ignore: must_be_immutable -class MockPlatformViewsServiceProxy extends _i1.Mock - implements _i7.PlatformViewsServiceProxy { - @override - _i4.ExpensiveAndroidViewController initExpensiveAndroidView({ - required int? id, - required String? viewType, - required _i3.TextDirection? layoutDirection, - dynamic creationParams, - _i4.MessageCodec? creationParamsCodec, - _i3.VoidCallback? onFocus, - }) => - (super.noSuchMethod( - Invocation.method( - #initExpensiveAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - returnValue: _FakeExpensiveAndroidViewController_12( - this, - Invocation.method( - #initExpensiveAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - ), - returnValueForMissingStub: _FakeExpensiveAndroidViewController_12( - this, - Invocation.method( - #initExpensiveAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - ), - ) as _i4.ExpensiveAndroidViewController); - - @override - _i4.SurfaceAndroidViewController initSurfaceAndroidView({ - required int? id, - required String? viewType, - required _i3.TextDirection? layoutDirection, - dynamic creationParams, - _i4.MessageCodec? creationParamsCodec, - _i3.VoidCallback? onFocus, - }) => - (super.noSuchMethod( - Invocation.method( - #initSurfaceAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - returnValue: _FakeSurfaceAndroidViewController_13( - this, - Invocation.method( - #initSurfaceAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - ), - returnValueForMissingStub: _FakeSurfaceAndroidViewController_13( - this, - Invocation.method( - #initSurfaceAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - ), - ) as _i4.SurfaceAndroidViewController); -} diff --git a/packages/interactive_media_ads/test/android/ads_loader_test.mocks.dart b/packages/interactive_media_ads/test/android/ads_loader_test.mocks.dart deleted file mode 100644 index a56865191d6..00000000000 --- a/packages/interactive_media_ads/test/android/ads_loader_test.mocks.dart +++ /dev/null @@ -1,1801 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in interactive_media_ads/test/android/ads_loader_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i6; -import 'dart:ui' as _i3; - -import 'package:flutter/services.dart' as _i4; -import 'package:interactive_media_ads/src/android/interactive_media_ads.g.dart' - as _i2; -import 'package:interactive_media_ads/src/android/platform_views_service_proxy.dart' - as _i7; -import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.dart' as _i5; - -// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake - implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdDisplayContainer_1 extends _i1.SmartFake - implements _i2.AdDisplayContainer { - _FakeAdDisplayContainer_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdError_2 extends _i1.SmartFake implements _i2.AdError { - _FakeAdError_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdErrorEvent_3 extends _i1.SmartFake implements _i2.AdErrorEvent { - _FakeAdErrorEvent_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdErrorListener_4 extends _i1.SmartFake - implements _i2.AdErrorListener { - _FakeAdErrorListener_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdsLoadedListener_5 extends _i1.SmartFake - implements _i2.AdsLoadedListener { - _FakeAdsLoadedListener_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdsManager_6 extends _i1.SmartFake implements _i2.AdsManager { - _FakeAdsManager_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdsManagerLoadedEvent_7 extends _i1.SmartFake - implements _i2.AdsManagerLoadedEvent { - _FakeAdsManagerLoadedEvent_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdsLoader_8 extends _i1.SmartFake implements _i2.AdsLoader { - _FakeAdsLoader_8( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdsRequest_9 extends _i1.SmartFake implements _i2.AdsRequest { - _FakeAdsRequest_9( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeFrameLayout_10 extends _i1.SmartFake implements _i2.FrameLayout { - _FakeFrameLayout_10( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeImaSdkSettings_11 extends _i1.SmartFake - implements _i2.ImaSdkSettings { - _FakeImaSdkSettings_11( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeImaSdkFactory_12 extends _i1.SmartFake implements _i2.ImaSdkFactory { - _FakeImaSdkFactory_12( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeVideoAdPlayer_13 extends _i1.SmartFake implements _i2.VideoAdPlayer { - _FakeVideoAdPlayer_13( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeVideoAdPlayerCallback_14 extends _i1.SmartFake - implements _i2.VideoAdPlayerCallback { - _FakeVideoAdPlayerCallback_14( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeVideoView_15 extends _i1.SmartFake implements _i2.VideoView { - _FakeVideoView_15( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeOffset_16 extends _i1.SmartFake implements _i3.Offset { - _FakeOffset_16( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSize_17 extends _i1.SmartFake implements _i3.Size { - _FakeSize_17( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeExpensiveAndroidViewController_18 extends _i1.SmartFake - implements _i4.ExpensiveAndroidViewController { - _FakeExpensiveAndroidViewController_18( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeSurfaceAndroidViewController_19 extends _i1.SmartFake - implements _i4.SurfaceAndroidViewController { - _FakeSurfaceAndroidViewController_19( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AdDisplayContainer]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdDisplayContainer extends _i1.Mock - implements _i2.AdDisplayContainer { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdDisplayContainer pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdDisplayContainer_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdDisplayContainer_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdDisplayContainer); -} - -/// A class which mocks [AdError]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdError extends _i1.Mock implements _i2.AdError { - @override - _i2.AdErrorCode get errorCode => (super.noSuchMethod( - Invocation.getter(#errorCode), - returnValue: _i2.AdErrorCode.adsPlayerWasNotProvided, - returnValueForMissingStub: _i2.AdErrorCode.adsPlayerWasNotProvided, - ) as _i2.AdErrorCode); - - @override - int get errorCodeNumber => (super.noSuchMethod( - Invocation.getter(#errorCodeNumber), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); - - @override - _i2.AdErrorType get errorType => (super.noSuchMethod( - Invocation.getter(#errorType), - returnValue: _i2.AdErrorType.load, - returnValueForMissingStub: _i2.AdErrorType.load, - ) as _i2.AdErrorType); - - @override - String get message => (super.noSuchMethod( - Invocation.getter(#message), - returnValue: _i5.dummyValue( - this, - Invocation.getter(#message), - ), - returnValueForMissingStub: _i5.dummyValue( - this, - Invocation.getter(#message), - ), - ) as String); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdError pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdError_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdError_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdError); -} - -/// A class which mocks [AdErrorEvent]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdErrorEvent extends _i1.Mock implements _i2.AdErrorEvent { - @override - _i2.AdError get error => (super.noSuchMethod( - Invocation.getter(#error), - returnValue: _FakeAdError_2( - this, - Invocation.getter(#error), - ), - returnValueForMissingStub: _FakeAdError_2( - this, - Invocation.getter(#error), - ), - ) as _i2.AdError); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdErrorEvent pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdErrorEvent_3( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdErrorEvent_3( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdErrorEvent); -} - -/// A class which mocks [AdErrorListener]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdErrorListener extends _i1.Mock implements _i2.AdErrorListener { - @override - void Function( - _i2.AdErrorListener, - _i2.AdErrorEvent, - ) get onAdError => (super.noSuchMethod( - Invocation.getter(#onAdError), - returnValue: ( - _i2.AdErrorListener pigeon_instance, - _i2.AdErrorEvent event, - ) {}, - returnValueForMissingStub: ( - _i2.AdErrorListener pigeon_instance, - _i2.AdErrorEvent event, - ) {}, - ) as void Function( - _i2.AdErrorListener, - _i2.AdErrorEvent, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdErrorListener pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdErrorListener_4( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdErrorListener_4( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdErrorListener); -} - -/// A class which mocks [AdsLoadedListener]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdsLoadedListener extends _i1.Mock implements _i2.AdsLoadedListener { - @override - void Function( - _i2.AdsLoadedListener, - _i2.AdsManagerLoadedEvent, - ) get onAdsManagerLoaded => (super.noSuchMethod( - Invocation.getter(#onAdsManagerLoaded), - returnValue: ( - _i2.AdsLoadedListener pigeon_instance, - _i2.AdsManagerLoadedEvent event, - ) {}, - returnValueForMissingStub: ( - _i2.AdsLoadedListener pigeon_instance, - _i2.AdsManagerLoadedEvent event, - ) {}, - ) as void Function( - _i2.AdsLoadedListener, - _i2.AdsManagerLoadedEvent, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdsLoadedListener pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdsLoadedListener_5( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdsLoadedListener_5( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdsLoadedListener); -} - -/// A class which mocks [AdsManager]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdsManager extends _i1.Mock implements _i2.AdsManager { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i6.Future discardAdBreak() => (super.noSuchMethod( - Invocation.method( - #discardAdBreak, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future pause() => (super.noSuchMethod( - Invocation.method( - #pause, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future start() => (super.noSuchMethod( - Invocation.method( - #start, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future> getAdCuePoints() => (super.noSuchMethod( - Invocation.method( - #getAdCuePoints, - [], - ), - returnValue: _i6.Future>.value([]), - returnValueForMissingStub: _i6.Future>.value([]), - ) as _i6.Future>); - - @override - _i6.Future resume() => (super.noSuchMethod( - Invocation.method( - #resume, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future skip() => (super.noSuchMethod( - Invocation.method( - #skip, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i2.AdsManager pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdsManager_6( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdsManager_6( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdsManager); - - @override - _i6.Future addAdErrorListener(_i2.AdErrorListener? errorListener) => - (super.noSuchMethod( - Invocation.method( - #addAdErrorListener, - [errorListener], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future addAdEventListener(_i2.AdEventListener? adEventListener) => - (super.noSuchMethod( - Invocation.method( - #addAdEventListener, - [adEventListener], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future destroy() => (super.noSuchMethod( - Invocation.method( - #destroy, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future init() => (super.noSuchMethod( - Invocation.method( - #init, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); -} - -/// A class which mocks [AdsManagerLoadedEvent]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdsManagerLoadedEvent extends _i1.Mock - implements _i2.AdsManagerLoadedEvent { - @override - _i2.AdsManager get manager => (super.noSuchMethod( - Invocation.getter(#manager), - returnValue: _FakeAdsManager_6( - this, - Invocation.getter(#manager), - ), - returnValueForMissingStub: _FakeAdsManager_6( - this, - Invocation.getter(#manager), - ), - ) as _i2.AdsManager); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdsManagerLoadedEvent pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdsManagerLoadedEvent_7( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdsManagerLoadedEvent_7( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdsManagerLoadedEvent); -} - -/// A class which mocks [AdsLoader]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdsLoader extends _i1.Mock implements _i2.AdsLoader { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i6.Future addAdErrorListener(_i2.AdErrorListener? listener) => - (super.noSuchMethod( - Invocation.method( - #addAdErrorListener, - [listener], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future addAdsLoadedListener(_i2.AdsLoadedListener? listener) => - (super.noSuchMethod( - Invocation.method( - #addAdsLoadedListener, - [listener], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future requestAds(_i2.AdsRequest? request) => (super.noSuchMethod( - Invocation.method( - #requestAds, - [request], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i2.AdsLoader pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdsLoader_8( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdsLoader_8( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdsLoader); -} - -/// A class which mocks [AdsRequest]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdsRequest extends _i1.Mock implements _i2.AdsRequest { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i6.Future setAdTagUrl(String? adTagUrl) => (super.noSuchMethod( - Invocation.method( - #setAdTagUrl, - [adTagUrl], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future setContentProgressProvider( - _i2.ContentProgressProvider? provider) => - (super.noSuchMethod( - Invocation.method( - #setContentProgressProvider, - [provider], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i2.AdsRequest pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdsRequest_9( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdsRequest_9( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdsRequest); -} - -/// A class which mocks [FrameLayout]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockFrameLayout extends _i1.Mock implements _i2.FrameLayout { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.FrameLayout pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeFrameLayout_10( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeFrameLayout_10( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.FrameLayout); - - @override - _i6.Future addView(_i2.View? view) => (super.noSuchMethod( - Invocation.method( - #addView, - [view], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); -} - -/// A class which mocks [ImaSdkFactory]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockImaSdkFactory extends _i1.Mock implements _i2.ImaSdkFactory { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i6.Future<_i2.ImaSdkSettings> createImaSdkSettings() => (super.noSuchMethod( - Invocation.method( - #createImaSdkSettings, - [], - ), - returnValue: - _i6.Future<_i2.ImaSdkSettings>.value(_FakeImaSdkSettings_11( - this, - Invocation.method( - #createImaSdkSettings, - [], - ), - )), - returnValueForMissingStub: - _i6.Future<_i2.ImaSdkSettings>.value(_FakeImaSdkSettings_11( - this, - Invocation.method( - #createImaSdkSettings, - [], - ), - )), - ) as _i6.Future<_i2.ImaSdkSettings>); - - @override - _i6.Future<_i2.AdsLoader> createAdsLoader( - _i2.ImaSdkSettings? settings, - _i2.AdDisplayContainer? container, - ) => - (super.noSuchMethod( - Invocation.method( - #createAdsLoader, - [ - settings, - container, - ], - ), - returnValue: _i6.Future<_i2.AdsLoader>.value(_FakeAdsLoader_8( - this, - Invocation.method( - #createAdsLoader, - [ - settings, - container, - ], - ), - )), - returnValueForMissingStub: - _i6.Future<_i2.AdsLoader>.value(_FakeAdsLoader_8( - this, - Invocation.method( - #createAdsLoader, - [ - settings, - container, - ], - ), - )), - ) as _i6.Future<_i2.AdsLoader>); - - @override - _i6.Future<_i2.AdsRequest> createAdsRequest() => (super.noSuchMethod( - Invocation.method( - #createAdsRequest, - [], - ), - returnValue: _i6.Future<_i2.AdsRequest>.value(_FakeAdsRequest_9( - this, - Invocation.method( - #createAdsRequest, - [], - ), - )), - returnValueForMissingStub: - _i6.Future<_i2.AdsRequest>.value(_FakeAdsRequest_9( - this, - Invocation.method( - #createAdsRequest, - [], - ), - )), - ) as _i6.Future<_i2.AdsRequest>); - - @override - _i2.ImaSdkFactory pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeImaSdkFactory_12( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeImaSdkFactory_12( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.ImaSdkFactory); -} - -/// A class which mocks [ImaSdkSettings]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockImaSdkSettings extends _i1.Mock implements _i2.ImaSdkSettings { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.ImaSdkSettings pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeImaSdkSettings_11( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeImaSdkSettings_11( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.ImaSdkSettings); -} - -/// A class which mocks [VideoAdPlayer]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockVideoAdPlayer extends _i1.Mock implements _i2.VideoAdPlayer { - @override - void Function( - _i2.VideoAdPlayer, - _i2.VideoAdPlayerCallback, - ) get addCallback => (super.noSuchMethod( - Invocation.getter(#addCallback), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.VideoAdPlayerCallback callback, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.VideoAdPlayerCallback callback, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.VideoAdPlayerCallback, - )); - - @override - void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - _i2.AdPodInfo, - ) get loadAd => (super.noSuchMethod( - Invocation.getter(#loadAd), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - _i2.AdPodInfo adPodInfo, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - _i2.AdPodInfo adPodInfo, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - _i2.AdPodInfo, - )); - - @override - void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - ) get pauseAd => (super.noSuchMethod( - Invocation.getter(#pauseAd), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - )); - - @override - void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - ) get playAd => (super.noSuchMethod( - Invocation.getter(#playAd), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - )); - - @override - void Function(_i2.VideoAdPlayer) get release => (super.noSuchMethod( - Invocation.getter(#release), - returnValue: (_i2.VideoAdPlayer pigeon_instance) {}, - returnValueForMissingStub: (_i2.VideoAdPlayer pigeon_instance) {}, - ) as void Function(_i2.VideoAdPlayer)); - - @override - void Function( - _i2.VideoAdPlayer, - _i2.VideoAdPlayerCallback, - ) get removeCallback => (super.noSuchMethod( - Invocation.getter(#removeCallback), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.VideoAdPlayerCallback callback, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.VideoAdPlayerCallback callback, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.VideoAdPlayerCallback, - )); - - @override - void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - ) get stopAd => (super.noSuchMethod( - Invocation.getter(#stopAd), - returnValue: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - returnValueForMissingStub: ( - _i2.VideoAdPlayer pigeon_instance, - _i2.AdMediaInfo adMediaInfo, - ) {}, - ) as void Function( - _i2.VideoAdPlayer, - _i2.AdMediaInfo, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i6.Future setVolume(int? value) => (super.noSuchMethod( - Invocation.method( - #setVolume, - [value], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future setAdProgress(_i2.VideoProgressUpdate? progress) => - (super.noSuchMethod( - Invocation.method( - #setAdProgress, - [progress], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i2.VideoAdPlayer pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeVideoAdPlayer_13( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeVideoAdPlayer_13( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.VideoAdPlayer); -} - -/// A class which mocks [VideoAdPlayerCallback]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockVideoAdPlayerCallback extends _i1.Mock - implements _i2.VideoAdPlayerCallback { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i6.Future onAdProgress( - _i2.AdMediaInfo? adMediaInfo, - _i2.VideoProgressUpdate? videoProgressUpdate, - ) => - (super.noSuchMethod( - Invocation.method( - #onAdProgress, - [ - adMediaInfo, - videoProgressUpdate, - ], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onBuffering(_i2.AdMediaInfo? adMediaInfo) => - (super.noSuchMethod( - Invocation.method( - #onBuffering, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onContentComplete() => (super.noSuchMethod( - Invocation.method( - #onContentComplete, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onEnded(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( - Invocation.method( - #onEnded, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onError(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( - Invocation.method( - #onError, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onLoaded(_i2.AdMediaInfo? adMediaInfo) => - (super.noSuchMethod( - Invocation.method( - #onLoaded, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onPause(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( - Invocation.method( - #onPause, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onPlay(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( - Invocation.method( - #onPlay, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onResume(_i2.AdMediaInfo? adMediaInfo) => - (super.noSuchMethod( - Invocation.method( - #onResume, - [adMediaInfo], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future onVolumeChanged( - _i2.AdMediaInfo? adMediaInfo, - int? percentage, - ) => - (super.noSuchMethod( - Invocation.method( - #onVolumeChanged, - [ - adMediaInfo, - percentage, - ], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i2.VideoAdPlayerCallback pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeVideoAdPlayerCallback_14( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeVideoAdPlayerCallback_14( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.VideoAdPlayerCallback); -} - -/// A class which mocks [VideoView]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockVideoView extends _i1.Mock implements _i2.VideoView { - @override - void Function( - _i2.VideoView, - _i2.MediaPlayer, - int, - int, - ) get onError => (super.noSuchMethod( - Invocation.getter(#onError), - returnValue: ( - _i2.VideoView pigeon_instance, - _i2.MediaPlayer player, - int what, - int extra, - ) {}, - returnValueForMissingStub: ( - _i2.VideoView pigeon_instance, - _i2.MediaPlayer player, - int what, - int extra, - ) {}, - ) as void Function( - _i2.VideoView, - _i2.MediaPlayer, - int, - int, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i6.Future setVideoUri(String? uri) => (super.noSuchMethod( - Invocation.method( - #setVideoUri, - [uri], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future getCurrentPosition() => (super.noSuchMethod( - Invocation.method( - #getCurrentPosition, - [], - ), - returnValue: _i6.Future.value(0), - returnValueForMissingStub: _i6.Future.value(0), - ) as _i6.Future); - - @override - _i2.VideoView pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeVideoView_15( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeVideoView_15( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.VideoView); -} - -/// A class which mocks [SurfaceAndroidViewController]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockSurfaceAndroidViewController extends _i1.Mock - implements _i4.SurfaceAndroidViewController { - @override - bool get requiresViewComposition => (super.noSuchMethod( - Invocation.getter(#requiresViewComposition), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); - - @override - int get viewId => (super.noSuchMethod( - Invocation.getter(#viewId), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); - - @override - bool get awaitingCreation => (super.noSuchMethod( - Invocation.getter(#awaitingCreation), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); - - @override - _i4.PointTransformer get pointTransformer => (super.noSuchMethod( - Invocation.getter(#pointTransformer), - returnValue: (_i3.Offset position) => _FakeOffset_16( - this, - Invocation.getter(#pointTransformer), - ), - returnValueForMissingStub: (_i3.Offset position) => _FakeOffset_16( - this, - Invocation.getter(#pointTransformer), - ), - ) as _i4.PointTransformer); - - @override - set pointTransformer(_i4.PointTransformer? transformer) => super.noSuchMethod( - Invocation.setter( - #pointTransformer, - transformer, - ), - returnValueForMissingStub: null, - ); - - @override - bool get isCreated => (super.noSuchMethod( - Invocation.getter(#isCreated), - returnValue: false, - returnValueForMissingStub: false, - ) as bool); - - @override - List<_i4.PlatformViewCreatedCallback> get createdCallbacks => - (super.noSuchMethod( - Invocation.getter(#createdCallbacks), - returnValue: <_i4.PlatformViewCreatedCallback>[], - returnValueForMissingStub: <_i4.PlatformViewCreatedCallback>[], - ) as List<_i4.PlatformViewCreatedCallback>); - - @override - _i6.Future setOffset(_i3.Offset? off) => (super.noSuchMethod( - Invocation.method( - #setOffset, - [off], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future create({ - _i3.Size? size, - _i3.Offset? position, - }) => - (super.noSuchMethod( - Invocation.method( - #create, - [], - { - #size: size, - #position: position, - }, - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future<_i3.Size> setSize(_i3.Size? size) => (super.noSuchMethod( - Invocation.method( - #setSize, - [size], - ), - returnValue: _i6.Future<_i3.Size>.value(_FakeSize_17( - this, - Invocation.method( - #setSize, - [size], - ), - )), - returnValueForMissingStub: _i6.Future<_i3.Size>.value(_FakeSize_17( - this, - Invocation.method( - #setSize, - [size], - ), - )), - ) as _i6.Future<_i3.Size>); - - @override - _i6.Future sendMotionEvent(_i4.AndroidMotionEvent? event) => - (super.noSuchMethod( - Invocation.method( - #sendMotionEvent, - [event], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - void addOnPlatformViewCreatedListener( - _i4.PlatformViewCreatedCallback? listener) => - super.noSuchMethod( - Invocation.method( - #addOnPlatformViewCreatedListener, - [listener], - ), - returnValueForMissingStub: null, - ); - - @override - void removeOnPlatformViewCreatedListener( - _i4.PlatformViewCreatedCallback? listener) => - super.noSuchMethod( - Invocation.method( - #removeOnPlatformViewCreatedListener, - [listener], - ), - returnValueForMissingStub: null, - ); - - @override - _i6.Future setLayoutDirection(_i3.TextDirection? layoutDirection) => - (super.noSuchMethod( - Invocation.method( - #setLayoutDirection, - [layoutDirection], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future dispatchPointerEvent(_i4.PointerEvent? event) => - (super.noSuchMethod( - Invocation.method( - #dispatchPointerEvent, - [event], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future clearFocus() => (super.noSuchMethod( - Invocation.method( - #clearFocus, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); - - @override - _i6.Future dispose() => (super.noSuchMethod( - Invocation.method( - #dispose, - [], - ), - returnValue: _i6.Future.value(), - returnValueForMissingStub: _i6.Future.value(), - ) as _i6.Future); -} - -/// A class which mocks [PlatformViewsServiceProxy]. -/// -/// See the documentation for Mockito's code generation for more information. -// ignore: must_be_immutable -class MockPlatformViewsServiceProxy extends _i1.Mock - implements _i7.PlatformViewsServiceProxy { - @override - _i4.ExpensiveAndroidViewController initExpensiveAndroidView({ - required int? id, - required String? viewType, - required _i3.TextDirection? layoutDirection, - dynamic creationParams, - _i4.MessageCodec? creationParamsCodec, - _i3.VoidCallback? onFocus, - }) => - (super.noSuchMethod( - Invocation.method( - #initExpensiveAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - returnValue: _FakeExpensiveAndroidViewController_18( - this, - Invocation.method( - #initExpensiveAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - ), - returnValueForMissingStub: _FakeExpensiveAndroidViewController_18( - this, - Invocation.method( - #initExpensiveAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - ), - ) as _i4.ExpensiveAndroidViewController); - - @override - _i4.SurfaceAndroidViewController initSurfaceAndroidView({ - required int? id, - required String? viewType, - required _i3.TextDirection? layoutDirection, - dynamic creationParams, - _i4.MessageCodec? creationParamsCodec, - _i3.VoidCallback? onFocus, - }) => - (super.noSuchMethod( - Invocation.method( - #initSurfaceAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - returnValue: _FakeSurfaceAndroidViewController_19( - this, - Invocation.method( - #initSurfaceAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - ), - returnValueForMissingStub: _FakeSurfaceAndroidViewController_19( - this, - Invocation.method( - #initSurfaceAndroidView, - [], - { - #id: id, - #viewType: viewType, - #layoutDirection: layoutDirection, - #creationParams: creationParams, - #creationParamsCodec: creationParamsCodec, - #onFocus: onFocus, - }, - ), - ), - ) as _i4.SurfaceAndroidViewController); -} diff --git a/packages/interactive_media_ads/test/android/ads_manager_test.mocks.dart b/packages/interactive_media_ads/test/android/ads_manager_test.mocks.dart deleted file mode 100644 index 5a70ecf2c71..00000000000 --- a/packages/interactive_media_ads/test/android/ads_manager_test.mocks.dart +++ /dev/null @@ -1,531 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in interactive_media_ads/test/android/ads_manager_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i4; - -import 'package:interactive_media_ads/src/android/interactive_media_ads.g.dart' - as _i2; -import 'package:mockito/mockito.dart' as _i1; -import 'package:mockito/src/dummies.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 _FakePigeonInstanceManager_0 extends _i1.SmartFake - implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdError_1 extends _i1.SmartFake implements _i2.AdError { - _FakeAdError_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdErrorEvent_2 extends _i1.SmartFake implements _i2.AdErrorEvent { - _FakeAdErrorEvent_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdErrorListener_3 extends _i1.SmartFake - implements _i2.AdErrorListener { - _FakeAdErrorListener_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdEvent_4 extends _i1.SmartFake implements _i2.AdEvent { - _FakeAdEvent_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdEventListener_5 extends _i1.SmartFake - implements _i2.AdEventListener { - _FakeAdEventListener_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeAdsManager_6 extends _i1.SmartFake implements _i2.AdsManager { - _FakeAdsManager_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [AdError]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdError extends _i1.Mock implements _i2.AdError { - @override - _i2.AdErrorCode get errorCode => (super.noSuchMethod( - Invocation.getter(#errorCode), - returnValue: _i2.AdErrorCode.adsPlayerWasNotProvided, - returnValueForMissingStub: _i2.AdErrorCode.adsPlayerWasNotProvided, - ) as _i2.AdErrorCode); - - @override - int get errorCodeNumber => (super.noSuchMethod( - Invocation.getter(#errorCodeNumber), - returnValue: 0, - returnValueForMissingStub: 0, - ) as int); - - @override - _i2.AdErrorType get errorType => (super.noSuchMethod( - Invocation.getter(#errorType), - returnValue: _i2.AdErrorType.load, - returnValueForMissingStub: _i2.AdErrorType.load, - ) as _i2.AdErrorType); - - @override - String get message => (super.noSuchMethod( - Invocation.getter(#message), - returnValue: _i3.dummyValue( - this, - Invocation.getter(#message), - ), - returnValueForMissingStub: _i3.dummyValue( - this, - Invocation.getter(#message), - ), - ) as String); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdError pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdError_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdError_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdError); -} - -/// A class which mocks [AdErrorEvent]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdErrorEvent extends _i1.Mock implements _i2.AdErrorEvent { - @override - _i2.AdError get error => (super.noSuchMethod( - Invocation.getter(#error), - returnValue: _FakeAdError_1( - this, - Invocation.getter(#error), - ), - returnValueForMissingStub: _FakeAdError_1( - this, - Invocation.getter(#error), - ), - ) as _i2.AdError); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdErrorEvent pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdErrorEvent_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdErrorEvent_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdErrorEvent); -} - -/// A class which mocks [AdErrorListener]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdErrorListener extends _i1.Mock implements _i2.AdErrorListener { - @override - void Function( - _i2.AdErrorListener, - _i2.AdErrorEvent, - ) get onAdError => (super.noSuchMethod( - Invocation.getter(#onAdError), - returnValue: ( - _i2.AdErrorListener pigeon_instance, - _i2.AdErrorEvent event, - ) {}, - returnValueForMissingStub: ( - _i2.AdErrorListener pigeon_instance, - _i2.AdErrorEvent event, - ) {}, - ) as void Function( - _i2.AdErrorListener, - _i2.AdErrorEvent, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdErrorListener pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdErrorListener_3( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdErrorListener_3( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdErrorListener); -} - -/// A class which mocks [AdEvent]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdEvent extends _i1.Mock implements _i2.AdEvent { - @override - _i2.AdEventType get type => (super.noSuchMethod( - Invocation.getter(#type), - returnValue: _i2.AdEventType.adBreakEnded, - returnValueForMissingStub: _i2.AdEventType.adBreakEnded, - ) as _i2.AdEventType); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdEvent pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdEvent_4( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdEvent_4( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdEvent); -} - -/// A class which mocks [AdEventListener]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdEventListener extends _i1.Mock implements _i2.AdEventListener { - @override - void Function( - _i2.AdEventListener, - _i2.AdEvent, - ) get onAdEvent => (super.noSuchMethod( - Invocation.getter(#onAdEvent), - returnValue: ( - _i2.AdEventListener pigeon_instance, - _i2.AdEvent event, - ) {}, - returnValueForMissingStub: ( - _i2.AdEventListener pigeon_instance, - _i2.AdEvent event, - ) {}, - ) as void Function( - _i2.AdEventListener, - _i2.AdEvent, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.AdEventListener pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdEventListener_5( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdEventListener_5( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdEventListener); -} - -/// A class which mocks [AdsManager]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockAdsManager extends _i1.Mock implements _i2.AdsManager { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i4.Future discardAdBreak() => (super.noSuchMethod( - Invocation.method( - #discardAdBreak, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future pause() => (super.noSuchMethod( - Invocation.method( - #pause, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future start() => (super.noSuchMethod( - Invocation.method( - #start, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future> getAdCuePoints() => (super.noSuchMethod( - Invocation.method( - #getAdCuePoints, - [], - ), - returnValue: _i4.Future>.value([]), - returnValueForMissingStub: _i4.Future>.value([]), - ) as _i4.Future>); - - @override - _i4.Future resume() => (super.noSuchMethod( - Invocation.method( - #resume, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future skip() => (super.noSuchMethod( - Invocation.method( - #skip, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i2.AdsManager pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeAdsManager_6( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeAdsManager_6( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.AdsManager); - - @override - _i4.Future addAdErrorListener(_i2.AdErrorListener? errorListener) => - (super.noSuchMethod( - Invocation.method( - #addAdErrorListener, - [errorListener], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future addAdEventListener(_i2.AdEventListener? adEventListener) => - (super.noSuchMethod( - Invocation.method( - #addAdEventListener, - [adEventListener], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future destroy() => (super.noSuchMethod( - Invocation.method( - #destroy, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); - - @override - _i4.Future init() => (super.noSuchMethod( - Invocation.method( - #init, - [], - ), - returnValue: _i4.Future.value(), - returnValueForMissingStub: _i4.Future.value(), - ) as _i4.Future); -} diff --git a/packages/interactive_media_ads/test/android/content_progress_provider_test.mocks.dart b/packages/interactive_media_ads/test/android/content_progress_provider_test.mocks.dart deleted file mode 100644 index 6d65d647503..00000000000 --- a/packages/interactive_media_ads/test/android/content_progress_provider_test.mocks.dart +++ /dev/null @@ -1,97 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in interactive_media_ads/test/android/content_progress_provider_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i3; - -import 'package:interactive_media_ads/src/android/interactive_media_ads.g.dart' - as _i2; -import 'package:mockito/mockito.dart' as _i1; - -// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake - implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeContentProgressProvider_1 extends _i1.SmartFake - implements _i2.ContentProgressProvider { - _FakeContentProgressProvider_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [ContentProgressProvider]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockContentProgressProvider extends _i1.Mock - implements _i2.ContentProgressProvider { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i3.Future setContentProgress(_i2.VideoProgressUpdate? update) => - (super.noSuchMethod( - Invocation.method( - #setContentProgress, - [update], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i2.ContentProgressProvider pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeContentProgressProvider_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeContentProgressProvider_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.ContentProgressProvider); -} diff --git a/packages/interactive_media_ads/test/ios/ad_display_container_test.mocks.dart b/packages/interactive_media_ads/test/ios/ad_display_container_test.mocks.dart deleted file mode 100644 index 6d07b9fcad2..00000000000 --- a/packages/interactive_media_ads/test/ios/ad_display_container_test.mocks.dart +++ /dev/null @@ -1,198 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in interactive_media_ads/test/ios/ad_display_container_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'package:interactive_media_ads/src/ios/interactive_media_ads.g.dart' - as _i2; -import 'package:mockito/mockito.dart' as _i1; - -// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake - implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeIMAAdDisplayContainer_1 extends _i1.SmartFake - implements _i2.IMAAdDisplayContainer { - _FakeIMAAdDisplayContainer_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeUIView_2 extends _i1.SmartFake implements _i2.UIView { - _FakeUIView_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeUIViewController_3 extends _i1.SmartFake - implements _i2.UIViewController { - _FakeUIViewController_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [IMAAdDisplayContainer]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockIMAAdDisplayContainer extends _i1.Mock - implements _i2.IMAAdDisplayContainer { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.IMAAdDisplayContainer pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeIMAAdDisplayContainer_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeIMAAdDisplayContainer_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.IMAAdDisplayContainer); -} - -/// A class which mocks [UIView]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockUIView extends _i1.Mock implements _i2.UIView { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.UIView pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeUIView_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeUIView_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.UIView); -} - -/// A class which mocks [UIViewController]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockUIViewController extends _i1.Mock implements _i2.UIViewController { - @override - _i2.UIView get view => (super.noSuchMethod( - Invocation.getter(#view), - returnValue: _FakeUIView_2( - this, - Invocation.getter(#view), - ), - returnValueForMissingStub: _FakeUIView_2( - this, - Invocation.getter(#view), - ), - ) as _i2.UIView); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.UIViewController pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeUIViewController_3( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeUIViewController_3( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.UIViewController); -} diff --git a/packages/interactive_media_ads/test/ios/ads_loader_test.mocks.dart b/packages/interactive_media_ads/test/ios/ads_loader_test.mocks.dart deleted file mode 100644 index 2be4284c1ce..00000000000 --- a/packages/interactive_media_ads/test/ios/ads_loader_test.mocks.dart +++ /dev/null @@ -1,563 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in interactive_media_ads/test/ios/ads_loader_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i3; - -import 'package:interactive_media_ads/src/ios/interactive_media_ads.g.dart' - as _i2; -import 'package:mockito/mockito.dart' as _i1; - -// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake - implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeIMAAdDisplayContainer_1 extends _i1.SmartFake - implements _i2.IMAAdDisplayContainer { - _FakeIMAAdDisplayContainer_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeIMAAdsLoader_2 extends _i1.SmartFake implements _i2.IMAAdsLoader { - _FakeIMAAdsLoader_2( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeIMAAdsLoaderDelegate_3 extends _i1.SmartFake - implements _i2.IMAAdsLoaderDelegate { - _FakeIMAAdsLoaderDelegate_3( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeIMAAdsManager_4 extends _i1.SmartFake implements _i2.IMAAdsManager { - _FakeIMAAdsManager_4( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeIMAAdsRequest_5 extends _i1.SmartFake implements _i2.IMAAdsRequest { - _FakeIMAAdsRequest_5( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeUIView_6 extends _i1.SmartFake implements _i2.UIView { - _FakeUIView_6( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeUIViewController_7 extends _i1.SmartFake - implements _i2.UIViewController { - _FakeUIViewController_7( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [IMAAdDisplayContainer]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockIMAAdDisplayContainer extends _i1.Mock - implements _i2.IMAAdDisplayContainer { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.IMAAdDisplayContainer pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeIMAAdDisplayContainer_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeIMAAdDisplayContainer_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.IMAAdDisplayContainer); -} - -/// A class which mocks [IMAAdsLoader]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockIMAAdsLoader extends _i1.Mock implements _i2.IMAAdsLoader { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i3.Future contentComplete() => (super.noSuchMethod( - Invocation.method( - #contentComplete, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future requestAds(_i2.IMAAdsRequest? request) => - (super.noSuchMethod( - Invocation.method( - #requestAds, - [request], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future setDelegate(_i2.IMAAdsLoaderDelegate? delegate) => - (super.noSuchMethod( - Invocation.method( - #setDelegate, - [delegate], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i2.IMAAdsLoader pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeIMAAdsLoader_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeIMAAdsLoader_2( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.IMAAdsLoader); -} - -/// A class which mocks [IMAAdsLoaderDelegate]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockIMAAdsLoaderDelegate extends _i1.Mock - implements _i2.IMAAdsLoaderDelegate { - @override - void Function( - _i2.IMAAdsLoaderDelegate, - _i2.IMAAdsLoader, - _i2.IMAAdsLoadedData, - ) get adLoaderLoadedWith => (super.noSuchMethod( - Invocation.getter(#adLoaderLoadedWith), - returnValue: ( - _i2.IMAAdsLoaderDelegate pigeon_instance, - _i2.IMAAdsLoader loader, - _i2.IMAAdsLoadedData adsLoadedData, - ) {}, - returnValueForMissingStub: ( - _i2.IMAAdsLoaderDelegate pigeon_instance, - _i2.IMAAdsLoader loader, - _i2.IMAAdsLoadedData adsLoadedData, - ) {}, - ) as void Function( - _i2.IMAAdsLoaderDelegate, - _i2.IMAAdsLoader, - _i2.IMAAdsLoadedData, - )); - - @override - void Function( - _i2.IMAAdsLoaderDelegate, - _i2.IMAAdsLoader, - _i2.IMAAdLoadingErrorData, - ) get adsLoaderFailedWithErrorData => (super.noSuchMethod( - Invocation.getter(#adsLoaderFailedWithErrorData), - returnValue: ( - _i2.IMAAdsLoaderDelegate pigeon_instance, - _i2.IMAAdsLoader loader, - _i2.IMAAdLoadingErrorData adErrorData, - ) {}, - returnValueForMissingStub: ( - _i2.IMAAdsLoaderDelegate pigeon_instance, - _i2.IMAAdsLoader loader, - _i2.IMAAdLoadingErrorData adErrorData, - ) {}, - ) as void Function( - _i2.IMAAdsLoaderDelegate, - _i2.IMAAdsLoader, - _i2.IMAAdLoadingErrorData, - )); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.IMAAdsLoaderDelegate pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeIMAAdsLoaderDelegate_3( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeIMAAdsLoaderDelegate_3( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.IMAAdsLoaderDelegate); -} - -/// A class which mocks [IMAAdsManager]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockIMAAdsManager extends _i1.Mock implements _i2.IMAAdsManager { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i3.Future setDelegate(_i2.IMAAdsManagerDelegate? delegate) => - (super.noSuchMethod( - Invocation.method( - #setDelegate, - [delegate], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future initialize( - _i2.IMAAdsRenderingSettings? adsRenderingSettings) => - (super.noSuchMethod( - Invocation.method( - #initialize, - [adsRenderingSettings], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future start() => (super.noSuchMethod( - Invocation.method( - #start, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future pause() => (super.noSuchMethod( - Invocation.method( - #pause, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future resume() => (super.noSuchMethod( - Invocation.method( - #resume, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future skip() => (super.noSuchMethod( - Invocation.method( - #skip, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future discardAdBreak() => (super.noSuchMethod( - Invocation.method( - #discardAdBreak, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future destroy() => (super.noSuchMethod( - Invocation.method( - #destroy, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i2.IMAAdsManager pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeIMAAdsManager_4( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeIMAAdsManager_4( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.IMAAdsManager); -} - -/// A class which mocks [IMAAdsRequest]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockIMAAdsRequest extends _i1.Mock implements _i2.IMAAdsRequest { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.IMAAdsRequest pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeIMAAdsRequest_5( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeIMAAdsRequest_5( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.IMAAdsRequest); -} - -/// A class which mocks [UIView]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockUIView extends _i1.Mock implements _i2.UIView { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.UIView pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeUIView_6( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeUIView_6( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.UIView); -} - -/// A class which mocks [UIViewController]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockUIViewController extends _i1.Mock implements _i2.UIViewController { - @override - _i2.UIView get view => (super.noSuchMethod( - Invocation.getter(#view), - returnValue: _FakeUIView_6( - this, - Invocation.getter(#view), - ), - returnValueForMissingStub: _FakeUIView_6( - this, - Invocation.getter(#view), - ), - ) as _i2.UIView); - - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i2.UIViewController pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeUIViewController_7( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeUIViewController_7( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.UIViewController); -} diff --git a/packages/interactive_media_ads/test/ios/ads_manager_test.mocks.dart b/packages/interactive_media_ads/test/ios/ads_manager_test.mocks.dart deleted file mode 100644 index 9e891eb299f..00000000000 --- a/packages/interactive_media_ads/test/ios/ads_manager_test.mocks.dart +++ /dev/null @@ -1,167 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in interactive_media_ads/test/ios/ads_manager_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i3; - -import 'package:interactive_media_ads/src/ios/interactive_media_ads.g.dart' - as _i2; -import 'package:mockito/mockito.dart' as _i1; - -// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake - implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeIMAAdsManager_1 extends _i1.SmartFake implements _i2.IMAAdsManager { - _FakeIMAAdsManager_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [IMAAdsManager]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockIMAAdsManager extends _i1.Mock implements _i2.IMAAdsManager { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i3.Future setDelegate(_i2.IMAAdsManagerDelegate? delegate) => - (super.noSuchMethod( - Invocation.method( - #setDelegate, - [delegate], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future initialize( - _i2.IMAAdsRenderingSettings? adsRenderingSettings) => - (super.noSuchMethod( - Invocation.method( - #initialize, - [adsRenderingSettings], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future start() => (super.noSuchMethod( - Invocation.method( - #start, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future pause() => (super.noSuchMethod( - Invocation.method( - #pause, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future resume() => (super.noSuchMethod( - Invocation.method( - #resume, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future skip() => (super.noSuchMethod( - Invocation.method( - #skip, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future discardAdBreak() => (super.noSuchMethod( - Invocation.method( - #discardAdBreak, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i3.Future destroy() => (super.noSuchMethod( - Invocation.method( - #destroy, - [], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i2.IMAAdsManager pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeIMAAdsManager_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeIMAAdsManager_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.IMAAdsManager); -} diff --git a/packages/interactive_media_ads/test/ios/content_progress_provider_test.mocks.dart b/packages/interactive_media_ads/test/ios/content_progress_provider_test.mocks.dart deleted file mode 100644 index a82fb3fbade..00000000000 --- a/packages/interactive_media_ads/test/ios/content_progress_provider_test.mocks.dart +++ /dev/null @@ -1,96 +0,0 @@ -// Mocks generated by Mockito 5.4.4 from annotations -// in interactive_media_ads/test/ios/content_progress_provider_test.dart. -// Do not manually edit this file. - -// ignore_for_file: no_leading_underscores_for_library_prefixes -import 'dart:async' as _i3; - -import 'package:interactive_media_ads/src/ios/interactive_media_ads.g.dart' - as _i2; -import 'package:mockito/mockito.dart' as _i1; - -// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake - implements _i2.PigeonInstanceManager { - _FakePigeonInstanceManager_0( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -class _FakeIMAContentPlayhead_1 extends _i1.SmartFake - implements _i2.IMAContentPlayhead { - _FakeIMAContentPlayhead_1( - Object parent, - Invocation parentInvocation, - ) : super( - parent, - parentInvocation, - ); -} - -/// A class which mocks [IMAContentPlayhead]. -/// -/// See the documentation for Mockito's code generation for more information. -class MockIMAContentPlayhead extends _i1.Mock - implements _i2.IMAContentPlayhead { - @override - _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( - Invocation.getter(#pigeon_instanceManager), - returnValue: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - returnValueForMissingStub: _FakePigeonInstanceManager_0( - this, - Invocation.getter(#pigeon_instanceManager), - ), - ) as _i2.PigeonInstanceManager); - - @override - _i3.Future setCurrentTime(double? timeInterval) => (super.noSuchMethod( - Invocation.method( - #setCurrentTime, - [timeInterval], - ), - returnValue: _i3.Future.value(), - returnValueForMissingStub: _i3.Future.value(), - ) as _i3.Future); - - @override - _i2.IMAContentPlayhead pigeon_copy() => (super.noSuchMethod( - Invocation.method( - #pigeon_copy, - [], - ), - returnValue: _FakeIMAContentPlayhead_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - returnValueForMissingStub: _FakeIMAContentPlayhead_1( - this, - Invocation.method( - #pigeon_copy, - [], - ), - ), - ) as _i2.IMAContentPlayhead); -} From b6cc7d76e6cd63d9ea94bcb07d2965c70b8f07de Mon Sep 17 00:00:00 2001 From: Maurice Parrish <10687576+bparrishMines@users.noreply.github.com> Date: Fri, 27 Sep 2024 15:39:50 -0400 Subject: [PATCH 4/4] add mocks back --- .../ad_display_container_test.mocks.dart | 1266 ++++++++++++ .../test/android/ads_loader_test.mocks.dart | 1801 +++++++++++++++++ .../test/android/ads_manager_test.mocks.dart | 531 +++++ .../content_progress_provider_test.mocks.dart | 97 + .../ios/ad_display_container_test.mocks.dart | 220 ++ .../test/ios/ads_loader_test.mocks.dart | 585 ++++++ .../test/ios/ads_manager_test.mocks.dart | 167 ++ .../content_progress_provider_test.mocks.dart | 96 + 8 files changed, 4763 insertions(+) create mode 100644 packages/interactive_media_ads/test/android/ad_display_container_test.mocks.dart create mode 100644 packages/interactive_media_ads/test/android/ads_loader_test.mocks.dart create mode 100644 packages/interactive_media_ads/test/android/ads_manager_test.mocks.dart create mode 100644 packages/interactive_media_ads/test/android/content_progress_provider_test.mocks.dart create mode 100644 packages/interactive_media_ads/test/ios/ad_display_container_test.mocks.dart create mode 100644 packages/interactive_media_ads/test/ios/ads_loader_test.mocks.dart create mode 100644 packages/interactive_media_ads/test/ios/ads_manager_test.mocks.dart create mode 100644 packages/interactive_media_ads/test/ios/content_progress_provider_test.mocks.dart diff --git a/packages/interactive_media_ads/test/android/ad_display_container_test.mocks.dart b/packages/interactive_media_ads/test/android/ad_display_container_test.mocks.dart new file mode 100644 index 00000000000..ef3f12b50b0 --- /dev/null +++ b/packages/interactive_media_ads/test/android/ad_display_container_test.mocks.dart @@ -0,0 +1,1266 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in interactive_media_ads/test/android/ad_display_container_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i6; +import 'dart:ui' as _i3; + +import 'package:flutter/services.dart' as _i4; +import 'package:interactive_media_ads/src/android/interactive_media_ads.g.dart' + as _i2; +import 'package:interactive_media_ads/src/android/platform_views_service_proxy.dart' + as _i7; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i5; + +// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake + implements _i2.PigeonInstanceManager { + _FakePigeonInstanceManager_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdDisplayContainer_1 extends _i1.SmartFake + implements _i2.AdDisplayContainer { + _FakeAdDisplayContainer_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdMediaInfo_2 extends _i1.SmartFake implements _i2.AdMediaInfo { + _FakeAdMediaInfo_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdPodInfo_3 extends _i1.SmartFake implements _i2.AdPodInfo { + _FakeAdPodInfo_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeFrameLayout_4 extends _i1.SmartFake implements _i2.FrameLayout { + _FakeFrameLayout_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeMediaPlayer_5 extends _i1.SmartFake implements _i2.MediaPlayer { + _FakeMediaPlayer_5( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeVideoAdPlayer_6 extends _i1.SmartFake implements _i2.VideoAdPlayer { + _FakeVideoAdPlayer_6( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeVideoAdPlayerCallback_7 extends _i1.SmartFake + implements _i2.VideoAdPlayerCallback { + _FakeVideoAdPlayerCallback_7( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeVideoProgressUpdate_8 extends _i1.SmartFake + implements _i2.VideoProgressUpdate { + _FakeVideoProgressUpdate_8( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeVideoView_9 extends _i1.SmartFake implements _i2.VideoView { + _FakeVideoView_9( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeOffset_10 extends _i1.SmartFake implements _i3.Offset { + _FakeOffset_10( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeSize_11 extends _i1.SmartFake implements _i3.Size { + _FakeSize_11( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeExpensiveAndroidViewController_12 extends _i1.SmartFake + implements _i4.ExpensiveAndroidViewController { + _FakeExpensiveAndroidViewController_12( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeSurfaceAndroidViewController_13 extends _i1.SmartFake + implements _i4.SurfaceAndroidViewController { + _FakeSurfaceAndroidViewController_13( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [AdDisplayContainer]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdDisplayContainer extends _i1.Mock + implements _i2.AdDisplayContainer { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdDisplayContainer pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdDisplayContainer_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdDisplayContainer_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdDisplayContainer); +} + +/// A class which mocks [AdMediaInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdMediaInfo extends _i1.Mock implements _i2.AdMediaInfo { + @override + String get url => (super.noSuchMethod( + Invocation.getter(#url), + returnValue: _i5.dummyValue( + this, + Invocation.getter(#url), + ), + returnValueForMissingStub: _i5.dummyValue( + this, + Invocation.getter(#url), + ), + ) as String); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdMediaInfo pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdMediaInfo_2( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdMediaInfo_2( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdMediaInfo); +} + +/// A class which mocks [AdPodInfo]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdPodInfo extends _i1.Mock implements _i2.AdPodInfo { + @override + int get adPosition => (super.noSuchMethod( + Invocation.getter(#adPosition), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); + + @override + double get maxDuration => (super.noSuchMethod( + Invocation.getter(#maxDuration), + returnValue: 0.0, + returnValueForMissingStub: 0.0, + ) as double); + + @override + int get podIndex => (super.noSuchMethod( + Invocation.getter(#podIndex), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); + + @override + double get timeOffset => (super.noSuchMethod( + Invocation.getter(#timeOffset), + returnValue: 0.0, + returnValueForMissingStub: 0.0, + ) as double); + + @override + int get totalAds => (super.noSuchMethod( + Invocation.getter(#totalAds), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); + + @override + bool get isBumper => (super.noSuchMethod( + Invocation.getter(#isBumper), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdPodInfo pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdPodInfo_3( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdPodInfo_3( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdPodInfo); +} + +/// A class which mocks [FrameLayout]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockFrameLayout extends _i1.Mock implements _i2.FrameLayout { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.FrameLayout pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeFrameLayout_4( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeFrameLayout_4( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.FrameLayout); + + @override + _i6.Future addView(_i2.View? view) => (super.noSuchMethod( + Invocation.method( + #addView, + [view], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); +} + +/// A class which mocks [MediaPlayer]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockMediaPlayer extends _i1.Mock implements _i2.MediaPlayer { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i6.Future getDuration() => (super.noSuchMethod( + Invocation.method( + #getDuration, + [], + ), + returnValue: _i6.Future.value(0), + returnValueForMissingStub: _i6.Future.value(0), + ) as _i6.Future); + + @override + _i6.Future seekTo(int? mSec) => (super.noSuchMethod( + Invocation.method( + #seekTo, + [mSec], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future start() => (super.noSuchMethod( + Invocation.method( + #start, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future pause() => (super.noSuchMethod( + Invocation.method( + #pause, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future stop() => (super.noSuchMethod( + Invocation.method( + #stop, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i2.MediaPlayer pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeMediaPlayer_5( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeMediaPlayer_5( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.MediaPlayer); +} + +/// A class which mocks [VideoAdPlayer]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockVideoAdPlayer extends _i1.Mock implements _i2.VideoAdPlayer { + @override + void Function( + _i2.VideoAdPlayer, + _i2.VideoAdPlayerCallback, + ) get addCallback => (super.noSuchMethod( + Invocation.getter(#addCallback), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.VideoAdPlayerCallback callback, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.VideoAdPlayerCallback callback, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.VideoAdPlayerCallback, + )); + + @override + void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + _i2.AdPodInfo, + ) get loadAd => (super.noSuchMethod( + Invocation.getter(#loadAd), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + _i2.AdPodInfo adPodInfo, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + _i2.AdPodInfo adPodInfo, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + _i2.AdPodInfo, + )); + + @override + void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + ) get pauseAd => (super.noSuchMethod( + Invocation.getter(#pauseAd), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + )); + + @override + void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + ) get playAd => (super.noSuchMethod( + Invocation.getter(#playAd), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + )); + + @override + void Function(_i2.VideoAdPlayer) get release => (super.noSuchMethod( + Invocation.getter(#release), + returnValue: (_i2.VideoAdPlayer pigeon_instance) {}, + returnValueForMissingStub: (_i2.VideoAdPlayer pigeon_instance) {}, + ) as void Function(_i2.VideoAdPlayer)); + + @override + void Function( + _i2.VideoAdPlayer, + _i2.VideoAdPlayerCallback, + ) get removeCallback => (super.noSuchMethod( + Invocation.getter(#removeCallback), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.VideoAdPlayerCallback callback, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.VideoAdPlayerCallback callback, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.VideoAdPlayerCallback, + )); + + @override + void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + ) get stopAd => (super.noSuchMethod( + Invocation.getter(#stopAd), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + )); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i6.Future setVolume(int? value) => (super.noSuchMethod( + Invocation.method( + #setVolume, + [value], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future setAdProgress(_i2.VideoProgressUpdate? progress) => + (super.noSuchMethod( + Invocation.method( + #setAdProgress, + [progress], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i2.VideoAdPlayer pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeVideoAdPlayer_6( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeVideoAdPlayer_6( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.VideoAdPlayer); +} + +/// A class which mocks [VideoAdPlayerCallback]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockVideoAdPlayerCallback extends _i1.Mock + implements _i2.VideoAdPlayerCallback { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i6.Future onAdProgress( + _i2.AdMediaInfo? adMediaInfo, + _i2.VideoProgressUpdate? videoProgressUpdate, + ) => + (super.noSuchMethod( + Invocation.method( + #onAdProgress, + [ + adMediaInfo, + videoProgressUpdate, + ], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onBuffering(_i2.AdMediaInfo? adMediaInfo) => + (super.noSuchMethod( + Invocation.method( + #onBuffering, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onContentComplete() => (super.noSuchMethod( + Invocation.method( + #onContentComplete, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onEnded(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( + Invocation.method( + #onEnded, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onError(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( + Invocation.method( + #onError, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onLoaded(_i2.AdMediaInfo? adMediaInfo) => + (super.noSuchMethod( + Invocation.method( + #onLoaded, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onPause(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( + Invocation.method( + #onPause, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onPlay(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( + Invocation.method( + #onPlay, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onResume(_i2.AdMediaInfo? adMediaInfo) => + (super.noSuchMethod( + Invocation.method( + #onResume, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onVolumeChanged( + _i2.AdMediaInfo? adMediaInfo, + int? percentage, + ) => + (super.noSuchMethod( + Invocation.method( + #onVolumeChanged, + [ + adMediaInfo, + percentage, + ], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i2.VideoAdPlayerCallback pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeVideoAdPlayerCallback_7( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeVideoAdPlayerCallback_7( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.VideoAdPlayerCallback); +} + +/// A class which mocks [VideoProgressUpdate]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockVideoProgressUpdate extends _i1.Mock + implements _i2.VideoProgressUpdate { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.VideoProgressUpdate pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeVideoProgressUpdate_8( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeVideoProgressUpdate_8( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.VideoProgressUpdate); +} + +/// A class which mocks [VideoView]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockVideoView extends _i1.Mock implements _i2.VideoView { + @override + void Function( + _i2.VideoView, + _i2.MediaPlayer, + int, + int, + ) get onError => (super.noSuchMethod( + Invocation.getter(#onError), + returnValue: ( + _i2.VideoView pigeon_instance, + _i2.MediaPlayer player, + int what, + int extra, + ) {}, + returnValueForMissingStub: ( + _i2.VideoView pigeon_instance, + _i2.MediaPlayer player, + int what, + int extra, + ) {}, + ) as void Function( + _i2.VideoView, + _i2.MediaPlayer, + int, + int, + )); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i6.Future setVideoUri(String? uri) => (super.noSuchMethod( + Invocation.method( + #setVideoUri, + [uri], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future getCurrentPosition() => (super.noSuchMethod( + Invocation.method( + #getCurrentPosition, + [], + ), + returnValue: _i6.Future.value(0), + returnValueForMissingStub: _i6.Future.value(0), + ) as _i6.Future); + + @override + _i2.VideoView pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeVideoView_9( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeVideoView_9( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.VideoView); +} + +/// A class which mocks [SurfaceAndroidViewController]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockSurfaceAndroidViewController extends _i1.Mock + implements _i4.SurfaceAndroidViewController { + @override + bool get requiresViewComposition => (super.noSuchMethod( + Invocation.getter(#requiresViewComposition), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + + @override + int get viewId => (super.noSuchMethod( + Invocation.getter(#viewId), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); + + @override + bool get awaitingCreation => (super.noSuchMethod( + Invocation.getter(#awaitingCreation), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + + @override + _i4.PointTransformer get pointTransformer => (super.noSuchMethod( + Invocation.getter(#pointTransformer), + returnValue: (_i3.Offset position) => _FakeOffset_10( + this, + Invocation.getter(#pointTransformer), + ), + returnValueForMissingStub: (_i3.Offset position) => _FakeOffset_10( + this, + Invocation.getter(#pointTransformer), + ), + ) as _i4.PointTransformer); + + @override + set pointTransformer(_i4.PointTransformer? transformer) => super.noSuchMethod( + Invocation.setter( + #pointTransformer, + transformer, + ), + returnValueForMissingStub: null, + ); + + @override + bool get isCreated => (super.noSuchMethod( + Invocation.getter(#isCreated), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + + @override + List<_i4.PlatformViewCreatedCallback> get createdCallbacks => + (super.noSuchMethod( + Invocation.getter(#createdCallbacks), + returnValue: <_i4.PlatformViewCreatedCallback>[], + returnValueForMissingStub: <_i4.PlatformViewCreatedCallback>[], + ) as List<_i4.PlatformViewCreatedCallback>); + + @override + _i6.Future setOffset(_i3.Offset? off) => (super.noSuchMethod( + Invocation.method( + #setOffset, + [off], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future create({ + _i3.Size? size, + _i3.Offset? position, + }) => + (super.noSuchMethod( + Invocation.method( + #create, + [], + { + #size: size, + #position: position, + }, + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future<_i3.Size> setSize(_i3.Size? size) => (super.noSuchMethod( + Invocation.method( + #setSize, + [size], + ), + returnValue: _i6.Future<_i3.Size>.value(_FakeSize_11( + this, + Invocation.method( + #setSize, + [size], + ), + )), + returnValueForMissingStub: _i6.Future<_i3.Size>.value(_FakeSize_11( + this, + Invocation.method( + #setSize, + [size], + ), + )), + ) as _i6.Future<_i3.Size>); + + @override + _i6.Future sendMotionEvent(_i4.AndroidMotionEvent? event) => + (super.noSuchMethod( + Invocation.method( + #sendMotionEvent, + [event], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + void addOnPlatformViewCreatedListener( + _i4.PlatformViewCreatedCallback? listener) => + super.noSuchMethod( + Invocation.method( + #addOnPlatformViewCreatedListener, + [listener], + ), + returnValueForMissingStub: null, + ); + + @override + void removeOnPlatformViewCreatedListener( + _i4.PlatformViewCreatedCallback? listener) => + super.noSuchMethod( + Invocation.method( + #removeOnPlatformViewCreatedListener, + [listener], + ), + returnValueForMissingStub: null, + ); + + @override + _i6.Future setLayoutDirection(_i3.TextDirection? layoutDirection) => + (super.noSuchMethod( + Invocation.method( + #setLayoutDirection, + [layoutDirection], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future dispatchPointerEvent(_i4.PointerEvent? event) => + (super.noSuchMethod( + Invocation.method( + #dispatchPointerEvent, + [event], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future clearFocus() => (super.noSuchMethod( + Invocation.method( + #clearFocus, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future dispose() => (super.noSuchMethod( + Invocation.method( + #dispose, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); +} + +/// A class which mocks [PlatformViewsServiceProxy]. +/// +/// See the documentation for Mockito's code generation for more information. +// ignore: must_be_immutable +class MockPlatformViewsServiceProxy extends _i1.Mock + implements _i7.PlatformViewsServiceProxy { + @override + _i4.ExpensiveAndroidViewController initExpensiveAndroidView({ + required int? id, + required String? viewType, + required _i3.TextDirection? layoutDirection, + dynamic creationParams, + _i4.MessageCodec? creationParamsCodec, + _i3.VoidCallback? onFocus, + }) => + (super.noSuchMethod( + Invocation.method( + #initExpensiveAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + returnValue: _FakeExpensiveAndroidViewController_12( + this, + Invocation.method( + #initExpensiveAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + ), + returnValueForMissingStub: _FakeExpensiveAndroidViewController_12( + this, + Invocation.method( + #initExpensiveAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + ), + ) as _i4.ExpensiveAndroidViewController); + + @override + _i4.SurfaceAndroidViewController initSurfaceAndroidView({ + required int? id, + required String? viewType, + required _i3.TextDirection? layoutDirection, + dynamic creationParams, + _i4.MessageCodec? creationParamsCodec, + _i3.VoidCallback? onFocus, + }) => + (super.noSuchMethod( + Invocation.method( + #initSurfaceAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + returnValue: _FakeSurfaceAndroidViewController_13( + this, + Invocation.method( + #initSurfaceAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + ), + returnValueForMissingStub: _FakeSurfaceAndroidViewController_13( + this, + Invocation.method( + #initSurfaceAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + ), + ) as _i4.SurfaceAndroidViewController); +} diff --git a/packages/interactive_media_ads/test/android/ads_loader_test.mocks.dart b/packages/interactive_media_ads/test/android/ads_loader_test.mocks.dart new file mode 100644 index 00000000000..48b88129a6a --- /dev/null +++ b/packages/interactive_media_ads/test/android/ads_loader_test.mocks.dart @@ -0,0 +1,1801 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in interactive_media_ads/test/android/ads_loader_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i6; +import 'dart:ui' as _i3; + +import 'package:flutter/services.dart' as _i4; +import 'package:interactive_media_ads/src/android/interactive_media_ads.g.dart' + as _i2; +import 'package:interactive_media_ads/src/android/platform_views_service_proxy.dart' + as _i7; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.dart' as _i5; + +// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake + implements _i2.PigeonInstanceManager { + _FakePigeonInstanceManager_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdDisplayContainer_1 extends _i1.SmartFake + implements _i2.AdDisplayContainer { + _FakeAdDisplayContainer_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdError_2 extends _i1.SmartFake implements _i2.AdError { + _FakeAdError_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdErrorEvent_3 extends _i1.SmartFake implements _i2.AdErrorEvent { + _FakeAdErrorEvent_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdErrorListener_4 extends _i1.SmartFake + implements _i2.AdErrorListener { + _FakeAdErrorListener_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdsLoadedListener_5 extends _i1.SmartFake + implements _i2.AdsLoadedListener { + _FakeAdsLoadedListener_5( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdsManager_6 extends _i1.SmartFake implements _i2.AdsManager { + _FakeAdsManager_6( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdsManagerLoadedEvent_7 extends _i1.SmartFake + implements _i2.AdsManagerLoadedEvent { + _FakeAdsManagerLoadedEvent_7( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdsLoader_8 extends _i1.SmartFake implements _i2.AdsLoader { + _FakeAdsLoader_8( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdsRequest_9 extends _i1.SmartFake implements _i2.AdsRequest { + _FakeAdsRequest_9( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeFrameLayout_10 extends _i1.SmartFake implements _i2.FrameLayout { + _FakeFrameLayout_10( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeImaSdkSettings_11 extends _i1.SmartFake + implements _i2.ImaSdkSettings { + _FakeImaSdkSettings_11( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeImaSdkFactory_12 extends _i1.SmartFake implements _i2.ImaSdkFactory { + _FakeImaSdkFactory_12( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeVideoAdPlayer_13 extends _i1.SmartFake implements _i2.VideoAdPlayer { + _FakeVideoAdPlayer_13( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeVideoAdPlayerCallback_14 extends _i1.SmartFake + implements _i2.VideoAdPlayerCallback { + _FakeVideoAdPlayerCallback_14( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeVideoView_15 extends _i1.SmartFake implements _i2.VideoView { + _FakeVideoView_15( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeOffset_16 extends _i1.SmartFake implements _i3.Offset { + _FakeOffset_16( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeSize_17 extends _i1.SmartFake implements _i3.Size { + _FakeSize_17( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeExpensiveAndroidViewController_18 extends _i1.SmartFake + implements _i4.ExpensiveAndroidViewController { + _FakeExpensiveAndroidViewController_18( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeSurfaceAndroidViewController_19 extends _i1.SmartFake + implements _i4.SurfaceAndroidViewController { + _FakeSurfaceAndroidViewController_19( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [AdDisplayContainer]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdDisplayContainer extends _i1.Mock + implements _i2.AdDisplayContainer { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdDisplayContainer pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdDisplayContainer_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdDisplayContainer_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdDisplayContainer); +} + +/// A class which mocks [AdError]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdError extends _i1.Mock implements _i2.AdError { + @override + _i2.AdErrorCode get errorCode => (super.noSuchMethod( + Invocation.getter(#errorCode), + returnValue: _i2.AdErrorCode.adsPlayerWasNotProvided, + returnValueForMissingStub: _i2.AdErrorCode.adsPlayerWasNotProvided, + ) as _i2.AdErrorCode); + + @override + int get errorCodeNumber => (super.noSuchMethod( + Invocation.getter(#errorCodeNumber), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); + + @override + _i2.AdErrorType get errorType => (super.noSuchMethod( + Invocation.getter(#errorType), + returnValue: _i2.AdErrorType.load, + returnValueForMissingStub: _i2.AdErrorType.load, + ) as _i2.AdErrorType); + + @override + String get message => (super.noSuchMethod( + Invocation.getter(#message), + returnValue: _i5.dummyValue( + this, + Invocation.getter(#message), + ), + returnValueForMissingStub: _i5.dummyValue( + this, + Invocation.getter(#message), + ), + ) as String); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdError pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdError_2( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdError_2( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdError); +} + +/// A class which mocks [AdErrorEvent]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdErrorEvent extends _i1.Mock implements _i2.AdErrorEvent { + @override + _i2.AdError get error => (super.noSuchMethod( + Invocation.getter(#error), + returnValue: _FakeAdError_2( + this, + Invocation.getter(#error), + ), + returnValueForMissingStub: _FakeAdError_2( + this, + Invocation.getter(#error), + ), + ) as _i2.AdError); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdErrorEvent pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdErrorEvent_3( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdErrorEvent_3( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdErrorEvent); +} + +/// A class which mocks [AdErrorListener]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdErrorListener extends _i1.Mock implements _i2.AdErrorListener { + @override + void Function( + _i2.AdErrorListener, + _i2.AdErrorEvent, + ) get onAdError => (super.noSuchMethod( + Invocation.getter(#onAdError), + returnValue: ( + _i2.AdErrorListener pigeon_instance, + _i2.AdErrorEvent event, + ) {}, + returnValueForMissingStub: ( + _i2.AdErrorListener pigeon_instance, + _i2.AdErrorEvent event, + ) {}, + ) as void Function( + _i2.AdErrorListener, + _i2.AdErrorEvent, + )); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdErrorListener pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdErrorListener_4( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdErrorListener_4( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdErrorListener); +} + +/// A class which mocks [AdsLoadedListener]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdsLoadedListener extends _i1.Mock implements _i2.AdsLoadedListener { + @override + void Function( + _i2.AdsLoadedListener, + _i2.AdsManagerLoadedEvent, + ) get onAdsManagerLoaded => (super.noSuchMethod( + Invocation.getter(#onAdsManagerLoaded), + returnValue: ( + _i2.AdsLoadedListener pigeon_instance, + _i2.AdsManagerLoadedEvent event, + ) {}, + returnValueForMissingStub: ( + _i2.AdsLoadedListener pigeon_instance, + _i2.AdsManagerLoadedEvent event, + ) {}, + ) as void Function( + _i2.AdsLoadedListener, + _i2.AdsManagerLoadedEvent, + )); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdsLoadedListener pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdsLoadedListener_5( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdsLoadedListener_5( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdsLoadedListener); +} + +/// A class which mocks [AdsManager]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdsManager extends _i1.Mock implements _i2.AdsManager { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i6.Future discardAdBreak() => (super.noSuchMethod( + Invocation.method( + #discardAdBreak, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future pause() => (super.noSuchMethod( + Invocation.method( + #pause, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future start() => (super.noSuchMethod( + Invocation.method( + #start, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future> getAdCuePoints() => (super.noSuchMethod( + Invocation.method( + #getAdCuePoints, + [], + ), + returnValue: _i6.Future>.value([]), + returnValueForMissingStub: _i6.Future>.value([]), + ) as _i6.Future>); + + @override + _i6.Future resume() => (super.noSuchMethod( + Invocation.method( + #resume, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future skip() => (super.noSuchMethod( + Invocation.method( + #skip, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i2.AdsManager pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdsManager_6( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdsManager_6( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdsManager); + + @override + _i6.Future addAdErrorListener(_i2.AdErrorListener? errorListener) => + (super.noSuchMethod( + Invocation.method( + #addAdErrorListener, + [errorListener], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future addAdEventListener(_i2.AdEventListener? adEventListener) => + (super.noSuchMethod( + Invocation.method( + #addAdEventListener, + [adEventListener], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future destroy() => (super.noSuchMethod( + Invocation.method( + #destroy, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future init() => (super.noSuchMethod( + Invocation.method( + #init, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); +} + +/// A class which mocks [AdsManagerLoadedEvent]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdsManagerLoadedEvent extends _i1.Mock + implements _i2.AdsManagerLoadedEvent { + @override + _i2.AdsManager get manager => (super.noSuchMethod( + Invocation.getter(#manager), + returnValue: _FakeAdsManager_6( + this, + Invocation.getter(#manager), + ), + returnValueForMissingStub: _FakeAdsManager_6( + this, + Invocation.getter(#manager), + ), + ) as _i2.AdsManager); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdsManagerLoadedEvent pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdsManagerLoadedEvent_7( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdsManagerLoadedEvent_7( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdsManagerLoadedEvent); +} + +/// A class which mocks [AdsLoader]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdsLoader extends _i1.Mock implements _i2.AdsLoader { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i6.Future addAdErrorListener(_i2.AdErrorListener? listener) => + (super.noSuchMethod( + Invocation.method( + #addAdErrorListener, + [listener], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future addAdsLoadedListener(_i2.AdsLoadedListener? listener) => + (super.noSuchMethod( + Invocation.method( + #addAdsLoadedListener, + [listener], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future requestAds(_i2.AdsRequest? request) => (super.noSuchMethod( + Invocation.method( + #requestAds, + [request], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i2.AdsLoader pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdsLoader_8( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdsLoader_8( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdsLoader); +} + +/// A class which mocks [AdsRequest]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdsRequest extends _i1.Mock implements _i2.AdsRequest { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i6.Future setAdTagUrl(String? adTagUrl) => (super.noSuchMethod( + Invocation.method( + #setAdTagUrl, + [adTagUrl], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future setContentProgressProvider( + _i2.ContentProgressProvider? provider) => + (super.noSuchMethod( + Invocation.method( + #setContentProgressProvider, + [provider], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i2.AdsRequest pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdsRequest_9( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdsRequest_9( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdsRequest); +} + +/// A class which mocks [FrameLayout]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockFrameLayout extends _i1.Mock implements _i2.FrameLayout { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.FrameLayout pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeFrameLayout_10( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeFrameLayout_10( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.FrameLayout); + + @override + _i6.Future addView(_i2.View? view) => (super.noSuchMethod( + Invocation.method( + #addView, + [view], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); +} + +/// A class which mocks [ImaSdkFactory]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockImaSdkFactory extends _i1.Mock implements _i2.ImaSdkFactory { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i6.Future<_i2.ImaSdkSettings> createImaSdkSettings() => (super.noSuchMethod( + Invocation.method( + #createImaSdkSettings, + [], + ), + returnValue: + _i6.Future<_i2.ImaSdkSettings>.value(_FakeImaSdkSettings_11( + this, + Invocation.method( + #createImaSdkSettings, + [], + ), + )), + returnValueForMissingStub: + _i6.Future<_i2.ImaSdkSettings>.value(_FakeImaSdkSettings_11( + this, + Invocation.method( + #createImaSdkSettings, + [], + ), + )), + ) as _i6.Future<_i2.ImaSdkSettings>); + + @override + _i6.Future<_i2.AdsLoader> createAdsLoader( + _i2.ImaSdkSettings? settings, + _i2.AdDisplayContainer? container, + ) => + (super.noSuchMethod( + Invocation.method( + #createAdsLoader, + [ + settings, + container, + ], + ), + returnValue: _i6.Future<_i2.AdsLoader>.value(_FakeAdsLoader_8( + this, + Invocation.method( + #createAdsLoader, + [ + settings, + container, + ], + ), + )), + returnValueForMissingStub: + _i6.Future<_i2.AdsLoader>.value(_FakeAdsLoader_8( + this, + Invocation.method( + #createAdsLoader, + [ + settings, + container, + ], + ), + )), + ) as _i6.Future<_i2.AdsLoader>); + + @override + _i6.Future<_i2.AdsRequest> createAdsRequest() => (super.noSuchMethod( + Invocation.method( + #createAdsRequest, + [], + ), + returnValue: _i6.Future<_i2.AdsRequest>.value(_FakeAdsRequest_9( + this, + Invocation.method( + #createAdsRequest, + [], + ), + )), + returnValueForMissingStub: + _i6.Future<_i2.AdsRequest>.value(_FakeAdsRequest_9( + this, + Invocation.method( + #createAdsRequest, + [], + ), + )), + ) as _i6.Future<_i2.AdsRequest>); + + @override + _i2.ImaSdkFactory pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeImaSdkFactory_12( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeImaSdkFactory_12( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.ImaSdkFactory); +} + +/// A class which mocks [ImaSdkSettings]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockImaSdkSettings extends _i1.Mock implements _i2.ImaSdkSettings { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.ImaSdkSettings pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeImaSdkSettings_11( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeImaSdkSettings_11( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.ImaSdkSettings); +} + +/// A class which mocks [VideoAdPlayer]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockVideoAdPlayer extends _i1.Mock implements _i2.VideoAdPlayer { + @override + void Function( + _i2.VideoAdPlayer, + _i2.VideoAdPlayerCallback, + ) get addCallback => (super.noSuchMethod( + Invocation.getter(#addCallback), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.VideoAdPlayerCallback callback, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.VideoAdPlayerCallback callback, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.VideoAdPlayerCallback, + )); + + @override + void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + _i2.AdPodInfo, + ) get loadAd => (super.noSuchMethod( + Invocation.getter(#loadAd), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + _i2.AdPodInfo adPodInfo, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + _i2.AdPodInfo adPodInfo, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + _i2.AdPodInfo, + )); + + @override + void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + ) get pauseAd => (super.noSuchMethod( + Invocation.getter(#pauseAd), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + )); + + @override + void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + ) get playAd => (super.noSuchMethod( + Invocation.getter(#playAd), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + )); + + @override + void Function(_i2.VideoAdPlayer) get release => (super.noSuchMethod( + Invocation.getter(#release), + returnValue: (_i2.VideoAdPlayer pigeon_instance) {}, + returnValueForMissingStub: (_i2.VideoAdPlayer pigeon_instance) {}, + ) as void Function(_i2.VideoAdPlayer)); + + @override + void Function( + _i2.VideoAdPlayer, + _i2.VideoAdPlayerCallback, + ) get removeCallback => (super.noSuchMethod( + Invocation.getter(#removeCallback), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.VideoAdPlayerCallback callback, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.VideoAdPlayerCallback callback, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.VideoAdPlayerCallback, + )); + + @override + void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + ) get stopAd => (super.noSuchMethod( + Invocation.getter(#stopAd), + returnValue: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + returnValueForMissingStub: ( + _i2.VideoAdPlayer pigeon_instance, + _i2.AdMediaInfo adMediaInfo, + ) {}, + ) as void Function( + _i2.VideoAdPlayer, + _i2.AdMediaInfo, + )); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i6.Future setVolume(int? value) => (super.noSuchMethod( + Invocation.method( + #setVolume, + [value], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future setAdProgress(_i2.VideoProgressUpdate? progress) => + (super.noSuchMethod( + Invocation.method( + #setAdProgress, + [progress], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i2.VideoAdPlayer pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeVideoAdPlayer_13( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeVideoAdPlayer_13( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.VideoAdPlayer); +} + +/// A class which mocks [VideoAdPlayerCallback]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockVideoAdPlayerCallback extends _i1.Mock + implements _i2.VideoAdPlayerCallback { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i6.Future onAdProgress( + _i2.AdMediaInfo? adMediaInfo, + _i2.VideoProgressUpdate? videoProgressUpdate, + ) => + (super.noSuchMethod( + Invocation.method( + #onAdProgress, + [ + adMediaInfo, + videoProgressUpdate, + ], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onBuffering(_i2.AdMediaInfo? adMediaInfo) => + (super.noSuchMethod( + Invocation.method( + #onBuffering, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onContentComplete() => (super.noSuchMethod( + Invocation.method( + #onContentComplete, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onEnded(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( + Invocation.method( + #onEnded, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onError(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( + Invocation.method( + #onError, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onLoaded(_i2.AdMediaInfo? adMediaInfo) => + (super.noSuchMethod( + Invocation.method( + #onLoaded, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onPause(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( + Invocation.method( + #onPause, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onPlay(_i2.AdMediaInfo? adMediaInfo) => (super.noSuchMethod( + Invocation.method( + #onPlay, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onResume(_i2.AdMediaInfo? adMediaInfo) => + (super.noSuchMethod( + Invocation.method( + #onResume, + [adMediaInfo], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future onVolumeChanged( + _i2.AdMediaInfo? adMediaInfo, + int? percentage, + ) => + (super.noSuchMethod( + Invocation.method( + #onVolumeChanged, + [ + adMediaInfo, + percentage, + ], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i2.VideoAdPlayerCallback pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeVideoAdPlayerCallback_14( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeVideoAdPlayerCallback_14( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.VideoAdPlayerCallback); +} + +/// A class which mocks [VideoView]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockVideoView extends _i1.Mock implements _i2.VideoView { + @override + void Function( + _i2.VideoView, + _i2.MediaPlayer, + int, + int, + ) get onError => (super.noSuchMethod( + Invocation.getter(#onError), + returnValue: ( + _i2.VideoView pigeon_instance, + _i2.MediaPlayer player, + int what, + int extra, + ) {}, + returnValueForMissingStub: ( + _i2.VideoView pigeon_instance, + _i2.MediaPlayer player, + int what, + int extra, + ) {}, + ) as void Function( + _i2.VideoView, + _i2.MediaPlayer, + int, + int, + )); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i6.Future setVideoUri(String? uri) => (super.noSuchMethod( + Invocation.method( + #setVideoUri, + [uri], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future getCurrentPosition() => (super.noSuchMethod( + Invocation.method( + #getCurrentPosition, + [], + ), + returnValue: _i6.Future.value(0), + returnValueForMissingStub: _i6.Future.value(0), + ) as _i6.Future); + + @override + _i2.VideoView pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeVideoView_15( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeVideoView_15( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.VideoView); +} + +/// A class which mocks [SurfaceAndroidViewController]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockSurfaceAndroidViewController extends _i1.Mock + implements _i4.SurfaceAndroidViewController { + @override + bool get requiresViewComposition => (super.noSuchMethod( + Invocation.getter(#requiresViewComposition), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + + @override + int get viewId => (super.noSuchMethod( + Invocation.getter(#viewId), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); + + @override + bool get awaitingCreation => (super.noSuchMethod( + Invocation.getter(#awaitingCreation), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + + @override + _i4.PointTransformer get pointTransformer => (super.noSuchMethod( + Invocation.getter(#pointTransformer), + returnValue: (_i3.Offset position) => _FakeOffset_16( + this, + Invocation.getter(#pointTransformer), + ), + returnValueForMissingStub: (_i3.Offset position) => _FakeOffset_16( + this, + Invocation.getter(#pointTransformer), + ), + ) as _i4.PointTransformer); + + @override + set pointTransformer(_i4.PointTransformer? transformer) => super.noSuchMethod( + Invocation.setter( + #pointTransformer, + transformer, + ), + returnValueForMissingStub: null, + ); + + @override + bool get isCreated => (super.noSuchMethod( + Invocation.getter(#isCreated), + returnValue: false, + returnValueForMissingStub: false, + ) as bool); + + @override + List<_i4.PlatformViewCreatedCallback> get createdCallbacks => + (super.noSuchMethod( + Invocation.getter(#createdCallbacks), + returnValue: <_i4.PlatformViewCreatedCallback>[], + returnValueForMissingStub: <_i4.PlatformViewCreatedCallback>[], + ) as List<_i4.PlatformViewCreatedCallback>); + + @override + _i6.Future setOffset(_i3.Offset? off) => (super.noSuchMethod( + Invocation.method( + #setOffset, + [off], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future create({ + _i3.Size? size, + _i3.Offset? position, + }) => + (super.noSuchMethod( + Invocation.method( + #create, + [], + { + #size: size, + #position: position, + }, + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future<_i3.Size> setSize(_i3.Size? size) => (super.noSuchMethod( + Invocation.method( + #setSize, + [size], + ), + returnValue: _i6.Future<_i3.Size>.value(_FakeSize_17( + this, + Invocation.method( + #setSize, + [size], + ), + )), + returnValueForMissingStub: _i6.Future<_i3.Size>.value(_FakeSize_17( + this, + Invocation.method( + #setSize, + [size], + ), + )), + ) as _i6.Future<_i3.Size>); + + @override + _i6.Future sendMotionEvent(_i4.AndroidMotionEvent? event) => + (super.noSuchMethod( + Invocation.method( + #sendMotionEvent, + [event], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + void addOnPlatformViewCreatedListener( + _i4.PlatformViewCreatedCallback? listener) => + super.noSuchMethod( + Invocation.method( + #addOnPlatformViewCreatedListener, + [listener], + ), + returnValueForMissingStub: null, + ); + + @override + void removeOnPlatformViewCreatedListener( + _i4.PlatformViewCreatedCallback? listener) => + super.noSuchMethod( + Invocation.method( + #removeOnPlatformViewCreatedListener, + [listener], + ), + returnValueForMissingStub: null, + ); + + @override + _i6.Future setLayoutDirection(_i3.TextDirection? layoutDirection) => + (super.noSuchMethod( + Invocation.method( + #setLayoutDirection, + [layoutDirection], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future dispatchPointerEvent(_i4.PointerEvent? event) => + (super.noSuchMethod( + Invocation.method( + #dispatchPointerEvent, + [event], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future clearFocus() => (super.noSuchMethod( + Invocation.method( + #clearFocus, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); + + @override + _i6.Future dispose() => (super.noSuchMethod( + Invocation.method( + #dispose, + [], + ), + returnValue: _i6.Future.value(), + returnValueForMissingStub: _i6.Future.value(), + ) as _i6.Future); +} + +/// A class which mocks [PlatformViewsServiceProxy]. +/// +/// See the documentation for Mockito's code generation for more information. +// ignore: must_be_immutable +class MockPlatformViewsServiceProxy extends _i1.Mock + implements _i7.PlatformViewsServiceProxy { + @override + _i4.ExpensiveAndroidViewController initExpensiveAndroidView({ + required int? id, + required String? viewType, + required _i3.TextDirection? layoutDirection, + dynamic creationParams, + _i4.MessageCodec? creationParamsCodec, + _i3.VoidCallback? onFocus, + }) => + (super.noSuchMethod( + Invocation.method( + #initExpensiveAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + returnValue: _FakeExpensiveAndroidViewController_18( + this, + Invocation.method( + #initExpensiveAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + ), + returnValueForMissingStub: _FakeExpensiveAndroidViewController_18( + this, + Invocation.method( + #initExpensiveAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + ), + ) as _i4.ExpensiveAndroidViewController); + + @override + _i4.SurfaceAndroidViewController initSurfaceAndroidView({ + required int? id, + required String? viewType, + required _i3.TextDirection? layoutDirection, + dynamic creationParams, + _i4.MessageCodec? creationParamsCodec, + _i3.VoidCallback? onFocus, + }) => + (super.noSuchMethod( + Invocation.method( + #initSurfaceAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + returnValue: _FakeSurfaceAndroidViewController_19( + this, + Invocation.method( + #initSurfaceAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + ), + returnValueForMissingStub: _FakeSurfaceAndroidViewController_19( + this, + Invocation.method( + #initSurfaceAndroidView, + [], + { + #id: id, + #viewType: viewType, + #layoutDirection: layoutDirection, + #creationParams: creationParams, + #creationParamsCodec: creationParamsCodec, + #onFocus: onFocus, + }, + ), + ), + ) as _i4.SurfaceAndroidViewController); +} diff --git a/packages/interactive_media_ads/test/android/ads_manager_test.mocks.dart b/packages/interactive_media_ads/test/android/ads_manager_test.mocks.dart new file mode 100644 index 00000000000..bb4dc3235f0 --- /dev/null +++ b/packages/interactive_media_ads/test/android/ads_manager_test.mocks.dart @@ -0,0 +1,531 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in interactive_media_ads/test/android/ads_manager_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i4; + +import 'package:interactive_media_ads/src/android/interactive_media_ads.g.dart' + as _i2; +import 'package:mockito/mockito.dart' as _i1; +import 'package:mockito/src/dummies.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 _FakePigeonInstanceManager_0 extends _i1.SmartFake + implements _i2.PigeonInstanceManager { + _FakePigeonInstanceManager_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdError_1 extends _i1.SmartFake implements _i2.AdError { + _FakeAdError_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdErrorEvent_2 extends _i1.SmartFake implements _i2.AdErrorEvent { + _FakeAdErrorEvent_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdErrorListener_3 extends _i1.SmartFake + implements _i2.AdErrorListener { + _FakeAdErrorListener_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdEvent_4 extends _i1.SmartFake implements _i2.AdEvent { + _FakeAdEvent_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdEventListener_5 extends _i1.SmartFake + implements _i2.AdEventListener { + _FakeAdEventListener_5( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeAdsManager_6 extends _i1.SmartFake implements _i2.AdsManager { + _FakeAdsManager_6( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [AdError]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdError extends _i1.Mock implements _i2.AdError { + @override + _i2.AdErrorCode get errorCode => (super.noSuchMethod( + Invocation.getter(#errorCode), + returnValue: _i2.AdErrorCode.adsPlayerWasNotProvided, + returnValueForMissingStub: _i2.AdErrorCode.adsPlayerWasNotProvided, + ) as _i2.AdErrorCode); + + @override + int get errorCodeNumber => (super.noSuchMethod( + Invocation.getter(#errorCodeNumber), + returnValue: 0, + returnValueForMissingStub: 0, + ) as int); + + @override + _i2.AdErrorType get errorType => (super.noSuchMethod( + Invocation.getter(#errorType), + returnValue: _i2.AdErrorType.load, + returnValueForMissingStub: _i2.AdErrorType.load, + ) as _i2.AdErrorType); + + @override + String get message => (super.noSuchMethod( + Invocation.getter(#message), + returnValue: _i3.dummyValue( + this, + Invocation.getter(#message), + ), + returnValueForMissingStub: _i3.dummyValue( + this, + Invocation.getter(#message), + ), + ) as String); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdError pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdError_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdError_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdError); +} + +/// A class which mocks [AdErrorEvent]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdErrorEvent extends _i1.Mock implements _i2.AdErrorEvent { + @override + _i2.AdError get error => (super.noSuchMethod( + Invocation.getter(#error), + returnValue: _FakeAdError_1( + this, + Invocation.getter(#error), + ), + returnValueForMissingStub: _FakeAdError_1( + this, + Invocation.getter(#error), + ), + ) as _i2.AdError); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdErrorEvent pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdErrorEvent_2( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdErrorEvent_2( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdErrorEvent); +} + +/// A class which mocks [AdErrorListener]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdErrorListener extends _i1.Mock implements _i2.AdErrorListener { + @override + void Function( + _i2.AdErrorListener, + _i2.AdErrorEvent, + ) get onAdError => (super.noSuchMethod( + Invocation.getter(#onAdError), + returnValue: ( + _i2.AdErrorListener pigeon_instance, + _i2.AdErrorEvent event, + ) {}, + returnValueForMissingStub: ( + _i2.AdErrorListener pigeon_instance, + _i2.AdErrorEvent event, + ) {}, + ) as void Function( + _i2.AdErrorListener, + _i2.AdErrorEvent, + )); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdErrorListener pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdErrorListener_3( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdErrorListener_3( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdErrorListener); +} + +/// A class which mocks [AdEvent]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdEvent extends _i1.Mock implements _i2.AdEvent { + @override + _i2.AdEventType get type => (super.noSuchMethod( + Invocation.getter(#type), + returnValue: _i2.AdEventType.adBreakEnded, + returnValueForMissingStub: _i2.AdEventType.adBreakEnded, + ) as _i2.AdEventType); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdEvent pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdEvent_4( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdEvent_4( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdEvent); +} + +/// A class which mocks [AdEventListener]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdEventListener extends _i1.Mock implements _i2.AdEventListener { + @override + void Function( + _i2.AdEventListener, + _i2.AdEvent, + ) get onAdEvent => (super.noSuchMethod( + Invocation.getter(#onAdEvent), + returnValue: ( + _i2.AdEventListener pigeon_instance, + _i2.AdEvent event, + ) {}, + returnValueForMissingStub: ( + _i2.AdEventListener pigeon_instance, + _i2.AdEvent event, + ) {}, + ) as void Function( + _i2.AdEventListener, + _i2.AdEvent, + )); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.AdEventListener pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdEventListener_5( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdEventListener_5( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdEventListener); +} + +/// A class which mocks [AdsManager]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockAdsManager extends _i1.Mock implements _i2.AdsManager { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i4.Future discardAdBreak() => (super.noSuchMethod( + Invocation.method( + #discardAdBreak, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); + + @override + _i4.Future pause() => (super.noSuchMethod( + Invocation.method( + #pause, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); + + @override + _i4.Future start() => (super.noSuchMethod( + Invocation.method( + #start, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); + + @override + _i4.Future> getAdCuePoints() => (super.noSuchMethod( + Invocation.method( + #getAdCuePoints, + [], + ), + returnValue: _i4.Future>.value([]), + returnValueForMissingStub: _i4.Future>.value([]), + ) as _i4.Future>); + + @override + _i4.Future resume() => (super.noSuchMethod( + Invocation.method( + #resume, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); + + @override + _i4.Future skip() => (super.noSuchMethod( + Invocation.method( + #skip, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); + + @override + _i2.AdsManager pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeAdsManager_6( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeAdsManager_6( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.AdsManager); + + @override + _i4.Future addAdErrorListener(_i2.AdErrorListener? errorListener) => + (super.noSuchMethod( + Invocation.method( + #addAdErrorListener, + [errorListener], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); + + @override + _i4.Future addAdEventListener(_i2.AdEventListener? adEventListener) => + (super.noSuchMethod( + Invocation.method( + #addAdEventListener, + [adEventListener], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); + + @override + _i4.Future destroy() => (super.noSuchMethod( + Invocation.method( + #destroy, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); + + @override + _i4.Future init() => (super.noSuchMethod( + Invocation.method( + #init, + [], + ), + returnValue: _i4.Future.value(), + returnValueForMissingStub: _i4.Future.value(), + ) as _i4.Future); +} diff --git a/packages/interactive_media_ads/test/android/content_progress_provider_test.mocks.dart b/packages/interactive_media_ads/test/android/content_progress_provider_test.mocks.dart new file mode 100644 index 00000000000..6d65d647503 --- /dev/null +++ b/packages/interactive_media_ads/test/android/content_progress_provider_test.mocks.dart @@ -0,0 +1,97 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in interactive_media_ads/test/android/content_progress_provider_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:interactive_media_ads/src/android/interactive_media_ads.g.dart' + as _i2; +import 'package:mockito/mockito.dart' as _i1; + +// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake + implements _i2.PigeonInstanceManager { + _FakePigeonInstanceManager_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeContentProgressProvider_1 extends _i1.SmartFake + implements _i2.ContentProgressProvider { + _FakeContentProgressProvider_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [ContentProgressProvider]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockContentProgressProvider extends _i1.Mock + implements _i2.ContentProgressProvider { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i3.Future setContentProgress(_i2.VideoProgressUpdate? update) => + (super.noSuchMethod( + Invocation.method( + #setContentProgress, + [update], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i2.ContentProgressProvider pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeContentProgressProvider_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeContentProgressProvider_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.ContentProgressProvider); +} diff --git a/packages/interactive_media_ads/test/ios/ad_display_container_test.mocks.dart b/packages/interactive_media_ads/test/ios/ad_display_container_test.mocks.dart new file mode 100644 index 00000000000..cb8c37e05dc --- /dev/null +++ b/packages/interactive_media_ads/test/ios/ad_display_container_test.mocks.dart @@ -0,0 +1,220 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in interactive_media_ads/test/ios/ad_display_container_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'package:interactive_media_ads/src/ios/interactive_media_ads.g.dart' + as _i2; +import 'package:mockito/mockito.dart' as _i1; + +// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake + implements _i2.PigeonInstanceManager { + _FakePigeonInstanceManager_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeIMAAdDisplayContainer_1 extends _i1.SmartFake + implements _i2.IMAAdDisplayContainer { + _FakeIMAAdDisplayContainer_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeUIView_2 extends _i1.SmartFake implements _i2.UIView { + _FakeUIView_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeUIViewController_3 extends _i1.SmartFake + implements _i2.UIViewController { + _FakeUIViewController_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [IMAAdDisplayContainer]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIMAAdDisplayContainer extends _i1.Mock + implements _i2.IMAAdDisplayContainer { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.IMAAdDisplayContainer pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeIMAAdDisplayContainer_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeIMAAdDisplayContainer_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.IMAAdDisplayContainer); +} + +/// A class which mocks [UIView]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockUIView extends _i1.Mock implements _i2.UIView { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.UIView pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeUIView_2( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeUIView_2( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.UIView); +} + +/// A class which mocks [UIViewController]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockUIViewController extends _i1.Mock implements _i2.UIViewController { + @override + _i2.UIView get view => (super.noSuchMethod( + Invocation.getter(#view), + returnValue: _FakeUIView_2( + this, + Invocation.getter(#view), + ), + returnValueForMissingStub: _FakeUIView_2( + this, + Invocation.getter(#view), + ), + ) as _i2.UIView); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.UIView pigeonVar_view() => (super.noSuchMethod( + Invocation.method( + #pigeonVar_view, + [], + ), + returnValue: _FakeUIView_2( + this, + Invocation.method( + #pigeonVar_view, + [], + ), + ), + returnValueForMissingStub: _FakeUIView_2( + this, + Invocation.method( + #pigeonVar_view, + [], + ), + ), + ) as _i2.UIView); + + @override + _i2.UIViewController pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeUIViewController_3( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeUIViewController_3( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.UIViewController); +} diff --git a/packages/interactive_media_ads/test/ios/ads_loader_test.mocks.dart b/packages/interactive_media_ads/test/ios/ads_loader_test.mocks.dart new file mode 100644 index 00000000000..a19db9487f1 --- /dev/null +++ b/packages/interactive_media_ads/test/ios/ads_loader_test.mocks.dart @@ -0,0 +1,585 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in interactive_media_ads/test/ios/ads_loader_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:interactive_media_ads/src/ios/interactive_media_ads.g.dart' + as _i2; +import 'package:mockito/mockito.dart' as _i1; + +// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake + implements _i2.PigeonInstanceManager { + _FakePigeonInstanceManager_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeIMAAdDisplayContainer_1 extends _i1.SmartFake + implements _i2.IMAAdDisplayContainer { + _FakeIMAAdDisplayContainer_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeIMAAdsLoader_2 extends _i1.SmartFake implements _i2.IMAAdsLoader { + _FakeIMAAdsLoader_2( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeIMAAdsLoaderDelegate_3 extends _i1.SmartFake + implements _i2.IMAAdsLoaderDelegate { + _FakeIMAAdsLoaderDelegate_3( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeIMAAdsManager_4 extends _i1.SmartFake implements _i2.IMAAdsManager { + _FakeIMAAdsManager_4( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeIMAAdsRequest_5 extends _i1.SmartFake implements _i2.IMAAdsRequest { + _FakeIMAAdsRequest_5( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeUIView_6 extends _i1.SmartFake implements _i2.UIView { + _FakeUIView_6( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeUIViewController_7 extends _i1.SmartFake + implements _i2.UIViewController { + _FakeUIViewController_7( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [IMAAdDisplayContainer]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIMAAdDisplayContainer extends _i1.Mock + implements _i2.IMAAdDisplayContainer { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.IMAAdDisplayContainer pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeIMAAdDisplayContainer_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeIMAAdDisplayContainer_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.IMAAdDisplayContainer); +} + +/// A class which mocks [IMAAdsLoader]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIMAAdsLoader extends _i1.Mock implements _i2.IMAAdsLoader { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i3.Future contentComplete() => (super.noSuchMethod( + Invocation.method( + #contentComplete, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future requestAds(_i2.IMAAdsRequest? request) => + (super.noSuchMethod( + Invocation.method( + #requestAds, + [request], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future setDelegate(_i2.IMAAdsLoaderDelegate? delegate) => + (super.noSuchMethod( + Invocation.method( + #setDelegate, + [delegate], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i2.IMAAdsLoader pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeIMAAdsLoader_2( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeIMAAdsLoader_2( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.IMAAdsLoader); +} + +/// A class which mocks [IMAAdsLoaderDelegate]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIMAAdsLoaderDelegate extends _i1.Mock + implements _i2.IMAAdsLoaderDelegate { + @override + void Function( + _i2.IMAAdsLoaderDelegate, + _i2.IMAAdsLoader, + _i2.IMAAdsLoadedData, + ) get adLoaderLoadedWith => (super.noSuchMethod( + Invocation.getter(#adLoaderLoadedWith), + returnValue: ( + _i2.IMAAdsLoaderDelegate pigeon_instance, + _i2.IMAAdsLoader loader, + _i2.IMAAdsLoadedData adsLoadedData, + ) {}, + returnValueForMissingStub: ( + _i2.IMAAdsLoaderDelegate pigeon_instance, + _i2.IMAAdsLoader loader, + _i2.IMAAdsLoadedData adsLoadedData, + ) {}, + ) as void Function( + _i2.IMAAdsLoaderDelegate, + _i2.IMAAdsLoader, + _i2.IMAAdsLoadedData, + )); + + @override + void Function( + _i2.IMAAdsLoaderDelegate, + _i2.IMAAdsLoader, + _i2.IMAAdLoadingErrorData, + ) get adsLoaderFailedWithErrorData => (super.noSuchMethod( + Invocation.getter(#adsLoaderFailedWithErrorData), + returnValue: ( + _i2.IMAAdsLoaderDelegate pigeon_instance, + _i2.IMAAdsLoader loader, + _i2.IMAAdLoadingErrorData adErrorData, + ) {}, + returnValueForMissingStub: ( + _i2.IMAAdsLoaderDelegate pigeon_instance, + _i2.IMAAdsLoader loader, + _i2.IMAAdLoadingErrorData adErrorData, + ) {}, + ) as void Function( + _i2.IMAAdsLoaderDelegate, + _i2.IMAAdsLoader, + _i2.IMAAdLoadingErrorData, + )); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.IMAAdsLoaderDelegate pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeIMAAdsLoaderDelegate_3( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeIMAAdsLoaderDelegate_3( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.IMAAdsLoaderDelegate); +} + +/// A class which mocks [IMAAdsManager]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIMAAdsManager extends _i1.Mock implements _i2.IMAAdsManager { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i3.Future setDelegate(_i2.IMAAdsManagerDelegate? delegate) => + (super.noSuchMethod( + Invocation.method( + #setDelegate, + [delegate], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future initialize( + _i2.IMAAdsRenderingSettings? adsRenderingSettings) => + (super.noSuchMethod( + Invocation.method( + #initialize, + [adsRenderingSettings], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future start() => (super.noSuchMethod( + Invocation.method( + #start, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future pause() => (super.noSuchMethod( + Invocation.method( + #pause, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future resume() => (super.noSuchMethod( + Invocation.method( + #resume, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future skip() => (super.noSuchMethod( + Invocation.method( + #skip, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future discardAdBreak() => (super.noSuchMethod( + Invocation.method( + #discardAdBreak, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future destroy() => (super.noSuchMethod( + Invocation.method( + #destroy, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i2.IMAAdsManager pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeIMAAdsManager_4( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeIMAAdsManager_4( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.IMAAdsManager); +} + +/// A class which mocks [IMAAdsRequest]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIMAAdsRequest extends _i1.Mock implements _i2.IMAAdsRequest { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.IMAAdsRequest pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeIMAAdsRequest_5( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeIMAAdsRequest_5( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.IMAAdsRequest); +} + +/// A class which mocks [UIView]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockUIView extends _i1.Mock implements _i2.UIView { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.UIView pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeUIView_6( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeUIView_6( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.UIView); +} + +/// A class which mocks [UIViewController]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockUIViewController extends _i1.Mock implements _i2.UIViewController { + @override + _i2.UIView get view => (super.noSuchMethod( + Invocation.getter(#view), + returnValue: _FakeUIView_6( + this, + Invocation.getter(#view), + ), + returnValueForMissingStub: _FakeUIView_6( + this, + Invocation.getter(#view), + ), + ) as _i2.UIView); + + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i2.UIView pigeonVar_view() => (super.noSuchMethod( + Invocation.method( + #pigeonVar_view, + [], + ), + returnValue: _FakeUIView_6( + this, + Invocation.method( + #pigeonVar_view, + [], + ), + ), + returnValueForMissingStub: _FakeUIView_6( + this, + Invocation.method( + #pigeonVar_view, + [], + ), + ), + ) as _i2.UIView); + + @override + _i2.UIViewController pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeUIViewController_7( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeUIViewController_7( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.UIViewController); +} diff --git a/packages/interactive_media_ads/test/ios/ads_manager_test.mocks.dart b/packages/interactive_media_ads/test/ios/ads_manager_test.mocks.dart new file mode 100644 index 00000000000..9e891eb299f --- /dev/null +++ b/packages/interactive_media_ads/test/ios/ads_manager_test.mocks.dart @@ -0,0 +1,167 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in interactive_media_ads/test/ios/ads_manager_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:interactive_media_ads/src/ios/interactive_media_ads.g.dart' + as _i2; +import 'package:mockito/mockito.dart' as _i1; + +// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake + implements _i2.PigeonInstanceManager { + _FakePigeonInstanceManager_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeIMAAdsManager_1 extends _i1.SmartFake implements _i2.IMAAdsManager { + _FakeIMAAdsManager_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [IMAAdsManager]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIMAAdsManager extends _i1.Mock implements _i2.IMAAdsManager { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i3.Future setDelegate(_i2.IMAAdsManagerDelegate? delegate) => + (super.noSuchMethod( + Invocation.method( + #setDelegate, + [delegate], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future initialize( + _i2.IMAAdsRenderingSettings? adsRenderingSettings) => + (super.noSuchMethod( + Invocation.method( + #initialize, + [adsRenderingSettings], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future start() => (super.noSuchMethod( + Invocation.method( + #start, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future pause() => (super.noSuchMethod( + Invocation.method( + #pause, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future resume() => (super.noSuchMethod( + Invocation.method( + #resume, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future skip() => (super.noSuchMethod( + Invocation.method( + #skip, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future discardAdBreak() => (super.noSuchMethod( + Invocation.method( + #discardAdBreak, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i3.Future destroy() => (super.noSuchMethod( + Invocation.method( + #destroy, + [], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i2.IMAAdsManager pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeIMAAdsManager_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeIMAAdsManager_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.IMAAdsManager); +} diff --git a/packages/interactive_media_ads/test/ios/content_progress_provider_test.mocks.dart b/packages/interactive_media_ads/test/ios/content_progress_provider_test.mocks.dart new file mode 100644 index 00000000000..a82fb3fbade --- /dev/null +++ b/packages/interactive_media_ads/test/ios/content_progress_provider_test.mocks.dart @@ -0,0 +1,96 @@ +// Mocks generated by Mockito 5.4.4 from annotations +// in interactive_media_ads/test/ios/content_progress_provider_test.dart. +// Do not manually edit this file. + +// ignore_for_file: no_leading_underscores_for_library_prefixes +import 'dart:async' as _i3; + +import 'package:interactive_media_ads/src/ios/interactive_media_ads.g.dart' + as _i2; +import 'package:mockito/mockito.dart' as _i1; + +// 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 _FakePigeonInstanceManager_0 extends _i1.SmartFake + implements _i2.PigeonInstanceManager { + _FakePigeonInstanceManager_0( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +class _FakeIMAContentPlayhead_1 extends _i1.SmartFake + implements _i2.IMAContentPlayhead { + _FakeIMAContentPlayhead_1( + Object parent, + Invocation parentInvocation, + ) : super( + parent, + parentInvocation, + ); +} + +/// A class which mocks [IMAContentPlayhead]. +/// +/// See the documentation for Mockito's code generation for more information. +class MockIMAContentPlayhead extends _i1.Mock + implements _i2.IMAContentPlayhead { + @override + _i2.PigeonInstanceManager get pigeon_instanceManager => (super.noSuchMethod( + Invocation.getter(#pigeon_instanceManager), + returnValue: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + returnValueForMissingStub: _FakePigeonInstanceManager_0( + this, + Invocation.getter(#pigeon_instanceManager), + ), + ) as _i2.PigeonInstanceManager); + + @override + _i3.Future setCurrentTime(double? timeInterval) => (super.noSuchMethod( + Invocation.method( + #setCurrentTime, + [timeInterval], + ), + returnValue: _i3.Future.value(), + returnValueForMissingStub: _i3.Future.value(), + ) as _i3.Future); + + @override + _i2.IMAContentPlayhead pigeon_copy() => (super.noSuchMethod( + Invocation.method( + #pigeon_copy, + [], + ), + returnValue: _FakeIMAContentPlayhead_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + returnValueForMissingStub: _FakeIMAContentPlayhead_1( + this, + Invocation.method( + #pigeon_copy, + [], + ), + ), + ) as _i2.IMAContentPlayhead); +}