/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
D | metric_recorder_unittest.cc | 46 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 …]
|
D | bwe_unittest.cc | 245 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/ |
D | delay_peak_detector_unittest.cc | 40 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/ |
D | fake_network_pipe_unittest.cc | 83 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/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | producer_fec_unittest.cc | 113 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()
|
D | rtp_sender_unittest.cc | 1052 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/ |
D | paced_sender_unittest.cc | 667 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 …]
|
D | packet_router_unittest.cc | 162 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/ |
D | nada_unittest.cc | 361 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/ |
D | transport_feedback_unittest.cc | 310 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/webrtc/webrtc/modules/audio_coding/codecs/red/ |
D | audio_encoder_copy_red_unittest.cc | 190 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/ |
D | acm_receiver_unittest_oldapi.cc | 304 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()
|
D | audio_coding_module_unittest_oldapi.cc | 460 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()
|