Tests: unify `TestVideoSink`


We still had a `TestVideoSink` in tst_qscreencapturebackend.cpp, which
can lead to duplicate definitions. Unify both implementations.

Pick-to: 6.12
Change-Id: Ie35f6f29ac1f6c047179eef589da98e5a3a1ff6a
Reviewed-by: Nils Petter Skålerud <nils.petter.skalerud@qt.io>
commitfeb3e774d7d8691b93ecebbc574b08b1f374589b
parentb29eb2329dd9ca9c40c83eb753f6f3315274106d
authorTim Blechmann <tim.blechmann@qt.io>
committerTim Blechmann <tim.blechmann@qt.io>
commit timeMon, 31 Aug 2026 06:54:46 +0000