Home
last modified time | relevance | path

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

/webrtc/util/src/vnet/chunk_queue/
H A Dchunk_queue_test.rs22 let ok = q.push(c.clone_to()).await; in test_chunk_queue() localVariable
23 assert!(ok, "should succeed"); in test_chunk_queue()
35 let ok = q.push(c.clone_to()).await; in test_chunk_queue() localVariable
36 assert!(ok, "should succeed"); in test_chunk_queue()
38 let ok = q.push(c.clone_to()).await; in test_chunk_queue() localVariable
39 assert!(!ok, "should fail"); in test_chunk_queue()
/webrtc/sctp/src/timer/
H A Dtimer_test.rs43 let ok = rt.start(); in test_ack_timer_start_and_stop() localVariable
44 assert!(ok, "start() should succeed"); in test_ack_timer_start_and_stop()
62 let ok = rt.start(); in test_ack_timer_start_and_stop() localVariable
237 let ok = rt.start(30).await; in test_rtx_timer_callback_interval() localVariable
238 assert!(ok, "should be true"); in test_rtx_timer_callback_interval()
262 let ok = rt.start(interval).await; in test_rtx_timer_last_start_wins() localVariable
263 assert!(ok, "should be accepted"); in test_rtx_timer_last_start_wins()
265 assert!(!ok, "should be ignored"); in test_rtx_timer_last_start_wins()
344 let ok = rt.start(30).await; in test_rtx_timer_start_and_stop_in_atight_loop() localVariable
475 let ok = rt.start(20).await; in test_rtx_timer_stop_timer_that_is_not_running_is_noop() localVariable
[all …]
/webrtc/turn/src/client/periodic_timer/
H A Dperiodic_timer_test.rs22 let ok = rt.start(dummy1).await; in test_periodic_timer() localVariable
23 assert!(ok, "should be true"); in test_periodic_timer()
28 let ok = rt.start(dummy2).await; in test_periodic_timer() localVariable
29 assert!(!ok, "start again is noop"); in test_periodic_timer()
/webrtc/turn/src/client/binding/
H A Dbinding_test.rs77 let ok = m.delete_by_addr(&addr); in test_binding_manager_failure() localVariable
78 assert!(!ok, "should fail"); in test_binding_manager_failure()
79 let ok = m.delete_by_number(5555); in test_binding_manager_failure() localVariable
80 assert!(!ok, "should fail"); in test_binding_manager_failure()
/webrtc/sctp/src/
H A Dfuzz_artifact_test.rs25 crate::param::build_param(&Bytes::from(artifact)).ok(); in param_crash_artifacts()
41 crate::packet::Packet::unmarshal(&Bytes::from(artifact)).ok(); in packet_crash_artifacts()
/webrtc/stun/src/textattrs/
H A Dtextattrs_test.rs24 let (s_attr, ok) = m.attributes.get(ATTR_SOFTWARE); in test_software_get_from()
25 assert!(ok, "sowfware attribute should be found"); in test_software_get_from()
179 let (r_attr, ok) = m.attributes.get(ATTR_REALM); in test_realm_get_from()
180 assert!(ok, "realm attribute should be found"); in test_realm_get_from()
252 let (r_attr, ok) = m.attributes.get(ATTR_NONCE); in test_nonce_get_from()
253 assert!(ok, "realm attribute should be found"); in test_nonce_get_from()
/webrtc/util/src/replay_detector/
H A Dreplay_detector_test.rs268 let ok = det.check(*seq); in test_replay_detector() localVariable
269 if ok && valid[i] { in test_replay_detector()
/webrtc/sctp/src/queue/
H A Dpayload_queue.rs64 let ok = self.chunk_map.contains_key(&p.tsn); in push() localVariable
65 if ok || sna32lte(p.tsn, cumulative_tsn) { in push()
H A Dqueue_test.rs114 let ok = pq.get_last_tsn_received(); in test_payload_queue_get_last_tsn_received() localVariable
115 assert!(ok.is_none(), "should be none"); in test_payload_queue_get_last_tsn_received()
117 let ok = pq.push(make_payload(20, 0), 0); in test_payload_queue_get_last_tsn_received() localVariable
118 assert!(ok, "should be true"); in test_payload_queue_get_last_tsn_received()
124 let ok = pq.push(make_payload(21, 0), 0); in test_payload_queue_get_last_tsn_received() localVariable
125 assert!(ok, "should be true"); in test_payload_queue_get_last_tsn_received()
131 let ok = pq.push(make_payload(19, 0), 0); in test_payload_queue_get_last_tsn_received() localVariable
132 assert!(ok, "should be true"); in test_payload_queue_get_last_tsn_received()
H A Dreassembly_queue.rs174 let ok = cset.push(chunk); in push() localVariable
180 ok in push()
/webrtc/rtcp/src/transport_feedbacks/rapid_resynchronization_request/
H A Drapid_resynchronization_request_test.rs105 let mut data = got.ok().unwrap(); in test_rapid_resynchronization_request_roundtrip()
/webrtc/rtcp/src/payload_feedbacks/slice_loss_indication/
H A Dslice_loss_indication_test.rs124 let mut data = got.ok().unwrap(); in test_slice_loss_indication_roundtrip()
/webrtc/rtcp/src/payload_feedbacks/picture_loss_indication/
H A Dpicture_loss_indication_test.rs118 let mut data = got.ok().unwrap(); in test_picture_loss_indication_roundtrip()
/webrtc/util/src/conn/
H A Dconn_bridge.rs133 let ok = inverse(&mut stack); in push() localVariable
134 if ok { in push()
/webrtc/rtcp/src/payload_feedbacks/full_intra_request/
H A Dfull_intra_request_test.rs164 let mut data = got.ok().unwrap(); in test_full_intra_request_round_trip()
/webrtc/dtls/src/crypto/
H A Dpadding.rs116 assert_eq!(DtlsPadding::unpad(&block).ok(), Some(&[][..])); in one_of_the_padding_bytes_with_value_different_than_padding_length_is_unpadding_error()
/webrtc/rtcp/src/sender_report/
H A Dsender_report_test.rs242 let mut data = got.ok().unwrap(); in test_sender_report_roundtrip()
/webrtc/rtcp/src/receiver_report/
H A Dreceiver_report_test.rs232 let mut data = got.ok().unwrap(); in test_receiver_report_roundtrip()
/webrtc/rtcp/src/goodbye/
H A Dgoodbye_test.rs215 let mut data = got.ok().unwrap(); in test_goodbye_round_trip()
/webrtc/rtcp/src/transport_feedbacks/transport_layer_nack/
H A Dtransport_layer_nack_test.rs123 let mut data = got.ok().unwrap(); in test_transport_layer_nack_roundtrip()
/webrtc/rtcp/src/source_description/
H A Dsource_description_test.rs349 let mut data = got.ok().unwrap(); in test_source_description_roundtrip()
/webrtc/stun/src/
H A Dmessage.rs398 let (v, ok) = self.attributes.get(t); in get()
399 if ok { in get()
/webrtc/rtcp/src/
H A Dheader.rs303 let data = got.ok().unwrap(); in test_header_roundtrip()
/webrtc/dtls/src/conn/
H A Dmod.rs931 let ok = ctx.replay_detector[h.epoch as usize].check(h.sequence_number); in handle_incoming_packet() localVariable
932 if !ok { in handle_incoming_packet()
/webrtc/sctp/src/association/
H A Dassociation_internal.rs513 let mut ok = true; in gather_outbound_shutdown_packets() localVariable
541 ok = false; in gather_outbound_shutdown_packets()
547 (raw_packets, ok) in gather_outbound_shutdown_packets()