| /webrtc/stun/src/addr/ |
| H A D | addr_test.rs | 19 let mut got = MappedAddress::default(); in test_mapped_address() localVariable 20 got.get_from(&m)?; in test_mapped_address() 21 assert_eq!(got.ip, addr.ip, "got bad IP: {}", got.ip); in test_mapped_address() 26 let result = got.get_from(&message); in test_mapped_address() 41 got.get_from(&m)? in test_mapped_address() 81 got.get_from(&m)?; in test_mapped_address_v6() 82 assert_eq!(got.ip, addr.ip, "got bad IP: {}", got.ip); in test_mapped_address_v6() 120 got.get_from(&m)?; in test_alternate_server() 121 assert_eq!(got.ip, addr.ip, "got bad IP: {}", got.ip); in test_alternate_server() 160 got.get_from(&m)?; in test_other_address() [all …]
|
| /webrtc/stun/src/ |
| H A D | checks.rs | 7 pub fn check_size(_at: AttrType, got: usize, expected: usize) -> Result<()> { in check_size() 8 if got == expected { in check_size() 20 pub(crate) fn check_hmac(got: &[u8], expected: &[u8]) -> Result<()> { in check_hmac() 21 if got.ct_eq(expected).unwrap_u8() != 1 { in check_hmac() 28 pub(crate) fn check_fingerprint(got: u32, expected: u32) -> Result<()> { in check_fingerprint() 29 if got == expected { in check_fingerprint() 37 pub fn check_overflow(_at: AttrType, got: usize, max: usize) -> Result<()> { in check_overflow() 38 if got <= max { in check_overflow()
|
| /webrtc/rtcp/src/transport_feedbacks/rapid_resynchronization_request/ |
| H A D | rapid_resynchronization_request_test.rs | 54 let got = RapidResynchronizationRequest::unmarshal(&mut data); in test_rapid_resynchronization_request_unmarshal() localVariable 57 got.is_err(), in test_rapid_resynchronization_request_unmarshal() 63 let got_err = got.err().unwrap(); in test_rapid_resynchronization_request_unmarshal() 69 let actual = got.unwrap(); in test_rapid_resynchronization_request_unmarshal() 90 let got = want.marshal(); in test_rapid_resynchronization_request_roundtrip() localVariable 93 got.is_ok(), in test_rapid_resynchronization_request_roundtrip() 99 let got_err = got.err().unwrap(); in test_rapid_resynchronization_request_roundtrip() 105 let mut data = got.ok().unwrap(); in test_rapid_resynchronization_request_roundtrip()
|
| /webrtc/rtcp/src/payload_feedbacks/slice_loss_indication/ |
| H A D | slice_loss_indication_test.rs | 61 let got = SliceLossIndication::unmarshal(&mut data); in test_slice_loss_indication_unmarshal() localVariable 64 got.is_err(), in test_slice_loss_indication_unmarshal() 70 let got_err = got.err().unwrap(); in test_slice_loss_indication_unmarshal() 76 let actual = got.unwrap(); in test_slice_loss_indication_unmarshal() 109 let got = want.marshal(); in test_slice_loss_indication_roundtrip() localVariable 112 got.is_ok(), in test_slice_loss_indication_roundtrip() 118 let got_err = got.err().unwrap(); in test_slice_loss_indication_roundtrip() 124 let mut data = got.ok().unwrap(); in test_slice_loss_indication_roundtrip()
|
| /webrtc/rtcp/src/payload_feedbacks/picture_loss_indication/ |
| H A D | picture_loss_indication_test.rs | 57 let got = PictureLossIndication::unmarshal(&mut data); in test_picture_loss_indication_unmarshal() localVariable 60 got.is_err(), in test_picture_loss_indication_unmarshal() 66 let got_err = got.err().unwrap(); in test_picture_loss_indication_unmarshal() 72 let actual = got.unwrap(); in test_picture_loss_indication_unmarshal() 103 let got = want.marshal(); in test_picture_loss_indication_roundtrip() localVariable 106 got.is_ok(), in test_picture_loss_indication_roundtrip() 112 let got_err = got.err().unwrap(); in test_picture_loss_indication_roundtrip() 118 let mut data = got.ok().unwrap(); in test_picture_loss_indication_roundtrip()
|
| /webrtc/rtcp/src/payload_feedbacks/full_intra_request/ |
| H A D | full_intra_request_test.rs | 95 let got = FullIntraRequest::unmarshal(&mut data); in test_full_intra_request_unmarshal() localVariable 98 got.is_err(), in test_full_intra_request_unmarshal() 104 let got_err = got.err().unwrap(); in test_full_intra_request_unmarshal() 110 let actual = got.unwrap(); in test_full_intra_request_unmarshal() 149 let got = want.marshal(); in test_full_intra_request_round_trip() localVariable 152 got.is_ok(), in test_full_intra_request_round_trip() 158 let got_err = got.err().unwrap(); in test_full_intra_request_round_trip() 164 let mut data = got.ok().unwrap(); in test_full_intra_request_round_trip()
|
| /webrtc/rtcp/src/sender_report/ |
| H A D | sender_report_test.rs | 116 let got = SenderReport::unmarshal(&mut data); in test_sender_report_unmarshal() localVariable 119 got.is_err(), in test_sender_report_unmarshal() 125 let got_err = got.err().unwrap(); in test_sender_report_unmarshal() 131 let actual = got.unwrap(); in test_sender_report_unmarshal() 227 let got = want.marshal(); in test_sender_report_roundtrip() localVariable 230 got.is_ok(), in test_sender_report_roundtrip() 236 let got_err = got.err().unwrap(); in test_sender_report_roundtrip() 242 let mut data = got.ok().unwrap(); in test_sender_report_roundtrip()
|
| /webrtc/rtcp/src/receiver_report/ |
| H A D | receiver_report_test.rs | 116 let got = ReceiverReport::unmarshal(&mut data); in test_receiver_report_unmarshal() localVariable 119 got.is_err(), in test_receiver_report_unmarshal() 125 let got_err = got.err().unwrap(); in test_receiver_report_unmarshal() 131 let actual = got.unwrap(); in test_receiver_report_unmarshal() 217 let got = want.marshal(); in test_receiver_report_roundtrip() localVariable 220 got.is_ok(), in test_receiver_report_roundtrip() 226 let got_err = got.err().unwrap(); in test_receiver_report_roundtrip() 232 let mut data = got.ok().unwrap(); in test_receiver_report_roundtrip()
|
| /webrtc/rtcp/src/goodbye/ |
| H A D | goodbye_test.rs | 107 let got = Goodbye::unmarshal(&mut data); in test_goodbye_unmarshal() localVariable 110 got.is_err(), in test_goodbye_unmarshal() 116 let got_err = got.err().unwrap(); in test_goodbye_unmarshal() 122 let actual = got.unwrap(); in test_goodbye_unmarshal() 200 let got = want.marshal(); in test_goodbye_round_trip() localVariable 203 got.is_ok(), in test_goodbye_round_trip() 209 let got_err = got.err().unwrap(); in test_goodbye_round_trip() 215 let mut data = got.ok().unwrap(); in test_goodbye_round_trip()
|
| /webrtc/interceptor/src/twcc/ |
| H A D | twcc_test.rs | 186 assert!(got); in test_feedback() 203 assert!(got); in test_feedback() 208 assert!(got); in test_feedback() 226 assert!(got); in test_feedback() 228 assert!(got); in test_feedback() 230 assert!(got); in test_feedback() 232 assert!(got); in test_feedback() 291 assert!(got); in test_feedback() 293 assert!(got); in test_feedback() 295 assert!(got); in test_feedback() [all …]
|
| /webrtc/rtcp/src/transport_feedbacks/transport_layer_nack/ |
| H A D | transport_layer_nack_test.rs | 62 let got = TransportLayerNack::unmarshal(&mut data); in test_transport_layer_nack_unmarshal() localVariable 65 got.is_err(), in test_transport_layer_nack_unmarshal() 71 let got_err = got.err().unwrap(); in test_transport_layer_nack_unmarshal() 77 let actual = got.unwrap(); in test_transport_layer_nack_unmarshal() 108 let got = want.marshal(); in test_transport_layer_nack_roundtrip() localVariable 111 got.is_ok(), in test_transport_layer_nack_roundtrip() 117 let got_err = got.err().unwrap(); in test_transport_layer_nack_roundtrip() 123 let mut data = got.ok().unwrap(); in test_transport_layer_nack_roundtrip()
|
| /webrtc/rtcp/src/source_description/ |
| H A D | source_description_test.rs | 197 let got = SourceDescription::unmarshal(&mut data); in test_source_description_unmarshal() localVariable 200 got.is_err(), in test_source_description_unmarshal() 206 let got_err = got.err().unwrap(); in test_source_description_unmarshal() 212 let actual = got.unwrap(); in test_source_description_unmarshal() 334 let got = want.marshal(); in test_source_description_roundtrip() localVariable 337 got.is_ok(), in test_source_description_roundtrip() 343 let got_err = got.err().unwrap(); in test_source_description_roundtrip() 349 let mut data = got.ok().unwrap(); in test_source_description_roundtrip()
|
| /webrtc/rtcp/src/ |
| H A D | header.rs | 228 let got = Header::unmarshal(buf); in test_header_unmarshal() localVariable 231 got.is_err(), in test_header_unmarshal() 237 let got_err = got.err().unwrap(); in test_header_unmarshal() 243 let actual = got.unwrap(); in test_header_unmarshal() 288 let got = want.marshal(); in test_header_roundtrip() localVariable 291 got.is_ok(), in test_header_roundtrip() 297 let got_err = got.err().unwrap(); in test_header_roundtrip() 303 let data = got.ok().unwrap(); in test_header_roundtrip()
|
| H A D | util.rs | 109 } else if let Ok(got) = res { in test_set_nbits_of_uint16() 110 assert_eq!(got, result, "setNBitsOfUint16 {name}"); in test_set_nbits_of_uint16()
|
| H A D | packet.rs | 211 if let Err(got) = result { in test_packet_unmarshal_empty() 213 assert_eq!(got, want, "Unmarshal(nil) err = {got}, want {want}"); in test_packet_unmarshal_empty() 230 if let Err(got) = result { in test_packet_invalid_header_length() 233 got, want, in test_packet_invalid_header_length()
|
| /webrtc/mdns/src/message/ |
| H A D | message_test.rs | 266 let got = p.question()?; in test_question_pack_unpack() localVariable 275 got, want, in test_question_pack_unpack() 349 got, want, in test_name_pack_unpack() 475 got.unpack(&b, 0, 0)?; in test_srv_pack_unpack() 501 got.unpack(&b)?; in test_dns_pack_unpack() 529 got.unpack(&b[2..])?; in test_dns_append_pack_unpack() 740 got, want, in test_too_many_records() 782 got.body = Some(body); in test_very_long_txt() 1068 let got = b.finish()?; in test_builder() localVariable 1070 got, in test_builder() [all …]
|
| /webrtc/rtcp/src/transport_feedbacks/transport_layer_cc/ |
| H A D | transport_layer_cc_test.rs | 30 let got = RunLengthChunk::unmarshal(&mut data)?; in test_transport_layer_cc_run_length_chunk_unmarshal() localVariable 31 assert_eq!(got, want, "Unmarshal {name} : err",); in test_transport_layer_cc_run_length_chunk_unmarshal() 63 let got = chunk.marshal()?; in test_transport_layer_cc_run_length_chunk_marshal() localVariable 64 assert_eq!(got, want, "Marshal {name}: err",); in test_transport_layer_cc_run_length_chunk_marshal() 175 let got = chunk.marshal()?; in test_transport_layer_cc_status_vector_chunk_marshal() localVariable 176 assert_eq!(got, want, "Marshal {name}: err",); in test_transport_layer_cc_status_vector_chunk_marshal() 215 let got = RecvDelta::unmarshal(&mut data)?; in test_transport_layer_cc_recv_delta_unmarshal() localVariable 255 let got = chunk.marshal()?; in test_transport_layer_cc_recv_delta_marshal() localVariable 256 assert_eq!(got, want, "Marshal {name}: err",); in test_transport_layer_cc_recv_delta_marshal() 921 let got = chunk.marshal()?; in test_transport_layer_cc_marshal() localVariable [all …]
|
| /webrtc/sdp/src/util/ |
| H A D | mod.rs | 207 fn equivalent_fmtp(want: &str, got: &str) -> bool { in equivalent_fmtp() 209 let mut got_split: Vec<&str> = got.split(';').collect(); in equivalent_fmtp() 229 pub(crate) fn codecs_match(wanted: &Codec, got: &Codec) -> bool { in codecs_match() 230 if !wanted.name.is_empty() && wanted.name.to_lowercase() != got.name.to_lowercase() { in codecs_match() 233 if wanted.clock_rate != 0 && wanted.clock_rate != got.clock_rate { in codecs_match() 237 && wanted.encoding_parameters != got.encoding_parameters in codecs_match() 241 if !wanted.fmtp.is_empty() && !equivalent_fmtp(&wanted.fmtp, &got.fmtp) { in codecs_match()
|
| /webrtc/stun/src/attributes/ |
| H A D | attributes_test.rs | 60 let got = nearest_padded_value_length(i); in test_padding() localVariable 61 assert_eq!(got, o, "padd({i}) {got} (got) != {o} (expected)",); in test_padding()
|
| /webrtc/media/src/io/h264_writer/ |
| H A D | h264_writer_test.rs | 28 let got = is_key_frame(&payload); in test_is_key_frame() localVariable 29 assert_eq!(got, want, "{name} failed"); in test_is_key_frame()
|
| /webrtc/rtcp/src/compound_packet/ |
| H A D | compound_packet_test.rs | 163 if let (Some(err), Err(got)) = (error, result) { in test_valid_packet() 164 assert_eq!(err, got, "Valid({name}) = {got:?}, want {err:?}"); in test_valid_packet() 306 if let Err(got) = result { in test_compound_packet_roundtrip() 307 assert_eq!(err, got, "marshal {name} header: err = {got}, want {err}"); in test_compound_packet_roundtrip()
|
| /webrtc/webrtc/src/peer_connection/ |
| H A D | signaling_state.rs | 353 (Ok(got), None) => { in test_signaling_state_transitions() 354 assert_eq!(*got, next, "{desc} state mismatch"); in test_signaling_state_transitions() 356 (Err(got), Some(err)) => { in test_signaling_state_transitions() 357 assert_eq!(got.to_string(), err.to_string(), "{desc} error mismatch"); in test_signaling_state_transitions()
|
| /webrtc/ice/src/candidate/ |
| H A D | candidate_pair_test.rs | 130 let got = pair.priority(); in test_candidate_pair_priority() localVariable 132 got, want, in test_candidate_pair_priority()
|
| H A D | candidate_test.rs | 103 let got = candidate.priority(); in test_candidate_priority() localVariable 105 got, want, in test_candidate_priority()
|
| /webrtc/stun/src/textattrs/ |
| H A D | textattrs_test.rs | 113 let got = TextAttribute::get_from_as(&m, ATTR_USERNAME)?; in test_username() localVariable 115 got.to_string(), in test_username()
|