Refactor Socket unit tests, and add more
Refactor Socket unit tests, and add more

 * Consolidate address lookup into a single function
 * Add send/receive test where everything happens synchronously
 * Add send/receive test where we can guarantee that every socket call "blocked"

Change-Id: Ieaac493d0e15dea3c984f844fb8e17b8dd7ed287
Reviewed-on: http://gerrit.dechocorp.com/1775
Reviewed-by: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@mozy.com>

adfin/mordor,ccutrer/mordor,mozy/mordor,mtanski/mordor,ccutrer/mordor,mtanski/mordor,cgaebel/mordor,mtanski/mordor,adfin/mordor,mozy/mordor,ccutrer/mordor,mozy/mordor,adfin/mordor,cgaebel/mordor