Rewrite WebContentsVideoCaptureDeviceTest.
The motivation here was to support CopyFromCompositingSurfaceToVideoFrame.
What's new: we use or extend TestWebContents, TestRenderViewHost, and TestRenderWidgetHostView instead of directly overriding the impls. As a result we can use the WebContentsVideoCaptureDevice's regular constructor, and eliminate all the ForTesting setup code. The main test thread doubles as the UI thread. Instead of an event signaling a condition variable, we run the message loop until the event causes posts a Quit task.
BUG=
175565,
158641,
159234
TEST=content_unittests,browser_tests
TBR=wjia@chromium.org
Committed:
https://src.chromium.org/viewvc/chrome?view=rev&revision=185181