Home
last modified time | relevance | path

Searched refs:kNumPackets (Results 1 – 17 of 17) sorted by relevance

/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/
Dmetric_recorder_unittest.cc46 const int kNumPackets = 1000; in TEST_F() local
48 for (int i = 0; i < kNumPackets; ++i) { in TEST_F()
70 const int kNumPackets = 1000; in TEST_F() local
73 for (int i = 0; i < kNumPackets; ++i) { in TEST_F()
81 for (int i = 0; i < kNumPackets; ++i) { in TEST_F()
89 size_t received_bits = kPayloadSizeBytes * 8 * kNumPackets; in TEST_F()
95 double expected_x = (kNumPackets + 1) / 2.0; in TEST_F()
96 double expected_x2 = ((kNumPackets + 1) * (2 * kNumPackets + 1)) / 6.0; in TEST_F()
98 EXPECT_NEAR(metric_recorder_.DelayStdDev(), sqrt(var), kNumPackets / 1000.0); in TEST_F()
101 EXPECT_EQ(metric_recorder_.NthDelayPercentile(5), (5 * kNumPackets) / 100); in TEST_F()
[all …]
Dbwe_unittest.cc245 const int kNumPackets = arraysize(kSequenceNumbers); in TEST_F() local
249 for (int j = 0; j < kNumPackets; j++) { in TEST_F()
256 EXPECT_NEAR(bwe_receiver_.RecentPacketLossRatio(), 1.0f / (kNumPackets + 1), in TEST_F()
257 0.1f / (kNumPackets + 1)); in TEST_F()
337 const int kNumPackets = 100; in TEST_F() local
342 for (int i = 0; i < kNumPackets; ++i) { in TEST_F()
348 (8 * kNumPackets * kPacketSizeBytes) / (1000 * window_size_s), in TEST_F()
355 static_cast<uint16_t>(kNumPackets)); in TEST_F()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Ddelay_peak_detector_unittest.cc40 const int kNumPackets = 1000; in TEST() local
41 int arrival_times_ms[kNumPackets]; in TEST()
42 for (int i = 0; i < kNumPackets; ++i) { in TEST()
63 while (next < kNumPackets) { in TEST()
64 while (next < kNumPackets && arrival_times_ms[next] <= time) { in TEST()
91 const int kNumPackets = 1000; in TEST() local
92 int arrival_times_ms[kNumPackets]; in TEST()
93 for (int i = 0; i < kNumPackets; ++i) { in TEST()
109 while (next < kNumPackets) { in TEST()
110 while (next < kNumPackets && arrival_times_ms[next] <= time) { in TEST()
/external/webrtc/webrtc/test/
Dfake_network_pipe_unittest.cc83 const int kNumPackets = 10; in TEST_F() local
85 SendPackets(pipe.get(), kNumPackets , kPacketSize); in TEST_F()
121 const int kNumPackets = 2; in TEST_F() local
123 SendPackets(pipe.get(), kNumPackets , kPacketSize); in TEST_F()
211 const int kNumPackets = 10; in TEST_F() local
213 SendPackets(pipe.get(), kNumPackets, kPacketSize); in TEST_F()
223 for (int i = 0; i < kNumPackets; ++i) { in TEST_F()
235 SendPackets(pipe.get(), kNumPackets, kPacketSize); in TEST_F()
245 for (int i = 0; i < kNumPackets; ++i) { in TEST_F()
252 EXPECT_EQ(static_cast<size_t>(2 * kNumPackets), pipe->sent_packets()); in TEST_F()
[all …]
/external/perfetto/src/tracing/core/
Dstartup_trace_writer_unittest.cc193 const size_t kNumPackets = 32; in TEST_P() local
194 WritePackets(writer.get(), kNumPackets); in TEST_P()
198 VerifyPackets(kNumPackets); in TEST_P()
207 const size_t kNumPackets = 32; in TEST_P() local
208 WritePackets(writer.get(), kNumPackets); in TEST_P()
212 VerifyPackets(kNumPackets); in TEST_P()
218 const size_t kNumPackets = 32; in TEST_P() local
219 WritePackets(writer.get(), kNumPackets); in TEST_P()
230 const size_t kNumPackets = 32; in TEST_P() local
231 WritePackets(writer.get(), kNumPackets); in TEST_P()
[all …]
Dtrace_writer_impl_unittest.cc67 const size_t kNumPackets = 32; in TEST_P() local
68 for (size_t i = 0; i < kNumPackets; i++) { in TEST_P()
94 EXPECT_EQ(kNumPackets, packets_count); in TEST_P()
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dproducer_fec_unittest.cc113 const int kNumPackets = 4; in TEST_F() local
116 generator_->NewFrame(kNumPackets); in TEST_F()
119 for (int i = 0; i < kNumPackets; ++i) { in TEST_F()
152 const int kNumPackets = 2; in TEST_F() local
160 generator_->NewFrame(kNumPackets); in TEST_F()
161 for (int j = 0; j < kNumPackets; ++j) { in TEST_F()
162 RtpPacket* rtp_packet = generator_->NextPacket(i * kNumPackets + j, 10); in TEST_F()
Drtp_sender_unittest.cc1052 const uint32_t kNumPackets = 15; in TEST_F() local
1070 for (uint32_t i = 0; i < kNumPackets; ++i) { in TEST_F()
1085 EXPECT_EQ(start_time + (kNumPackets * kPacketInterval), in TEST_F()
1369 const int32_t kNumPackets = 30; in TEST_F() local
1371 rtp_sender_->SetStorePacketsStatus(true, kNumPackets); in TEST_F()
1373 rtp_sender_->SetTargetBitrate(kNumPackets * kPacketSize * 8); in TEST_F()
1376 for (int32_t i = 0; i < kNumPackets; ++i) { in TEST_F()
1381 EXPECT_EQ(kNumPackets, transport_.packets_sent_); in TEST_F()
1383 fake_clock_.AdvanceTimeMilliseconds(1000 - kNumPackets); in TEST_F()
1389 EXPECT_EQ(kNumPackets * 2, transport_.packets_sent_); in TEST_F()
[all …]
/external/webrtc/webrtc/modules/pacing/
Dpaced_sender_unittest.cc667 const size_t kNumPackets = 60; in TEST_F() local
673 for (size_t i = 0; i < kNumPackets; ++i) { in TEST_F()
680 static_cast<int64_t>(kNumPackets * kPacketSize * 8 / kMaxBitrate); in TEST_F()
721 const int kNumPackets = 11; in TEST_F() local
722 const int kNumDeltas = kNumPackets - 1; in TEST_F()
730 expected_deltas + kNumPackets - 1); in TEST_F()
739 for (int i = 0; i < kNumPackets; ++i) { in TEST_F()
744 while (callback.packets_sent() < kNumPackets) { in TEST_F()
755 const int kNumPackets = 11; in TEST_F() local
756 const int kNumDeltas = kNumPackets - 1; in TEST_F()
[all …]
Dpacket_router_unittest.cc162 const size_t kNumPackets = 32; in TEST_F() local
166 for (size_t i = 0; i < kNumPackets; ++i) { in TEST_F()
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/estimators/
Dnada_unittest.cc361 const int kNumPackets = arraysize(kMedianFilteredDelaysMs); in TEST_F() local
364 int64_t exp_smoothed_delays_ms[kNumPackets]; in TEST_F()
367 for (int i = 1; i < kNumPackets; ++i) { in TEST_F()
373 for (int i = 0; i < kNumPackets; ++i) { in TEST_F()
430 const int kNumPackets = arraysize(kMedianFilteredDelaysMs); in TEST_F() local
433 int64_t exp_smoothed_delays_ms[kNumPackets]; in TEST_F()
436 for (int i = 1; i < kNumPackets; ++i) { in TEST_F()
442 for (int i = 0; i < kNumPackets; ++i) { in TEST_F()
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/
Dtransport_feedback_unittest.cc310 const size_t kNumPackets = (3 * 7) + 1; in TEST() local
312 (kSmallDeltaSize * (kNumPackets - 1)) + in TEST()
315 uint16_t kReceived[kNumPackets]; in TEST()
316 for (size_t i = 0; i < kNumPackets; ++i) in TEST()
319 int64_t kReceiveTimes[kNumPackets]; in TEST()
321 for (size_t i = 1; i < kNumPackets; ++i) { in TEST()
328 test.WithInput(kReceived, kReceiveTimes, kNumPackets); in TEST()
/external/perfetto/test/
Dend_to_end_integrationtest.cc406 static constexpr size_t kNumPackets = 11; in TEST_F() local
410 ds_config->mutable_for_testing()->set_message_count(kNumPackets); in TEST_F()
421 ASSERT_EQ(packets.size(), kNumPackets); in TEST_F()
447 static constexpr size_t kNumPackets = 7; in TEST_F() local
451 ds_config->mutable_for_testing()->set_message_count(kNumPackets); in TEST_F()
462 ASSERT_EQ(packets.size(), kNumPackets); in TEST_F()
483 static constexpr size_t kNumPackets = 11; in TEST_F() local
484 ds_config->mutable_for_testing()->set_message_count(kNumPackets); in TEST_F()
515 ASSERT_EQ(packets.size(), kNumPackets); in TEST_F()
/external/perfetto/src/tracing/test/
Dtracing_integration_test.cc280 const size_t kNumPackets = 10; in TEST_F() local
281 for (size_t i = 0; i < kNumPackets; i++) { in TEST_F()
348 ASSERT_EQ(kNumPackets, num_pack_rx); in TEST_F()
394 const size_t kNumPackets = 10; in TEST_F() local
395 for (size_t i = 0; i < kNumPackets; i++) { in TEST_F()
/external/webrtc/webrtc/modules/audio_coding/codecs/red/
Daudio_encoder_copy_red_unittest.cc190 static const int kNumPackets = 10; in TEST_F() local
192 for (int encode_size = 1; encode_size <= kNumPackets; ++encode_size) { in TEST_F()
205 for (size_t i = 2; i <= kNumPackets; ++i) { in TEST_F()
/external/webrtc/webrtc/modules/audio_coding/acm2/
Dacm_receiver_unittest_oldapi.cc304 const int kNumPackets = 5; in TEST_F() local
307 for (int n = 0; n < kNumPackets; ++n) { in TEST_F()
317 for (int n = 0; n < kNumPackets; ++n) { in TEST_F()
Daudio_coding_module_unittest_oldapi.cc460 static const int kNumPackets = 500; member in webrtc::AudioCodingModuleMtTestOldApi
505 if (packet_cb_.num_calls() > kNumPackets) { in TestDone()
605 static const int kNumPackets = 500; member in webrtc::AcmIsacMtTestOldApi
683 if (packet_cb_.num_calls() > kNumPackets) { in TestDone()
712 static const int kNumPackets = 10; member in webrtc::AcmReRegisterIsacMtTestOldApi
839 if (codec_registered_ && receive_packet_count_ > kNumPackets) { in CbCodecRegistrationImpl()