test: add automated regression and mesh proxy coexistence suites
This commit is contained in:
@@ -7,11 +7,26 @@ import 'package:meshport_lab/features/lab_screen.dart';
|
||||
void main() {
|
||||
const channel = MethodChannel('meshport/system_vpn');
|
||||
final binding = TestWidgetsFlutterBinding.ensureInitialized();
|
||||
// Profile storage: nothing stored, saves accepted.
|
||||
// Isolate native startup from bundled personal profiles and external peers.
|
||||
const localProfile = '''
|
||||
ipv4 = '10.79.0.10/24'
|
||||
listeners = []
|
||||
stun_servers = []
|
||||
stun_servers_v6 = []
|
||||
[network_identity]
|
||||
network_name = 'ui-local-draft'
|
||||
network_secret = 'test-only'
|
||||
[flags]
|
||||
no_tun = true
|
||||
use_smoltcp = true
|
||||
disable_p2p = true
|
||||
[runtime]
|
||||
mode = 'application'
|
||||
''';
|
||||
setUp(
|
||||
() => binding.defaultBinaryMessenger.setMockMethodCallHandler(
|
||||
channel,
|
||||
(_) async => null,
|
||||
(call) async => call.method == 'load_profile' ? localProfile : null,
|
||||
),
|
||||
);
|
||||
tearDown(
|
||||
|
||||
Reference in New Issue
Block a user