@@ -13,8 +13,8 @@ import 'package:sentry/sentry.dart' as _i2;
13
13
import 'package:sentry/src/protocol.dart' as _i3;
14
14
import 'package:sentry/src/sentry_envelope.dart' as _i7;
15
15
import 'package:sentry/src/sentry_tracer.dart' as _i8;
16
- import 'package:sentry_flutter/src/sentry_native.dart' as _i10;
17
- import 'package:sentry_flutter/src/sentry_native_channel.dart' as _i11;
16
+ import 'package:sentry_flutter/src/native/ sentry_native.dart' as _i10;
17
+ import 'package:sentry_flutter/src/native/ sentry_native_channel.dart' as _i11;
18
18
19
19
import 'mocks.dart' as _i12;
20
20
@@ -112,8 +112,18 @@ class _FakeSentryId_7 extends _i1.SmartFake implements _i3.SentryId {
112
112
);
113
113
}
114
114
115
- class _FakeHub_8 extends _i1.SmartFake implements _i2.Hub {
116
- _FakeHub_8 (
115
+ class _FakeScope_8 extends _i1.SmartFake implements _i2.Scope {
116
+ _FakeScope_8 (
117
+ Object parent,
118
+ Invocation parentInvocation,
119
+ ) : super (
120
+ parent,
121
+ parentInvocation,
122
+ );
123
+ }
124
+
125
+ class _FakeHub_9 extends _i1.SmartFake implements _i2.Hub {
126
+ _FakeHub_9 (
117
127
Object parent,
118
128
Invocation parentInvocation,
119
129
) : super (
@@ -144,7 +154,6 @@ class MockTransport extends _i1.Mock implements _i2.Transport {
144
154
/// A class which mocks [SentryTracer] .
145
155
///
146
156
/// See the documentation for Mockito's code generation for more information.
147
- // ignore: invalid_use_of_internal_member
148
157
class MockSentryTracer extends _i1.Mock implements _i8.SentryTracer {
149
158
MockSentryTracer () {
150
159
_i1.throwOnMissingStub (this );
@@ -526,13 +535,13 @@ class MockSentryNative extends _i1.Mock implements _i10.SentryNative {
526
535
returnValue: false ,
527
536
) as bool );
528
537
@override
529
- _i6.Future <_i11 .NativeAppStart ?> fetchNativeAppStart () => (super .noSuchMethod (
538
+ _i6.Future <_i10 .NativeAppStart ?> fetchNativeAppStart () => (super .noSuchMethod (
530
539
Invocation .method (
531
540
#fetchNativeAppStart,
532
541
[],
533
542
),
534
- returnValue: _i6.Future <_i11 .NativeAppStart ?>.value (),
535
- ) as _i6.Future <_i11 .NativeAppStart ?>);
543
+ returnValue: _i6.Future <_i10 .NativeAppStart ?>.value (),
544
+ ) as _i6.Future <_i10 .NativeAppStart ?>);
536
545
@override
537
546
_i6.Future <void > beginNativeFramesCollection () => (super .noSuchMethod (
538
547
Invocation .method (
@@ -543,15 +552,15 @@ class MockSentryNative extends _i1.Mock implements _i10.SentryNative {
543
552
returnValueForMissingStub: _i6.Future <void >.value (),
544
553
) as _i6.Future <void >);
545
554
@override
546
- _i6.Future <_i11 .NativeFrames ?> endNativeFramesCollection (
555
+ _i6.Future <_i10 .NativeFrames ?> endNativeFramesCollection (
547
556
_i3.SentryId ? traceId) =>
548
557
(super .noSuchMethod (
549
558
Invocation .method (
550
559
#endNativeFramesCollection,
551
560
[traceId],
552
561
),
553
- returnValue: _i6.Future <_i11 .NativeFrames ?>.value (),
554
- ) as _i6.Future <_i11 .NativeFrames ?>);
562
+ returnValue: _i6.Future <_i10 .NativeFrames ?>.value (),
563
+ ) as _i6.Future <_i10 .NativeFrames ?>);
555
564
@override
556
565
_i6.Future <void > setContexts (
557
566
String ? key,
@@ -695,6 +704,14 @@ class MockHub extends _i1.Mock implements _i2.Hub {
695
704
),
696
705
) as _i3.SentryId );
697
706
@override
707
+ _i2.Scope get scope => (super .noSuchMethod (
708
+ Invocation .getter (#scope),
709
+ returnValue: _FakeScope_8 (
710
+ this ,
711
+ Invocation .getter (#scope),
712
+ ),
713
+ ) as _i2.Scope );
714
+ @override
698
715
_i6.Future <_i3.SentryId > captureEvent (
699
716
_i3.SentryEvent ? event, {
700
717
dynamic stackTrace,
@@ -828,7 +845,7 @@ class MockHub extends _i1.Mock implements _i2.Hub {
828
845
#clone,
829
846
[],
830
847
),
831
- returnValue: _FakeHub_8 (
848
+ returnValue: _FakeHub_9 (
832
849
this ,
833
850
Invocation .method (
834
851
#clone,
0 commit comments