Skip to content

Commit

Permalink
Merge pull request #219 in NL/ni-media from feature/update-from-githu…
Browse files Browse the repository at this point in the history
…b-26-01-21 to develop

  Added verbose tests for the user/fuzz files.
  Fix unused variable warning.
  • Loading branch information
ni-nkozlowski committed Mar 2, 2022
1 parent bc68965 commit 69378ec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions audiostream/test/ni/media/audio/aiff/aiff_sink.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <ni/media/audio/aiff/aiff_ofstream.h>
#include <ni/media/audio/ifstream.h>
#include <ni/media/reference_test.h>
#include <ni/media/test_helper.h>

#include <ni/media/sink_test.h>

Expand Down
4 changes: 3 additions & 1 deletion audiostream/test/ni/media/audio/ifstream.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ TEST( ni_media_audio_ifstream, move_assignment )
template <class Stream>
bool isWindowsMediaFoundation( const Stream& stream )
{
boost::ignore_unused( stream );

#if BOOST_OS_WINDOWS
if ( stream.info().container() == audio::ifstream_info::container_type::mp3
|| stream.info().container() == audio::ifstream_info::container_type::mp4 )
Expand Down Expand Up @@ -245,4 +247,4 @@ TEST_P( ifstream_test, read_begining_of_stream_interlaced_by_67_frames_backward


INSTANTIATE_TEST_SUITE_P( reference_files, ifstream_test, reference_files(), ParamToString{} );
INSTANTIATE_TEST_SUITE_P( user_files, ifstream_test, user_files() );
INSTANTIATE_TEST_SUITE_P( user_files, ifstream_test, user_files(), ParamToString{} );
3 changes: 2 additions & 1 deletion audiostream/test/ni/media/audio/ifstream_robustness.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <ni/media/audio/ifstream.h>
#include <ni/media/source_test.h>
#include <ni/media/test_helper.h>

#include <vector>

Expand Down Expand Up @@ -52,4 +53,4 @@ TEST_P( ifstream_robustness_test, stream_reaches_eof_on_first_read )
}


INSTANTIATE_TEST_SUITE_P( fuzz_files, ifstream_robustness_test, fuzz_files() );
INSTANTIATE_TEST_SUITE_P( fuzz_files, ifstream_robustness_test, fuzz_files(), ParamToString{} );
1 change: 1 addition & 0 deletions audiostream/test/ni/media/audio/wav/wav_sink.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <ni/media/audio/ifstream.h>
#include <ni/media/audio/wav/wav_ofstream.h>
#include <ni/media/reference_test.h>
#include <ni/media/test_helper.h>

#include <ni/media/sink_test.h>

Expand Down

0 comments on commit 69378ec

Please sign in to comment.