Former Australian opener David Warner has pleaded guilty to drink driving after he was charged following a random breath test in Sydney.