mirror of
https://github.com/google/santa.git
synced 2026-04-24 03:00:12 -04:00
Previously SNTXPCConnection had two-way validation which, due to the method of implementation, forced a client to connect to a server straight away. Once that was removed, it meant invalidationHandlers aren't called if either end dies before the connection is established. This also puts back the acceptedHandler, which can be used to know when the connection has finished being established (particularly useful on the server side), updates the __weak stuff to use WEAKIFY/STRONGIFY macros (and now actually switch them back to strong within each block) and make the tests a lot better by using in-process anonymousListener's rather than lots of mocking.