From a5e3f2781736ac82493f3102cef8813e7d238c6f Mon Sep 17 00:00:00 2001 From: Victor Gaydov Date: Fri, 19 Jul 2024 14:18:32 +0400 Subject: [PATCH] Fix build after rebase --- src/internal_modules/roc_core/csv_dumper.h | 2 ++ src/tests/roc_pipeline/test_receiver_source.cpp | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/internal_modules/roc_core/csv_dumper.h b/src/internal_modules/roc_core/csv_dumper.h index 302c74f1a..bdc794794 100644 --- a/src/internal_modules/roc_core/csv_dumper.h +++ b/src/internal_modules/roc_core/csv_dumper.h @@ -43,6 +43,8 @@ struct CsvEntry { //! CSV write configuration. struct CsvConfig { + //! Path to the output CSV file. + //! Can't be null. const char* dump_file; //! Maximum number of queued entries. diff --git a/src/tests/roc_pipeline/test_receiver_source.cpp b/src/tests/roc_pipeline/test_receiver_source.cpp index 84fb1bf41..1cd99c630 100644 --- a/src/tests/roc_pipeline/test_receiver_source.cpp +++ b/src/tests/roc_pipeline/test_receiver_source.cpp @@ -3561,7 +3561,7 @@ TEST(receiver_source, metrics_truncation) { // Check how receiver computes packet metrics: // expected_packets, lost_packets, ext_first_seqnum, ext_last_seqnum TEST(receiver_source, metrics_packet_counters) { - enum { Rate = SampleRate, Chans = Chans_Stereo, InitSeqnum = 0xFFFC }; + enum { InitSeqnum = 0xFFFC }; uint32_t seqnum = InitSeqnum; uint32_t prev_seqnum = InitSeqnum; size_t pkt_counter = 0; @@ -3569,10 +3569,11 @@ TEST(receiver_source, metrics_packet_counters) { size_t pkt_lost_counter = 0; size_t prev_pkt_lost_counter = 0; - init(Rate, Chans, Rate, Chans); + init_with_defaults(); - ReceiverSource receiver(make_default_config(), encoding_map, packet_pool, - packet_buffer_pool, frame_pool, frame_buffer_pool, arena); + ReceiverSource receiver(make_default_config(), processor_map, encoding_map, + packet_pool, packet_buffer_pool, frame_pool, + frame_buffer_pool, arena); LONGS_EQUAL(status::StatusOK, receiver.init_status()); ReceiverSlot* slot = create_slot(receiver); @@ -3614,15 +3615,14 @@ TEST(receiver_source, metrics_packet_counters) { for (size_t np = 0; np < ManyPackets; np++) { const bool lose_pkt = np % 3 == 0 && np; for (size_t nf = 0; nf < FramesPerPacket; nf++) { - LONGS_EQUAL(status::StatusOK, - receiver.refresh(frame_reader.refresh_ts(), NULL)); + refresh_source(receiver, frame_reader.refresh_ts()); frame_reader.read_any_samples(SamplesPerFrame, output_sample_spec); UNSIGNED_LONGS_EQUAL(1, receiver.num_sessions()); } if (lose_pkt) { - packet_writer.skip_packets(1, SamplesPerPacket); + packet_writer.skip_packets(1, SamplesPerPacket, output_sample_spec); } else { packet_writer.write_packets(1, SamplesPerPacket, output_sample_spec); }