Skip to content

Commit

Permalink
Fix test populator
Browse files Browse the repository at this point in the history
  • Loading branch information
baranovmv committed Jan 28, 2024
1 parent f00ba8a commit cf033d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tests/roc_rtp/test_populator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ namespace {
enum { ChMask = 3, PacketSz = 128, SampleRate = 10000 };

const audio::SampleSpec SampleSpec = audio::SampleSpec(
SampleRate, audio::ChanLayout_Surround, audio::ChanOrder_Smpte, ChMask);
SampleRate, audio::Sample_RawFormat, audio::ChanLayout_Surround, audio::ChanOrder_Smpte, ChMask);

const audio::PcmFormat PcmFmt = audio::PcmFormat_SInt16_Be;

Expand Down Expand Up @@ -122,10 +122,10 @@ TEST(populator, non_empty_duration_recovered) {
core::Slice<uint8_t> buffer = buffer_factory.new_buffer();
CHECK(buffer);
packet::PacketPtr wp = new_packet(duration);
queue.write(wp);
CHECK_EQUAL(status::StatusOK, queue.write(wp));

packet::PacketPtr rp;
LONGS_EQUAL(0, populator.read(rp));
CHECK_EQUAL(status::StatusOK, populator.read(rp));
CHECK(rp);
CHECK(wp == rp);
LONGS_EQUAL(duration, rp->rtp()->duration);
Expand Down

0 comments on commit cf033d0

Please sign in to comment.