Home
last modified time | relevance | path

Searched refs:fake_clock_ (Results 1 – 25 of 45) sorted by relevance

12

/external/webrtc/modules/rtp_rtcp/source/
Drtp_packet_history_unittest.cc38 : fake_clock_(123456), in RtpPacketHistoryTest()
39 hist_(&fake_clock_, /*enable_padding_prio=*/GetParam()) {} in RtpPacketHistoryTest()
41 SimulatedClock fake_clock_; member in webrtc::RtpPacketHistoryTest
48 packet->set_capture_time_ms(fake_clock_.TimeInMilliseconds()); in CreateRtpPacket()
90 fake_clock_.AdvanceTimeMilliseconds( in TEST_P()
148 hist_.PutRtpPacket(std::move(packet), fake_clock_.TimeInMilliseconds()); in TEST_P()
154 EXPECT_EQ(state->send_time_ms, fake_clock_.TimeInMilliseconds()); in TEST_P()
155 EXPECT_EQ(state->capture_time_ms, fake_clock_.TimeInMilliseconds()); in TEST_P()
160 fake_clock_.AdvanceTimeMilliseconds(1); in TEST_P()
162 fake_clock_.AdvanceTimeMilliseconds(kRttMs + 1); in TEST_P()
[all …]
Drtp_sender_audio_unittest.cc70 : fake_clock_(kStartTime), in RtpSenderAudioTest()
74 config.clock = &fake_clock_; in RtpSenderAudioTest()
79 rtp_sender_audio_(&fake_clock_, rtp_module_->RtpSender()) {
83 SimulatedClock fake_clock_; member in webrtc::RtpSenderAudioTest
190 uint32_t capture_timestamp = fake_clock_.TimeInMilliseconds(); in TEST_F()
Drtp_sender_video_unittest.cc167 fake_clock_(kStartTime), in RtpSenderVideoTest()
168 retransmission_rate_limiter_(&fake_clock_, 1000), in RtpSenderVideoTest()
171 config.clock = &fake_clock_; in RtpSenderVideoTest()
178 rtp_sender_video_(&fake_clock_,
192 SimulatedClock fake_clock_; member in webrtc::__anonc30e10920111::RtpSenderVideoTest
224 const int64_t kCaptureTimestamp = fake_clock_.TimeInMilliseconds(); in TEST_P()
231 fake_clock_.AdvanceTimeMilliseconds(kPacketizationTimeMs); in TEST_P()
426 fake_clock_.AdvanceTimeMilliseconds(kFrameIntervalMs); in TEST_P()
436 fake_clock_.AdvanceTimeMilliseconds(kFrameIntervalMs); in TEST_P()
439 fake_clock_.AdvanceTimeMilliseconds(kFrameIntervalMs); in TEST_P()
[all …]
Dulpfec_generator_unittest.cc53 : fake_clock_(1), in UlpfecGeneratorTest()
54 ulpfec_generator_(kRedPayloadType, kFecPayloadType, &fake_clock_), in UlpfecGeneratorTest()
57 SimulatedClock fake_clock_; member in webrtc::UlpfecGeneratorTest
/external/webrtc/call/
Dfake_network_pipe_unittest.cc50 FakeNetworkPipeTest() : fake_clock_(12345) {} in FakeNetworkPipeTest()
69 SimulatedClock fake_clock_; member in webrtc::FakeNetworkPipeTest
80 &fake_clock_, std::move(simulated_network), &receiver)); in TEST_F()
97 fake_clock_.AdvanceTimeMilliseconds(kPacketTimeMs); in TEST_F()
102 fake_clock_.AdvanceTimeMilliseconds(9 * kPacketTimeMs - 1); in TEST_F()
107 fake_clock_.AdvanceTimeMilliseconds(1); in TEST_F()
121 &fake_clock_, std::move(simulated_network), &receiver)); in TEST_F()
132 fake_clock_.AdvanceTimeMilliseconds(kPacketTimeMs); in TEST_F()
137 fake_clock_.AdvanceTimeMilliseconds(config.queue_delay_ms); in TEST_F()
142 fake_clock_.AdvanceTimeMilliseconds(kPacketTimeMs); in TEST_F()
[all …]
/external/webrtc/video/
Dquality_limitation_reason_tracker_unittest.cc22 : fake_clock_(1234), tracker_(&fake_clock_) {} in QualityLimitationReasonTrackerTest()
25 SimulatedClock fake_clock_; member in webrtc::QualityLimitationReasonTrackerTest
42 fake_clock_.AdvanceTimeMilliseconds(9999); in TEST_F()
52 fake_clock_.AdvanceTimeMilliseconds(50); in TEST_F()
54 fake_clock_.AdvanceTimeMilliseconds(50); in TEST_F()
79 fake_clock_.AdvanceTimeMilliseconds(4321); in TEST_P()
88 fake_clock_.AdvanceTimeMilliseconds(100); in TEST_P()
92 fake_clock_.AdvanceTimeMilliseconds(50); in TEST_P()
96 fake_clock_.AdvanceTimeMilliseconds(1000); in TEST_P()
100 fake_clock_.AdvanceTimeMilliseconds(100); in TEST_P()
Dreceive_statistics_proxy_unittest.cc42 ReceiveStatisticsProxyTest() : fake_clock_(1234), config_(GetTestConfig()) {} in ReceiveStatisticsProxyTest()
48 statistics_proxy_.reset(new ReceiveStatisticsProxy(&config_, &fake_clock_)); in SetUp()
74 frame.set_ntp_time_ms(fake_clock_.CurrentNtpInMilliseconds()); in CreateVideoFrame()
78 SimulatedClock fake_clock_; member in webrtc::ReceiveStatisticsProxyTest
100 fake_clock_.AdvanceTimeMilliseconds(1000 / kFps); in TEST_F()
117 fake_clock_.AdvanceTimeMilliseconds(1000 / kFps); in TEST_F()
210 fake_clock_.AdvanceTime(kInterFrameDelay1); in TEST_F()
222 fake_clock_.AdvanceTime(kInterFrameDelay2); in TEST_F()
234 fake_clock_.AdvanceTime(kInterFrameDelay3); in TEST_F()
257 fake_clock_.AdvanceTimeMilliseconds(kInterframeDelayMs1); in TEST_F()
[all …]
Dreceive_statistics_proxy2_unittest.cc47 ReceiveStatisticsProxy2Test() : fake_clock_(1234), config_(GetTestConfig()) { in ReceiveStatisticsProxy2Test()
50 new ReceiveStatisticsProxy(&config_, &fake_clock_, loop_.task_queue())); in ReceiveStatisticsProxy2Test()
96 frame.set_ntp_time_ms(fake_clock_.CurrentNtpInMilliseconds()); in CreateVideoFrame()
101 Timestamp Now() { return fake_clock_.CurrentTime(); } in Now()
113 SimulatedClock fake_clock_; member in webrtc::internal::ReceiveStatisticsProxy2Test
136 fake_clock_.AdvanceTimeMilliseconds(1000 / kFps); in TEST_F()
152 fake_clock_.AdvanceTimeMilliseconds(1000 / kFps); in TEST_F()
244 fake_clock_.AdvanceTime(kInterFrameDelay1); in TEST_F()
256 fake_clock_.AdvanceTime(kInterFrameDelay2); in TEST_F()
268 fake_clock_.AdvanceTime(kInterFrameDelay3); in TEST_F()
[all …]
Dsend_statistics_proxy_unittest.cc66 fake_clock_(1234), in SendStatisticsProxyTest()
76 &fake_clock_, GetTestConfig(), in SetUp()
172 SimulatedClock fake_clock_; member in webrtc::SendStatisticsProxyTest
424 Timestamp::Millis(fake_clock_.TimeInMilliseconds())); in TEST_F()
434 fake_clock_.AdvanceTimeMilliseconds(kInterframeDelayMs); in TEST_F()
436 Timestamp::Millis(fake_clock_.TimeInMilliseconds())); in TEST_F()
455 Timestamp::Millis(fake_clock_.TimeInMilliseconds())); in TEST_F()
462 fake_clock_.AdvanceTimeMilliseconds(kInterframeDelayMs); in TEST_F()
464 Timestamp::Millis(fake_clock_.TimeInMilliseconds())); in TEST_F()
654 fake_clock_.AdvanceTimeMilliseconds(metrics::kMinRunTimeInSeconds * 1000); in TEST_F()
[all …]
Dcall_stats2_unittest.cc66 SimulatedClock fake_clock_{12345}; member in webrtc::internal::CallStats2Test
67 CallStats call_stats_{&fake_clock_, loop_.task_queue()};
99 fake_clock_.AdvanceTimeMilliseconds(CallStats::kUpdateInterval.ms()); in TEST_F()
104 fake_clock_.AdvanceTimeMilliseconds(CallStats::kUpdateInterval.ms() - in TEST_F()
189 fake_clock_.AdvanceTimeMilliseconds(1000); in TEST_F()
203 fake_clock_.AdvanceTimeMilliseconds(1000); in TEST_F()
221 fake_clock_.AdvanceTimeMilliseconds(1000); in TEST_F()
260 fake_clock_.AdvanceTimeMilliseconds(CallStats::kUpdateInterval.ms()); in TEST_F()
276 fake_clock_.AdvanceTimeMilliseconds(CallStats::kUpdateInterval.ms()); in TEST_F()
295 fake_clock_.AdvanceTimeMilliseconds(metrics::kMinRunTimeInSeconds * in TEST_F()
Dcall_stats_unittest.cc59 SimulatedClock fake_clock_{12345}; member in webrtc::CallStatsTest
60 CallStats call_stats_{&fake_clock_, process_thread_.get()};
100 fake_clock_.AdvanceTimeMilliseconds(CallStats::kUpdateIntervalMs); in TEST_F()
105 fake_clock_.AdvanceTimeMilliseconds(CallStats::kUpdateIntervalMs - 1); in TEST_F()
201 fake_clock_.AdvanceTimeMilliseconds(1000); in TEST_F()
215 fake_clock_.AdvanceTimeMilliseconds(1000); in TEST_F()
233 fake_clock_.AdvanceTimeMilliseconds(1000); in TEST_F()
274 fake_clock_.AdvanceTimeMilliseconds(CallStats::kUpdateIntervalMs); in TEST_F()
288 fake_clock_.AdvanceTimeMilliseconds(CallStats::kUpdateIntervalMs); in TEST_F()
308 fake_clock_.AdvanceTimeMilliseconds(metrics::kMinRunTimeInSeconds * in TEST_F()
/external/webrtc/p2p/base/
Dturn_port_unittest.cc169 fake_clock_.AdvanceTime(webrtc::TimeDelta::Seconds(1)); in TurnPortTest()
355 turn_ready_, TimeToGetTurnCandidate(protocol_type), fake_clock_); in PrepareTurnAndUdpPorts()
359 ASSERT_TRUE_SIMULATED_WAIT(udp_ready_, kSimulatedRtt, fake_clock_); in PrepareTurnAndUdpPorts()
424 turn_ready_, TimeToGetTurnCandidate(protocol_type), fake_clock_); in TestReconstructedServerUrl()
447 fake_clock_); in TestTurnAlternateServer()
471 turn_error_, kSimulatedRtt + TimeToConnect(protocol_type), fake_clock_); in TestTurnAlternateServerV4toV6()
490 fake_clock_); in TestTurnAlternateServerPingPong()
514 fake_clock_); in TestTurnAlternateServerDetectRepetition()
553 turn_error_, TimeToGetTurnCandidate(protocol_type), fake_clock_); in TestTurnAlternateServerLoopback()
558 SIMULATED_WAIT(false, kSimulatedRtt, fake_clock_); in TestTurnAlternateServerLoopback()
[all …]
Ddtls_transport_unittest.cc328 kTimeout, fake_clock_); in Connect()
379 fake_clock_); in TestTransfer()
383 rtc::ScopedFakeClock fake_clock_; member in cricket::DtlsTransportTestBase
507 kTimeout, fake_clock_); in TEST_F()
569 kTimeout, fake_clock_); in TEST_F()
586 fake_clock_.AdvanceTime( in TEST_F()
589 fake_clock_.AdvanceTime(webrtc::TimeDelta::Millis(1)); in TEST_F()
656 kTimeout, fake_clock_); in TestEventOrdering()
664 kTimeout, fake_clock_); in TestEventOrdering()
666 kTimeout, fake_clock_); in TestEventOrdering()
[all …]
/external/icing/icing/schema/
Dschema-store_test.cc88 const FakeClock fake_clock_; member in icing::lib::__anon3b2434680111::SchemaStoreTest
93 SchemaStore::Create(/*filesystem=*/nullptr, test_dir_, &fake_clock_), in TEST_F()
101 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
128 EXPECT_THAT(SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_), in TEST_F()
136 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
160 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
173 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
200 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
212 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
245 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
[all …]
/external/icing/icing/store/
Ddocument-store_test.cc193 SchemaStore::Create(&filesystem_, schema_store_dir_, &fake_clock_)); in SetUp()
221 FakeClock fake_clock_; member in icing::lib::__anon67f0fed20111::DocumentStoreTest
245 &fake_clock_, schema_store_.get()), in TEST_F()
253 &fake_clock_, /*schema_store=*/nullptr), in TEST_F()
262 &fake_clock_, schema_store_.get()), in TEST_F()
269 DocumentStore::Create(&filesystem_, document_store_dir_, &fake_clock_, in TEST_F()
289 DocumentStore::Create(&filesystem_, document_store_dir_, &fake_clock_, in TEST_F()
322 DocumentStore::Create(&filesystem_, document_store_dir_, &fake_clock_, in TEST_F()
351 DocumentStore::Create(&filesystem_, document_store_dir_, &fake_clock_, in TEST_F()
383 DocumentStore::Create(&filesystem_, document_store_dir_, &fake_clock_, in TEST_F()
[all …]
/external/webrtc/pc/
Ddtmf_sender_unittest.cc222 rtc::ScopedFakeClock fake_clock_; member in DtmfSenderTest
236 EXPECT_TRUE_SIMULATED_WAIT(observer_->completed(), kMaxWaitMs, fake_clock_); in TEST_F()
253 fake_clock_); in TEST_F()
259 EXPECT_TRUE_SIMULATED_WAIT(observer_->completed(), kMaxWaitMs, fake_clock_); in TEST_F()
275 fake_clock_); in TEST_F()
279 SIMULATED_WAIT(false, 200, fake_clock_); in TEST_F()
290 fake_clock_); in TEST_F()
294 SIMULATED_WAIT(false, 200, fake_clock_); in TEST_F()
306 fake_clock_); in TEST_F()
310 EXPECT_TRUE_SIMULATED_WAIT(observer_->completed(), kMaxWaitMs, fake_clock_); in TEST_F()
[all …]
/external/icing/icing/query/
Dquery-processor_test.cc137 FakeClock fake_clock_; member in icing::lib::__anon1c0a3fc50111::QueryProcessorTest
179 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
184 DocumentStore::Create(&filesystem_, store_dir_, &fake_clock_, in TEST_F()
230 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
235 DocumentStore::Create(&filesystem_, store_dir_, &fake_clock_, in TEST_F()
281 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
286 DocumentStore::Create(&filesystem_, store_dir_, &fake_clock_, in TEST_F()
357 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
362 DocumentStore::Create(&filesystem_, store_dir_, &fake_clock_, in TEST_F()
425 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in TEST_F()
[all …]
/external/webrtc/audio/voip/test/
Daudio_egress_unittest.cc58 : fake_clock_(kStartTime), wave_generator_(1000.0, kAudioLevel) { in AudioEgressTest()
59 rtp_rtcp_ = CreateRtpStack(&fake_clock_, &transport_, kRemoteSsrc); in AudioEgressTest()
67 egress_ = std::make_unique<AudioEgress>(rtp_rtcp_.get(), &fake_clock_, in SetUp()
101 SimulatedClock fake_clock_; member in webrtc::__anon7c5499780111::AudioEgressTest
136 fake_clock_.AdvanceTimeMilliseconds(10); in TEST_F()
172 fake_clock_.AdvanceTimeMilliseconds(10); in TEST_F()
206 fake_clock_.AdvanceTimeMilliseconds(10); in TEST_F()
220 fake_clock_.AdvanceTimeMilliseconds(10); in TEST_F()
282 fake_clock_.AdvanceTimeMilliseconds(10); in TEST_F()
Daudio_ingress_unittest.cc39 : fake_clock_(123456789), wave_generator_(1000.0, kAudioLevel) { in AudioIngressTest()
40 receive_statistics_ = ReceiveStatistics::Create(&fake_clock_); in AudioIngressTest()
43 rtp_config.clock = &fake_clock_; in AudioIngressTest()
61 ingress_ = std::make_unique<AudioIngress>(rtp_rtcp_.get(), &fake_clock_, in SetUp()
66 egress_ = std::make_unique<AudioEgress>(rtp_rtcp_.get(), &fake_clock_, in SetUp()
94 SimulatedClock fake_clock_; member in webrtc::__anonc756ecca0111::AudioIngressTest
152 fake_clock_.AdvanceTimeMilliseconds(10); in TEST_F()
/external/icing/icing/index/iterator/
Ddoc-hit-info-iterator-filter_test.cc69 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in SetUp()
74 DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, in SetUp()
89 FakeClock fake_clock_; member in icing::lib::__anon388d5f680111::DocHitInfoIteratorDeletedFilterTest
236 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in SetUp()
241 DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, in SetUp()
256 FakeClock fake_clock_; member in icing::lib::__anon388d5f680111::DocHitInfoIteratorNamespaceFilterTest
391 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in SetUp()
396 DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, in SetUp()
411 FakeClock fake_clock_; member in icing::lib::__anon388d5f680111::DocHitInfoIteratorSchemaTypeFilterTest
531 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in SetUp()
[all …]
/external/webrtc/modules/video_coding/
Djitter_estimator_tests.cc30 TestVCMJitterEstimator() : fake_clock_(0) {} in TestVCMJitterEstimator()
33 estimator_ = std::make_unique<VCMJitterEstimator>(&fake_clock_); in SetUp()
37 fake_clock_.AdvanceTimeMicroseconds(microseconds); in AdvanceClock()
40 SimulatedClock fake_clock_; member in webrtc::TestVCMJitterEstimator
/external/icing/icing/result/
Dresult-retriever_test.cc87 SchemaStore::Create(&filesystem_, test_dir_, &fake_clock_)); in SetUp()
156 FakeClock fake_clock_; member in icing::lib::__anonb5a82b8f0111::ResultRetrieverTest
193 DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, in TEST_F()
215 DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, in TEST_F()
268 DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, in TEST_F()
317 DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, in TEST_F()
369 DocumentStore::Create(&mock_filesystem, test_dir_, &fake_clock_, in TEST_F()
409 DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, in TEST_F()
458 DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, in TEST_F()
557 DocumentStore::Create(&filesystem_, test_dir_, &fake_clock_, in TEST_F()
[all …]
/external/webrtc/rtc_base/
Dtest_client.cc33 : fake_clock_(fake_clock), in TestClient()
128 if (fake_clock_) { in AdvanceTime()
129 SIMULATED_WAIT(false, ms, *fake_clock_); in AdvanceTime()
Dvirtual_socket_unittest.cc167 : ss_(&fake_clock_), in VirtualSocketServerTest()
204 std::make_unique<AsyncUDPSocket>(socket), &fake_clock_); in TestDefaultRoute()
213 std::make_unique<AsyncUDPSocket>(socket2), &fake_clock_); in TestDefaultRoute()
237 std::make_unique<AsyncUDPSocket>(socket), &fake_clock_); in BasicTest()
241 std::make_unique<AsyncUDPSocket>(socket2), &fake_clock_); in BasicTest()
255 absl::WrapUnique(AsyncUDPSocket::Create(&ss_, empty)), &fake_clock_); in BasicTest()
713 SIMULATED_WAIT(false, 5000, fake_clock_); in BandwidthTest()
715 SIMULATED_WAIT(false, 5000, fake_clock_); in BandwidthTest()
757 SIMULATED_WAIT(false, 10000, fake_clock_); in DelayTest()
841 std::make_unique<AsyncUDPSocket>(socket), &fake_clock_); in CrossFamilyDatagramTest()
[all …]
/external/icing/icing/index/
Dindex-processor_test.cc150 SchemaStore::Create(&filesystem_, GetTestTempDir(), &fake_clock_)); in SetUp()
204 processor_options, &fake_clock_)); in SetUp()
216 FakeClock fake_clock_; member in icing::lib::__anonf04aa9090111::IndexProcessorTest
241 processor_options, &fake_clock_), in TEST_F()
245 processor_options, &fake_clock_), in TEST_F()
447 options, &fake_clock_)); in TEST_F()
489 options, &fake_clock_)); in TEST_F()
533 options, &fake_clock_)); in TEST_F()
703 &fake_clock_)); in TEST_F()
738 &fake_clock_)); in TEST_F()
[all …]

12