Harden Apple Watch snapshot synchronization
This commit is contained in:
@@ -62,8 +62,28 @@ fn apple_sources_preserve_the_mobile_security_boundary() {
|
||||
assert!(watch.contains("SecItemCopyMatching"));
|
||||
assert!(app.contains("session.sendMessage(payload"));
|
||||
assert!(app.contains("session.transferUserInfo(payload)"));
|
||||
assert!(app.contains("session.outstandingUserInfoTransfers"));
|
||||
assert!(
|
||||
app.split_once("@main")
|
||||
.expect("iPhone app delegate")
|
||||
.0
|
||||
.contains("UIApplication.didBecomeActiveNotification")
|
||||
);
|
||||
assert!(watch.contains("didReceiveMessage message"));
|
||||
assert!(watch.contains("didReceiveUserInfo userInfo"));
|
||||
assert!(watch.contains("session.outstandingUserInfoTransfers"));
|
||||
assert!(watch.contains("session.transferUserInfo(acknowledgement)"));
|
||||
assert!(
|
||||
watch
|
||||
.split_once("func sceneBecameActive()")
|
||||
.expect("Watch foreground handler")
|
||||
.1
|
||||
.split_once("func sceneBecameInactive()")
|
||||
.expect("Watch inactive handler")
|
||||
.0
|
||||
.contains("receivedApplicationContext")
|
||||
);
|
||||
assert!(watch.contains("applyAuthoritativeSnapshot"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user