summaryrefslogtreecommitdiff
path: root/test/encryption_test.cc
AgeCommit message (Collapse)Author
2024-08-17{,Interop,SMPTE}SubtitleAsset -> {,Interop,SMPTE}TextAsset.Carl Hetherington
2024-08-17Reel{,Interop,SMPTE}SubtitleAsset -> Reel{,Interop,SMPTE}TextAsset.Carl Hetherington
2024-04-18Move Behaviour enum out of J2KPictureAsset.Carl Hetherington
2024-04-18Rename classes.Carl Hetherington
sed -i "s/\<PictureAsset/J2KPictureAsset/g" src/*.{cc,h} sed -i "s/\<dcp::PictureAsset/dcp::J2KPictureAsset/g" src/*.{cc,h} test/*.{cc,h} tools/*.cc examples/*.cc sed -i "s/\<MonoPictureAsset/MonoJ2KPictureAsset/g" src/*.{cc,h} tools/*.cc test/*.{cc,h} sed -i "s/\<dcp::MonoPictureAsset/dcp::MonoJ2KPictureAsset/g" src/*.{cc,h} test/*.{cc,h} tools/*.cc examples/*.cc sed -i "s/\<StereoPictureAsset/StereoJ2KPictureAsset/g" src/*.{cc,h} tools/*.cc sed -i "s/\<dcp::StereoPictureAsset/dcp::StereoJ2KPictureAsset/g" src/*.{cc,h} test/*.{cc,h} tools/*.cc examples/*.cc sed -i "s/\<MonoPictureFrame/MonoJ2KPictureFrame/g" src/*.{cc,h} tools/*.cc test/*.{cc,h} sed -i "s/\<dcp::MonoPictureFrame/dcp::MonoJ2KPictureFrame/g" src/*.{cc,h} test/*.{cc,h} tools/*.cc examples/*.cc sed -i "s/\<StereoPictureFrame/StereoJ2KPictureFrame/g" src/*.{cc,h} tools/*.cc sed -i "s/\<dcp::StereoPictureFrame/dcp::StereoJ2KPictureFrame/g" src/*.{cc,h} test/*.{cc,h} tools/*.cc examples/*.cc
2024-04-18Fix includes.Carl Hetherington
sed -i "s/#include \"stereo_picture_asset_writer.h\"/#include \"stereo_j2k_picture_asset_writer.h\""/g src/*.{cc,h} sed -i "s/#include \"mono_picture_asset_writer.h\"/#include \"mono_j2k_picture_asset_writer.h\""/g src/*.{cc,h} examples/*.cc sed -i "s/#include \"stereo_picture_asset_reader.h\"/#include \"stereo_j2k_picture_asset_reader.h\""/g src/*.{cc,h} sed -i "s/#include \"mono_picture_asset_reader.h\"/#include \"mono_j2k_picture_asset_reader.h\""/g src/*.{cc,h} test/*.cc examples/*.cc sed -i "s/#include \"stereo_picture_asset.h\"/#include \"stereo_j2k_picture_asset.h\""/g src/*.{cc,h} test/*.cc examples/*.cc sed -i "s/#include \"mono_picture_asset.h\"/#include \"mono_j2k_picture_asset.h\""/g src/*.{cc,h} examples/*.cc sed -i "s/#include \"picture_asset_writer.h\"/#include \"j2k_picture_asset_writer.h\""/g src/*.{cc,h} test/*.cc sed -i "s/#include \"mono_picture_asset_writer.h\"/#include \"mono_j2k_picture_asset_writer.h\""/g src/*.{cc,h} test/*.cc tools/*.cc sed -i "s/#include \"picture_asset.h\"/#include \"j2k_picture_asset.h\""/g src/*.{cc,h} tools/*.cc sed -i "s/#include \"mono_picture_asset.h\"/#include \"mono_j2k_picture_asset.h\""/g src/*.{cc,h} test/*.cc tools/*.cc sed -i "s/#include \"mono_picture_frame.h\"/#include \"mono_j2k_picture_frame.h\""/g src/*.{cc,h} test/*.cc examples/*.cc sed -i "s/#include \"stereo_picture_frame.h\"/#include \"stereo_j2k_picture_frame.h\""/g src/*.{cc,h} sed -i "s/#include \"picture_asset_writer_common.cc\"/#include \"j2k_picture_asset_writer_common.cc\""/g src/*.{cc,h}
2023-10-09Add wrappers around boost::filesystem methods that handle theCarl Hetherington
required mangling of long filenames on Windows. Also wrap lots of missing places (e.g. calls to asdcplib, libxml++, libcxml etc.) in dcp::filesystem::fix_long_path(). The idea is to keep paths un-mangled until they we call some filesystem-related API and mangle them at that point. Otherwise we end up serialising mangled names, which seems like it will not end well. Should fix DoM #2623.
2023-03-20Use an enum instead of a bool in PictureAsset::start_write().Carl Hetherington
2023-03-20Remove the bools and default parameters from SoundAsset::start_write().Carl Hetherington
They were more confusing than they were worth.
2023-03-16Specify number of channels in the data passed to SoundAssetWriter, and pad ↵Carl Hetherington
channels that aren't there.
2022-05-04Allow tests to be run on Windows.Carl Hetherington
2022-04-25Tidy up write_xml() API a little.Carl Hetherington
2021-04-12C++11 tidying.Carl Hetherington
2021-04-12Specify CPL standard on construction.Carl Hetherington
Then choose which standard DCP should use based on the CPL(s).
2021-03-26Write MCA tags based on the specified sound field.Carl Hetherington
I had previously assumed that one should write MCA information into the sound MXF based on what channels actually contain sound rather than silence. However a previous example of a stereo DCP gives a verification error in EasyDCP (see DoM bug #1935) which is solved by adding MCA tags for each channel in the specified sound field (e.g. at least 6 tags for a file which is marked as 5.1) even if the audio is really stereo. This commit removes the "active channels" stuff and makes sure that if we say a file is 5.1 we write at least 6 MCA tags (and similarly for 7.1).
2021-03-18Tidy how we're finding the tags and xsd directories.Carl Hetherington
2021-01-21Use enum class for the things in types.hCarl Hetherington
2021-01-17Replace dcp::File with dcp::ArrayData.Carl Hetherington
2021-01-17Remove 32x32 test image.Carl Hetherington
2021-01-08std::shared_ptrCarl Hetherington
2020-09-21Support MCA sound channel tags in MXF/CPL.Carl Hetherington
2020-09-21Add ContentVersion class.Carl Hetherington
2020-09-20Remove XMLMetadata use from tests.Carl Hetherington
2020-09-20Remove XMLMetadata from DCP::write_xml and DCP::write_assetmap.Carl Hetherington
2020-09-20Stop using XMLMetadata in CPL. It's always felt a bit clumsy, andCarl Hetherington
with the CPL metadata extension having a method like set_metadata() in CPL will be confusing.
2020-07-11Hopefully make all tests stable enough to be run with --random,Carl Hetherington
stopping test reference churn.
2019-12-01Check that KDM validity periods are safely within the validity periodsCarl Hetherington
of the signing certificate chain. This does cause problems when you try to create a KDM for a certificate you just made (due to the fact that certificates always have a start-valid time of "now") but hopefully this can be fixed up in another commit.
2019-03-16Fix some GPL boilerplate.Carl Hetherington
2018-11-08Take thumbprint rather than a full dcp::Certificate for trusted devices.Carl Hetherington
2018-03-13Store interop/SMPTE in MXF.Carl Hetherington
2018-02-14Use a bool instead of an int for disable-forensic-picture andCarl Hetherington
a optional<int> instead of an int with a magic -1 for disable-forensic-audio.
2018-02-14Make disabling forensic marking optional.Mart Jansink
2017-06-23Fix some test failures caused by changes to handling of metadata.Carl Hetherington
2017-02-14Fix test churn.Carl Hetherington
2016-09-09Simplify previous commit and remove some debugging.Carl Hetherington
2016-09-08Add channel assignment support for SMPTE DCPs.Carl Hetherington
2016-07-01asdcp headers moved into subdirectory.Carl Hetherington
2016-06-01Still more licence fixups.Carl Hetherington
2016-01-14Use out-of-tree asdcplib-cthCarl Hetherington
2015-11-15Support trusted device lists in KDMs.Carl Hetherington
2015-07-30Merge Signer into CertificateChain.Carl Hetherington
2015-07-30Rename certificates.{cc,h} -> certificate.{cc,h}.Carl Hetherington
2015-06-24No-op: whitespace.Carl Hetherington
2015-06-13Try to remove encryption test's dependency on LIBDCP_VERSION; update test ↵Carl Hetherington
refs accordingly.
2015-06-08Require only DCP::add() for the CPL; other assets found by looking in the CPL.Carl Hetherington
2015-06-08Some comments and test tweaks.Carl Hetherington
2015-06-05MXF -> Asset in lots of places.Carl Hetherington
2015-06-05Rename some stuff Content -> Asset.Carl Hetherington
2015-06-05encryption_test should add assets to the DCP.Carl Hetherington
2015-06-05Rationalise naming of test outputs; fix missing check of dcp_test2.Carl Hetherington
2014-07-21Remove some shared_ptr-itis.Carl Hetherington