Implement plugin side of sync EnumerateVideoCaptureDevices

This implements the plugin side of PPB_Flash::EnumerateVideoCaptureDevices which is a synchronous version of PPB_VideoCapture::EnumerateVideoDevices. The result is output into a PP_ArrayOutput. This also adds a unittest which does some basic testing of the messages sent, but mainly demonstrates how to write PluginResource unittests when dealing with sync messages (and adds some infrastructure to make it easy to do this).

Once VideoCapture is implemented as a new-style resource, the code for this will simplify a lot.

Review URL: https://chromiumcodereview.appspot.com/11039012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161265 0039d316-1c4b-4281-b951-d872f2087c98
25 files changed