testing: Use base::MessageLoop.

TBR=stoyan@chromium.org
BUG=236029

Review URL: https://codereview.chromium.org/14305033

git-svn-id: http://src.chromium.org/chrome/trunk/src/testing@197630 4ff67af0-8c30-449e-8e8b-ad334ec8d88c