Searched refs:prng_ (Results 1 – 4 of 4) sorted by relevance
/external/webrtc/logging/rtc_event_log/ |
D | rtc_event_log_unittest_helper.cc | 92 return std::make_unique<RtcEventAlrState>(prng_.Rand<bool>()); in NewAlrState() 105 config->bitrate_bps = prng_.Rand(0, 3000000); in NewAudioNetworkAdaptation() 106 config->enable_fec = prng_.Rand<bool>(); in NewAudioNetworkAdaptation() 107 config->enable_dtx = prng_.Rand<bool>(); in NewAudioNetworkAdaptation() 108 config->frame_length_ms = prng_.Rand(10, 120); in NewAudioNetworkAdaptation() 109 config->num_channels = prng_.Rand(1, 2); in NewAudioNetworkAdaptation() 110 config->uplink_packet_loss_fraction = prng_.Rand<float>(); in NewAudioNetworkAdaptation() 118 int32_t bitrate_bps = prng_.Rand(0, kMaxBweBps); in NewBweUpdateDelayBased() 120 prng_.Rand(static_cast<uint32_t>(BandwidthUsage::kLast) - 1)); in NewBweUpdateDelayBased() 128 int32_t bitrate_bps = prng_.Rand(0, kMaxBweBps); in NewBweUpdateLossBased() [all …]
|
D | rtc_event_log_unittest.cc | 111 prng_(seed_), in RtcEventLogSession() 116 clock_.SetTime(Timestamp::Micros(prng_.Rand<uint32_t>())); in RtcEventLogSession() 196 Random prng_; member in webrtc::__anon312146950111::RtcEventLogSession 220 clock_.AdvanceTime(TimeDelta::Millis(prng_.Rand(20))); in WriteAudioRecvConfigs() 222 ssrc = prng_.Rand<uint32_t>(); in WriteAudioRecvConfigs() 237 clock_.AdvanceTime(TimeDelta::Millis(prng_.Rand(20))); in WriteAudioSendConfigs() 239 ssrc = prng_.Rand<uint32_t>(); in WriteAudioSendConfigs() 259 clock_.AdvanceTime(TimeDelta::Millis(prng_.Rand(20))); in WriteVideoRecvConfigs() 260 uint32_t ssrc = prng_.Rand<uint32_t>(); in WriteVideoRecvConfigs() 266 clock_.AdvanceTime(TimeDelta::Millis(prng_.Rand(20))); in WriteVideoRecvConfigs() [all …]
|
D | rtc_event_log_unittest_helper.h | 65 explicit EventGenerator(uint64_t seed) : prng_(seed) {} in EventGenerator() 145 Random prng_; variable
|
/external/webrtc/logging/rtc_event_log/encoder/ |
D | rtc_event_log_encoder_unittest.cc | 50 prng_(seed_), in RtcEventLogEncoderTest() 87 Random prng_; member in webrtc::RtcEventLogEncoderTest 174 const uint32_t ssrc = kSsrcPool[prng_.Rand(kSsrcPool.size() - 1)]; in TestRtpPackets() 271 prng_.Rand(0, std::numeric_limits<int32_t>::max())); in TEST_P() 288 const int frame_length_ms = prng_.Rand(1, 1000); in TEST_P() 305 const float plr = std::pow(0.5f, prng_.Rand(1, 8)); in TEST_P() 323 runtime_config->enable_fec = prng_.Rand<bool>(); in TEST_P() 339 runtime_config->enable_dtx = prng_.Rand<bool>(); in TEST_P() 355 runtime_config->num_channels = prng_.Rand(1, 2); in TEST_P() 372 prng_.Rand(0, std::numeric_limits<int32_t>::max())); in TEST_P() [all …]
|