codec2: add C2VDAComponent native test
Modified and Renamed the original C2VDAComponent_test.cpp to
C2VDACompIntf_test.cpp for testing C2VDAComponentIntf only.
Add a new C2VDAComponent_test.cpp for testing C2VDAComponent. Include:
- simple decode test
- multiple video decode test
- flush test
Also support --gtest_filter to filter the test.
Bug: 63827290
Test: tests C2VDAComponent_test
> mmm external/v4l2_codec2/tests/
> adb push out/target/product/cheets_arm/data/nativetest/C2VDAComponent_test /data/local/tmp/
> adb push external/v4l2_codec2/data/tests/bear.mp4 /data/local/tmp/C2VDAComponent_test/
> adb shell /data/local/tmp/C2VDAComponent_test/C2VDAComponent_test -i /data/local/tmp/C2VDAComponent_test/bear.mp4:v4l2.h264.decode:640:368:82:84
Change-Id: I399a6f25444360147e9d45407301a95f21bd8e7a
4 files changed