/external/webrtc/webrtc/modules/audio_coding/neteq/ |
H A D | delay_peak_detector_unittest.cc | 40 const int kNumPackets = 1000; local 41 int arrival_times_ms[kNumPackets]; 42 for (int i = 0; i < kNumPackets; ++i) { 63 while (next < kNumPackets) { 64 while (next < kNumPackets && arrival_times_ms[next] <= time) { 91 const int kNumPackets = 1000; local 92 int arrival_times_ms[kNumPackets]; 93 for (int i = 0; i < kNumPackets; ++i) { 109 while (next < kNumPackets) { 110 while (next < kNumPackets [all...] |
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
H A D | metric_recorder_unittest.cc | 46 const int kNumPackets = 1000; local 48 for (int i = 0; i < kNumPackets; ++i) { 70 const int kNumPackets = 1000; local 73 for (int i = 0; i < kNumPackets; ++i) { 81 for (int i = 0; i < kNumPackets; ++i) { 89 size_t received_bits = kPayloadSizeBytes * 8 * kNumPackets; 95 double expected_x = (kNumPackets + 1) / 2.0; 96 double expected_x2 = ((kNumPackets + 1) * (2 * kNumPackets + 1)) / 6.0; 98 EXPECT_NEAR(metric_recorder_.DelayStdDev(), sqrt(var), kNumPackets / 1000. [all...] |
H A D | bwe_unittest.cc | 245 const int kNumPackets = arraysize(kSequenceNumbers); local 249 for (int j = 0; j < kNumPackets; j++) { 256 EXPECT_NEAR(bwe_receiver_.RecentPacketLossRatio(), 1.0f / (kNumPackets + 1), 257 0.1f / (kNumPackets + 1)); 337 const int kNumPackets = 100; local 342 for (int i = 0; i < kNumPackets; ++i) { 348 (8 * kNumPackets * kPacketSizeBytes) / (1000 * window_size_s), 355 static_cast<uint16_t>(kNumPackets));
|
/external/webrtc/webrtc/test/ |
H A D | fake_network_pipe_unittest.cc | 83 const int kNumPackets = 10; local 85 SendPackets(pipe.get(), kNumPackets , kPacketSize); 121 const int kNumPackets = 2; local 123 SendPackets(pipe.get(), kNumPackets , kPacketSize); 211 const int kNumPackets = 10; local 213 SendPackets(pipe.get(), kNumPackets, kPacketSize); 223 for (int i = 0; i < kNumPackets; ++i) { 235 SendPackets(pipe.get(), kNumPackets, kPacketSize); 245 for (int i = 0; i < kNumPackets; ++i) { 252 EXPECT_EQ(static_cast<size_t>(2 * kNumPackets), pip 269 const int kNumPackets = 10; local [all...] |
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
H A D | producer_fec_unittest.cc | 107 // The number of media packets (|kNumPackets|), number of frames (one for 113 const int kNumPackets = 4; local 116 generator_->NewFrame(kNumPackets); 119 for (int i = 0; i < kNumPackets; ++i) { 145 // The number of media packets/frame (|kNumPackets|), the number of frames 152 const int kNumPackets = 2; local 160 generator_->NewFrame(kNumPackets); 161 for (int j = 0; j < kNumPackets; ++j) { 162 RtpPacket* rtp_packet = generator_->NextPacket(i * kNumPackets + j, 10);
|
H A D | rtp_sender_unittest.cc | 1051 // Simulate kNumPackets sent with kPacketInterval ms intervals. 1052 const uint32_t kNumPackets = 15; local 1070 for (uint32_t i = 0; i < kNumPackets; ++i) { 1085 EXPECT_EQ(start_time + (kNumPackets * kPacketInterval), 1369 const int32_t kNumPackets = 30; local 1371 rtp_sender_->SetStorePacketsStatus(true, kNumPackets); 1372 // Set bitrate (in kbps) to fit kNumPackets รก kPacketSize bytes in one second. 1373 rtp_sender_->SetTargetBitrate(kNumPackets * kPacketSize * 8); 1376 for (int32_t i = 0; i < kNumPackets; ++i) { 1381 EXPECT_EQ(kNumPackets, transport [all...] |
/external/webrtc/webrtc/modules/pacing/ |
H A D | paced_sender_unittest.cc | 667 const size_t kNumPackets = 60; local 673 for (size_t i = 0; i < kNumPackets; ++i) { 680 static_cast<int64_t>(kNumPackets * kPacketSize * 8 / kMaxBitrate); 721 const int kNumPackets = 11; local 722 const int kNumDeltas = kNumPackets - 1; 730 expected_deltas + kNumPackets - 1); 739 for (int i = 0; i < kNumPackets; ++i) { 744 while (callback.packets_sent() < kNumPackets) { 755 const int kNumPackets = 11; local 756 const int kNumDeltas = kNumPackets [all...] |
H A D | packet_router_unittest.cc | 162 const size_t kNumPackets = 32; local 166 for (size_t i = 0; i < kNumPackets; ++i) {
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/estimators/ |
H A D | nada_unittest.cc | 361 const int kNumPackets = arraysize(kMedianFilteredDelaysMs); local 364 int64_t exp_smoothed_delays_ms[kNumPackets]; 367 for (int i = 1; i < kNumPackets; ++i) { 373 for (int i = 0; i < kNumPackets; ++i) { 430 const int kNumPackets = arraysize(kMedianFilteredDelaysMs); local 433 int64_t exp_smoothed_delays_ms[kNumPackets]; 436 for (int i = 1; i < kNumPackets; ++i) { 442 for (int i = 0; i < kNumPackets; ++i) {
|
/external/webrtc/webrtc/modules/rtp_rtcp/source/rtcp_packet/ |
H A D | transport_feedback_unittest.cc | 310 const size_t kNumPackets = (3 * 7) + 1; local 312 (kSmallDeltaSize * (kNumPackets - 1)) + 315 uint16_t kReceived[kNumPackets]; 316 for (size_t i = 0; i < kNumPackets; ++i) 319 int64_t kReceiveTimes[kNumPackets]; 321 for (size_t i = 1; i < kNumPackets; ++i) { 328 test.WithInput(kReceived, kReceiveTimes, kNumPackets);
|
/external/webrtc/webrtc/modules/audio_coding/codecs/red/ |
H A D | audio_encoder_copy_red_unittest.cc | 190 static const int kNumPackets = 10; local 192 for (int encode_size = 1; encode_size <= kNumPackets; ++encode_size) { 205 for (size_t i = 2; i <= kNumPackets; ++i) {
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
H A D | acm_receiver_unittest_oldapi.cc | 304 const int kNumPackets = 5; local 307 for (int n = 0; n < kNumPackets; ++n) { 317 for (int n = 0; n < kNumPackets; ++n) {
|
H A D | audio_coding_module_unittest_oldapi.cc | 460 static const int kNumPackets = 500; member in class:webrtc::AudioCodingModuleMtTestOldApi 505 if (packet_cb_.num_calls() > kNumPackets) { 605 static const int kNumPackets = 500; member in class:webrtc::AcmIsacMtTestOldApi 683 if (packet_cb_.num_calls() > kNumPackets) { 712 static const int kNumPackets = 10; member in class:webrtc::AcmReRegisterIsacMtTestOldApi 839 if (codec_registered_ && receive_packet_count_ > kNumPackets) {
|