This change the PeerConnectionTest.doTest wait for at least one ice candidate and also make sure the list of candidates in gotIceCandidates is synchronized. BUG=webrtc:5010 Review URL: https://codereview.webrtc.org/1354913002 Cr-Commit-Position: refs/heads/master@{#9997}