Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
baranovmv committed Dec 19, 2024
1 parent 9c839bb commit a475567
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 72 deletions.
3 changes: 1 addition & 2 deletions src/tests/roc_pipeline/test_helpers/control_writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ class ControlWriter : public core::NonCopyable<> {
, cname_("test_cname") {
}

void write_sender_report(core::nanoseconds_t ts,
packet::stream_timestamp_t rtp_ts) {
void write_sender_report(core::nanoseconds_t ts, packet::stream_timestamp_t rtp_ts) {
core::Slice<uint8_t> buff = packet_factory_.new_packet_buffer();
CHECK(buff);

Expand Down
2 changes: 1 addition & 1 deletion src/tests/roc_pipeline/test_helpers/frame_reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ class FrameReader : public core::NonCopyable<> {
}

private:
audio::FramePtr read_frame_(status::StatusCode expected_status,
audio::FramePtr gread_frame_(status::StatusCode expected_status,
size_t requested_samples,
const audio::SampleSpec& sample_spec,
audio::FrameReadMode read_mode) {
Expand Down
16 changes: 8 additions & 8 deletions src/tests/roc_pipeline/test_sender_sink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -660,8 +660,8 @@ TEST(sender_sink, metrics_feedback) {
control_writer.set_link_metrics(link_metrics);
control_writer.set_latency_metrics(latency_metrics);

control_writer.write_receiver_report(
frame_writer.refresh_ts(), packet_sample_spec);
control_writer.write_receiver_report(frame_writer.refresh_ts(),
packet_sample_spec);

for (size_t nf = 0; nf < FramesPerPacket; nf++) {
frame_writer.write_samples(SamplesPerFrame, input_sample_spec, unix_base);
Expand Down Expand Up @@ -821,8 +821,8 @@ TEST(sender_sink, reports_one_receiver) {

for (size_t np = 0; np < (ReportInterval / SamplesPerPacket) * ManyReports; np++) {
if (np % (ReportInterval / SamplesPerPacket) == 0) {
control_writer.write_receiver_report(
frame_writer.refresh_ts(), packet_sample_spec);
control_writer.write_receiver_report(frame_writer.refresh_ts(),
packet_sample_spec);
}

for (size_t nf = 0; nf < FramesPerPacket; nf++) {
Expand Down Expand Up @@ -915,10 +915,10 @@ TEST(sender_sink, reports_two_receivers) {

for (size_t np = 0; np < (ReportInterval / SamplesPerPacket) * ManyReports; np++) {
if (np % (ReportInterval / SamplesPerPacket) == 0) {
control_writer1.write_receiver_report(
frame_writer.refresh_ts(), packet_sample_spec);
control_writer2.write_receiver_report(
frame_writer.refresh_ts(), packet_sample_spec);
control_writer1.write_receiver_report(frame_writer.refresh_ts(),
packet_sample_spec);
control_writer2.write_receiver_report(frame_writer.refresh_ts(),
packet_sample_spec);
}

for (size_t nf = 0; nf < FramesPerPacket; nf++) {
Expand Down
Loading

0 comments on commit a475567

Please sign in to comment.