Add a test for ffmpeg extractor
ClosedPublic

Authored by astippich on Feb 17 2019, 7:26 PM.

Details

Summary

Test the ffmpegextractor using
a test file. The file contains 1 second
of blackness.

Diff Detail

Repository
R286 KFileMetaData
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
astippich created this revision.Feb 17 2019, 7:26 PM
Restricted Application added projects: Frameworks, Baloo. · View Herald TranscriptFeb 17 2019, 7:26 PM
Restricted Application added subscribers: Baloo, kde-frameworks-devel. · View Herald Transcript
astippich requested review of this revision.Feb 17 2019, 7:26 PM
bruns added inline comments.Feb 17 2019, 8:18 PM
autotests/ffmpegextractortest.cpp
46

I find it somewhat difficult to grasp Title is KFileMetaData::Property::Title.
You can use something like:

namespace KFMProp = KFileMetaData::Property;
...
... value(KFMProp::Title).toString()
astippich updated this revision to Diff 51990.Feb 18 2019, 6:46 PM
  • emphasize test properties
astippich marked an inline comment as done.Feb 18 2019, 6:54 PM
astippich added inline comments.
autotests/ffmpegextractortest.cpp
46

In that case, just using Property::XXXXX is probably best

bruns accepted this revision.Feb 18 2019, 10:18 PM
This revision is now accepted and ready to land.Feb 18 2019, 10:18 PM
This revision was automatically updated to reflect the committed changes.
astippich marked an inline comment as done.