Transcoder: Add HDR -> SDR unit test using sample plugin.
This commits adds a unit test that force enables loading
sample HDR plugin loading and tries to transcode and HDR10
video. If the codec supports the conversion the test checks
that the transcoded video is SDR. If the codec does not
support the conversion the test checks that transcoding
returns unsupported.
Bug: 180011717
Test: atest HdrTranscodeTests
Change-Id: I9cb26589d320744670b619faa4b35ce5c0541e91
diff --git a/media/libmediatranscoding/transcoder/tests/MediaTrackTranscoderTests.cpp b/media/libmediatranscoding/transcoder/tests/MediaTrackTranscoderTests.cpp
index 21f0b86..791e983 100644
--- a/media/libmediatranscoding/transcoder/tests/MediaTrackTranscoderTests.cpp
+++ b/media/libmediatranscoding/transcoder/tests/MediaTrackTranscoderTests.cpp
@@ -28,7 +28,7 @@
#include <media/PassthroughTrackTranscoder.h>
#include <media/VideoTrackTranscoder.h>
-#include "TrackTranscoderTestUtils.h"
+#include "TranscoderTestUtils.h"
namespace android {
@@ -49,7 +49,7 @@
// (b/155663561).
ABinderProcess_startThreadPool();
- mCallback = std::make_shared<TestCallback>();
+ mCallback = std::make_shared<TestTrackTranscoderCallback>();
switch (GetParam()) {
case VIDEO:
@@ -134,7 +134,7 @@
protected:
std::shared_ptr<MediaTrackTranscoder> mTranscoder;
- std::shared_ptr<TestCallback> mCallback;
+ std::shared_ptr<TestTrackTranscoderCallback> mCallback;
std::shared_ptr<MediaSampleReader> mMediaSampleReader;
int mTrackIndex;