import 'package:meta/meta.dart'; import 'package:omemo_dart/src/trust/base.dart'; /// Only use for testing! /// An implementation of TrustManager that never trusts any device and thus /// has no internal state. @visibleForTesting class NeverTrustingTrustManager extends TrustManager { @override Future isTrusted(String jid, int deviceId) async => false; @override Future onNewSession(String jid, int deviceId) async {} @override Future isEnabled(String jid, int deviceId) async => true; @override Future setEnabled(String jid, int deviceId, bool enabled) async {} @override Future removeTrustDecisionsForJid(String jid) async {} @override Future loadTrustData(String jid) async {} }