SurfaceControlViewHostTest: Deflake resize test

Currently we are using WidgetTestUtils.runOnMainAndDrawSync
however this only waits for the onDraw callback, which doesn't
even ensure the request has been queued to HWUI much less rendered.
If we use frame commit callback we are guaranteed the request has
been queued and so our ordering should work out since we perform
a sync transaction before injecting input.

Bug: 172061197
Test: SurfaceControlViewHostTests
Change-Id: Ib2d8c08082b846fe180a6af6eddf097b02042cf3
1 file changed