Home
last modified time | relevance | path

Searched refs:kTimeout (Results 1 – 19 of 19) sorted by relevance

/external/webrtc/webrtc/p2p/base/
Dturnport_unittest.cc70 static const unsigned int kTimeout = 1000; variable
304 ASSERT_TRUE_WAIT(turn_ready_, kTimeout); in PrepareTurnAndUdpPorts()
308 ASSERT_TRUE_WAIT(udp_ready_, kTimeout); in PrepareTurnAndUdpPorts()
333 EXPECT_TRUE_WAIT(turn_ready_, kTimeout * 100); in TestTurnAlternateServer()
354 EXPECT_TRUE_WAIT(turn_error_, kTimeout); in TestTurnAlternateServerV4toV6()
371 EXPECT_TRUE_WAIT(turn_error_, kTimeout); in TestTurnAlternateServerPingPong()
394 EXPECT_TRUE_WAIT(turn_error_, kTimeout); in TestTurnAlternateServerDetectRepetition()
407 WAIT(!turn_unknown_address_, kTimeout); in TestTurnConnection()
416 ASSERT_TRUE_WAIT(turn_create_permission_success_, kTimeout); in TestTurnConnection()
419 EXPECT_EQ_WAIT(Connection::STATE_WRITABLE, conn2->write_state(), kTimeout); in TestTurnConnection()
[all …]
Dtransportcontroller_unittest.cc26 static const int kTimeout = 100; variable
337 EXPECT_EQ_WAIT(cricket::kIceGatheringGathering, gathering_state_, kTimeout); in TEST_F()
438 EXPECT_EQ_WAIT(cricket::kIceConnectionFailed, connection_state_, kTimeout); in TEST_F()
459 EXPECT_EQ_WAIT(cricket::kIceConnectionFailed, connection_state_, kTimeout); in TEST_F()
466 kTimeout); in TEST_F()
472 EXPECT_EQ_WAIT(cricket::kIceConnectionConnected, connection_state_, kTimeout); in TEST_F()
493 EXPECT_EQ_WAIT(cricket::kIceConnectionFailed, connection_state_, kTimeout); in TEST_F()
500 kTimeout); in TEST_F()
507 EXPECT_EQ_WAIT(cricket::kIceConnectionConnected, connection_state_, kTimeout); in TEST_F()
512 EXPECT_EQ_WAIT(cricket::kIceConnectionCompleted, connection_state_, kTimeout); in TEST_F()
[all …]
Dport_unittest.cc48 static const int kTimeout = 1000; variable
576 EXPECT_TRUE_WAIT(ch1->conn()->connected(), kTimeout); // for TCP connect in ConnectStartedChannels()
578 WAIT(!ch2->remote_address().IsNil(), kTimeout); in ConnectStartedChannels()
584 kTimeout); in ConnectStartedChannels()
613 EXPECT_TRUE_WAIT(!ch1->conn()->connected(), kTimeout); in DisconnectTcpTestChannels()
614 EXPECT_TRUE_WAIT(!ch2->conn()->connected(), kTimeout); in DisconnectTcpTestChannels()
625 EXPECT_TRUE_WAIT(ch2->conn() == NULL, kTimeout); in DisconnectTcpTestChannels()
646 ASSERT_EQ_WAIT(1, ch1.complete_count(), kTimeout); in TestTcpReconnect()
647 ASSERT_EQ_WAIT(1, ch2.complete_count(), kTimeout); in TestTcpReconnect()
654 const int kTcpReconnectTimeout = kTimeout; in TestTcpReconnect()
[all …]
/external/webrtc/talk/media/base/
Dvideoengine_unittest.h63 static const uint32_t kTimeout = 5000U; variable
271 while (frame_count < static_cast<int>(kTimeout) / 66) { in WaitForDecoder()
420 EXPECT_TRUE_WAIT(NumRtpPackets() > 0, kTimeout); in SetSend()
443 EXPECT_TRUE_WAIT(NumRtpPackets() > 0, kTimeout); in Send()
454 EXPECT_FRAME_WAIT(1, codec.width, codec.height, kTimeout); in SendAndReceive()
466 EXPECT_FRAME_WAIT(1, codec.width, codec.height, kTimeout); in SendManyResizeOnce()
468 EXPECT_FRAME_WAIT(2, codec.width, codec.height, kTimeout); in SendManyResizeOnce()
477 EXPECT_FRAME_WAIT(3, codec.width, codec.height, kTimeout); in SendManyResizeOnce()
489 EXPECT_FRAME_WAIT(frame + i * fps, codec.width, codec.height, kTimeout); in SendReceiveManyAndGetStats()
574 renderer1, 1, DefaultCodec().width, DefaultCodec().height, kTimeout); in GetStatsMultipleRecvStreams()
[all …]
Dvideocapturer_unittest.cc46 const uint32_t kTimeout = 5000U; variable
183 capturer_.capture_state(), kTimeout); in TEST_F()
193 capturer_.capture_state(), kTimeout); in TEST_F()
/external/webrtc/webrtc/base/
Dsocket_unittest.cc227 EXPECT_TRUE_WAIT((sink.Check(server.get(), testing::SSE_READ)), kTimeout); in ConnectInternal()
239 EXPECT_EQ_WAIT(AsyncSocket::CS_CONNECTED, client->GetState(), kTimeout); in ConnectInternal()
276 EXPECT_TRUE_WAIT((sink.Check(server.get(), testing::SSE_READ)), kTimeout); in ConnectWithDnsLookupInternal()
288 EXPECT_EQ_WAIT(AsyncSocket::CS_CONNECTED, client->GetState(), kTimeout); in ConnectWithDnsLookupInternal()
317 EXPECT_EQ_WAIT(AsyncSocket::CS_CLOSED, client->GetState(), kTimeout); in ConnectFailInternal()
351 WAIT_(client->GetState() == AsyncSocket::CS_CLOSED, kTimeout, in ConnectWithDnsLookupFailInternal()
359 EXPECT_EQ_WAIT(AsyncSocket::CS_CLOSED, client->GetState(), kTimeout); in ConnectWithDnsLookupFailInternal()
406 EXPECT_TRUE_WAIT((sink.Check(server.get(), testing::SSE_READ)), kTimeout); in ConnectWhileNotClosedInternal()
415 EXPECT_EQ_WAIT(AsyncSocket::CS_CONNECTED, client->GetState(), kTimeout); in ConnectWhileNotClosedInternal()
449 EXPECT_TRUE_WAIT(sink.Check(server.get(), testing::SSE_READ), kTimeout); in ServerCloseDuringConnectInternal()
[all …]
Dnullsocketserver_unittest.cc16 static const uint32_t kTimeout = 5000U; variable
36 EXPECT_TRUE_WAIT(ss_.Wait(SocketServer::kForever, process_io), kTimeout); in TEST_F()
Dssladapter_unittest.cc22 static const int kTimeout = 5000; variable
279 handshake_wait_(kTimeout) {} in SSLAdapterTestBase()
326 EXPECT_EQ_WAIT(message, server_->GetReceivedData(), kTimeout); in TestTransfer()
332 EXPECT_EQ_WAIT(message, client_->GetReceivedData(), kTimeout); in TestTransfer()
Dsocket_unittest.h61 static const int kTimeout = 5000; // ms variable
Dphysicalsocketserver_unittest.cc167 EXPECT_TRUE_WAIT((sink.Check(server.get(), testing::SSE_READ)), kTimeout); in ConnectInternalAcceptError()
190 EXPECT_TRUE_WAIT((sink.Check(server.get(), testing::SSE_READ)), kTimeout); in ConnectInternalAcceptError()
/external/libchrome/base/synchronization/
Dspin_wait.h39 const base::TimeDelta kTimeout = delta; \
41 if (kTimeout < base::TimeTicks::Now() - start) { \
43 kTimeout.InMilliseconds()) << "Timed out"; \
/external/webrtc/talk/app/webrtc/
Dpeerconnectioninterface_unittest.cc72 static const uint32_t kTimeout = 10000U; variable
633 EXPECT_TRUE_WAIT(observer_.renegotiation_needed_, kTimeout); in AddVideoStream()
645 EXPECT_TRUE_WAIT(observer_.renegotiation_needed_, kTimeout); in AddVoiceStream()
663 EXPECT_TRUE_WAIT(observer_.renegotiation_needed_, kTimeout); in AddAudioVideoStream()
678 EXPECT_EQ_WAIT(true, observer->called(), kTimeout); in DoCreateOfferAnswer()
702 EXPECT_EQ_WAIT(true, observer->called(), kTimeout); in DoSetSessionDescription()
723 EXPECT_TRUE_WAIT(observer->called(), kTimeout); in DoGetStats()
828 EXPECT_TRUE_WAIT(observer_.ice_complete_, kTimeout); in CreateOfferAsLocalDescription()
860 EXPECT_EQ_WAIT(stream_label, observer_.GetLastAddedStreamLabel(), kTimeout); in WaitAndVerifyOnAddStream()
1105 EXPECT_TRUE_WAIT(observer_.last_candidate_.get() != NULL, kTimeout); in TEST_F()
[all …]
/external/libbrillo/brillo/streams/
Dstream_errors.cc17 const char kTimeout[] = "time_out"; variable
Dstream_errors.h21 BRILLO_EXPORT extern const char kTimeout[];
Dtls_stream.cc213 const base::TimeDelta kTimeout = base::TimeDelta::FromSeconds(2); in Close() local
225 if (!socket_->WaitForDataBlocking(AccessMode::READ, kTimeout, nullptr, in Close()
230 if (!socket_->WaitForDataBlocking(AccessMode::WRITE, kTimeout, nullptr, in Close()
Dstream_utils.cc118 errors::stream::kTimeout, in ErrorOperationTimeout()
Dfile_stream_unittest.cc661 EXPECT_EQ(errors::stream::kTimeout, error->GetCode()); in TEST_F()
/external/webrtc/talk/session/media/
Dchannel_unittest.cc1506 static const int kTimeout = 500; in TestMediaMonitor() local
1513 EXPECT_TRUE_WAIT(media_info_callbacks1_ > 0, kTimeout); in TestMediaMonitor()
1514 EXPECT_TRUE_WAIT(media_info_callbacks2_ > 0, kTimeout); in TestMediaMonitor()
1519 EXPECT_TRUE_WAIT(media_info_callbacks1_ > 0, kTimeout); in TestMediaMonitor()
/external/webrtc/talk/media/webrtc/
Dwebrtcvideoengine2_unittest.cc384 kTimeout); in TEST_F()
892 EXPECT_FRAME_WAIT(1, codec.width, codec.height, kTimeout); in TEST_F()