X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=test%2Faudio_mapping_test.cc;h=fc597b91df10e4ca9dadaf8303a4b7cb844de983;hb=402dfb22c35dd6de41df29d6f3d4aaaf220bf41b;hp=a2a74104b513820e367b43d67d2609beb099c324;hpb=92f5278d49d3d52a4d9d8b87a667470db01de94a;p=dcpomatic.git diff --git a/test/audio_mapping_test.cc b/test/audio_mapping_test.cc index a2a74104b..fc597b91d 100644 --- a/test/audio_mapping_test.cc +++ b/test/audio_mapping_test.cc @@ -17,13 +17,14 @@ */ +/** @file test/audio_mapping_test.cc + * @brief Basic tests of the AudioMapping class, which itself doesn't really do much. + */ + #include #include "lib/audio_mapping.h" #include "lib/util.h" -/* Basic tests of the AudioMapping class, which itself - doesn't really do much. -*/ BOOST_AUTO_TEST_CASE (audio_mapping_test) { AudioMapping none; @@ -34,11 +35,11 @@ BOOST_AUTO_TEST_CASE (audio_mapping_test) four.make_default (); for (int i = 0; i < 4; ++i) { - for (int j = 0; j < MAX_AUDIO_CHANNELS; ++j) { - BOOST_CHECK_EQUAL (four.get (i, static_cast (j)), i == j ? 1 : 0); + for (int j = 0; j < MAX_DCP_AUDIO_CHANNELS; ++j) { + BOOST_CHECK_EQUAL (four.get (i, static_cast (j)), i == j ? 1 : 0); } } - four.set (0, libdcp::RIGHT, 1); - BOOST_CHECK_EQUAL (four.get (0, libdcp::RIGHT), 1); + four.set (0, dcp::RIGHT, 1); + BOOST_CHECK_EQUAL (four.get (0, dcp::RIGHT), 1); }