Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bparrishMines committed Oct 28, 2024
1 parent e073910 commit 685246c
Show file tree
Hide file tree
Showing 3 changed files with 111 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,11 +654,65 @@ class MockAdsManager extends _i1.Mock implements _i2.AdsManager {
) as _i6.Future<void>);

@override
_i6.Future<void> init() => (super.noSuchMethod(
_i6.Future<void> init(_i2.AdsRenderingSettings? settings) =>
(super.noSuchMethod(
Invocation.method(
#init,
[settings],
),
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);

@override
_i6.Future<void> focus() => (super.noSuchMethod(
Invocation.method(
#focus,
[],
),
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);

@override
_i6.Future<_i2.AdProgressInfo?> getAdProgressInfo() => (super.noSuchMethod(
Invocation.method(
#getAdProgressInfo,
[],
),
returnValue: _i6.Future<_i2.AdProgressInfo?>.value(),
returnValueForMissingStub: _i6.Future<_i2.AdProgressInfo?>.value(),
) as _i6.Future<_i2.AdProgressInfo?>);

@override
_i6.Future<_i2.Ad?> getCurrentAd() => (super.noSuchMethod(
Invocation.method(
#getCurrentAd,
[],
),
returnValue: _i6.Future<_i2.Ad?>.value(),
returnValueForMissingStub: _i6.Future<_i2.Ad?>.value(),
) as _i6.Future<_i2.Ad?>);

@override
_i6.Future<void> removeAdErrorListener(_i2.AdErrorListener? errorListener) =>
(super.noSuchMethod(
Invocation.method(
#removeAdErrorListener,
[errorListener],
),
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);

@override
_i6.Future<void> removeAdEventListener(
_i2.AdEventListener? adEventListener) =>
(super.noSuchMethod(
Invocation.method(
#removeAdEventListener,
[adEventListener],
),
returnValue: _i6.Future<void>.value(),
returnValueForMissingStub: _i6.Future<void>.value(),
) as _i6.Future<void>);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void main() {
final AndroidAdsManager adsManager = AndroidAdsManager(mockAdsManager);
adsManager.init(AdsManagerInitParams());

verify(mockAdsManager.init());
verify(mockAdsManager.init(null));
});

test('start', () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -520,11 +520,65 @@ class MockAdsManager extends _i1.Mock implements _i2.AdsManager {
) as _i4.Future<void>);

@override
_i4.Future<void> init() => (super.noSuchMethod(
_i4.Future<void> init(_i2.AdsRenderingSettings? settings) =>
(super.noSuchMethod(
Invocation.method(
#init,
[settings],
),
returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>);

@override
_i4.Future<void> focus() => (super.noSuchMethod(
Invocation.method(
#focus,
[],
),
returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>);

@override
_i4.Future<_i2.AdProgressInfo?> getAdProgressInfo() => (super.noSuchMethod(
Invocation.method(
#getAdProgressInfo,
[],
),
returnValue: _i4.Future<_i2.AdProgressInfo?>.value(),
returnValueForMissingStub: _i4.Future<_i2.AdProgressInfo?>.value(),
) as _i4.Future<_i2.AdProgressInfo?>);

@override
_i4.Future<_i2.Ad?> getCurrentAd() => (super.noSuchMethod(
Invocation.method(
#getCurrentAd,
[],
),
returnValue: _i4.Future<_i2.Ad?>.value(),
returnValueForMissingStub: _i4.Future<_i2.Ad?>.value(),
) as _i4.Future<_i2.Ad?>);

@override
_i4.Future<void> removeAdErrorListener(_i2.AdErrorListener? errorListener) =>
(super.noSuchMethod(
Invocation.method(
#removeAdErrorListener,
[errorListener],
),
returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>);

@override
_i4.Future<void> removeAdEventListener(
_i2.AdEventListener? adEventListener) =>
(super.noSuchMethod(
Invocation.method(
#removeAdEventListener,
[adEventListener],
),
returnValue: _i4.Future<void>.value(),
returnValueForMissingStub: _i4.Future<void>.value(),
) as _i4.Future<void>);
Expand Down

0 comments on commit 685246c

Please sign in to comment.