Add minimal testing of socket.c helper functions

Change-Id: I2773b3859a206f96fb8fa095d50a653d9eeb8d79
6 files changed