Rewrite of TabCaptureApiTest.EndToEnd to use an event-based scheme in one tab.
The previous version of this test used a polling scheme with very little control logic. This could cause the test to time out due to timing/sync issues. The rewrite uses an entirely event-based scheme, which ensures everything is synchronized as the test advances through its stages.
Re-enabled the test for all builds except Win dbg. See issue http://crbug.com/177163 for more details.
BUG=174640
TEST=Run browser_tests in repeat mode under normal and heavy-load conditions, and on both Windows 7 and Linux.
Review URL: https://chromiumcodereview.appspot.com/
12262022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185103 0039d316-1c4b-4281-b951-d872f2087c98