File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ void main() {
55 test ('Threat enum should contain 14 values' , () {
66 final threatValuesLength = Threat .values.length;
77
8- expect (threatValuesLength, 16 );
8+ expect (threatValuesLength, 17 );
99 });
1010
1111 test ('Threat enum should match its values index' , () {
@@ -27,6 +27,7 @@ void main() {
2727 expect (threatValues[13 ], Threat .adbEnabled);
2828 expect (threatValues[14 ], Threat .screenshot);
2929 expect (threatValues[15 ], Threat .screenRecording);
30+ expect (threatValues[16 ], Threat .multiInstance);
3031 });
3132
3233 test (
@@ -49,6 +50,7 @@ void main() {
4950 expect (ThreatX .fromInt (379769839 ), Threat .adbEnabled);
5051 expect (ThreatX .fromInt (705651459 ), Threat .screenshot);
5152 expect (ThreatX .fromInt (64690214 ), Threat .screenRecording);
53+ expect (ThreatX .fromInt (859307284 ), Threat .multiInstance);
5254 },
5355 );
5456}
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class SpyThreatListener {
2424 onScreenshot: () => _log (Threat .screenshot),
2525 onScreenRecording: () => _log (Threat .screenRecording),
2626 onObfuscationIssues: () => _log (Threat .obfuscationIssues),
27+ onMultiInstance: () => _log (Threat .multiInstance),
2728 );
2829
2930 static void _log (Threat threat) {
@@ -64,6 +65,8 @@ class SpyThreatListener {
6465 callback.onScreenshot? .call ();
6566 case Threat .screenRecording:
6667 callback.onScreenRecording? .call ();
68+ case Threat .multiInstance:
69+ callback.onMultiInstance? .call ();
6770 }
6871 }
6972}
You can’t perform that action at this time.
0 commit comments