Home
last modified time | relevance | path

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

12345678

/webrtc/sdp/src/util/
H A Dutil_test.rs16 protos: vec!["RTP".to_string(), "AVP".to_string()], in get_test_session_description()
17 … formats: vec!["120".to_string(), "121".to_string(), "126".to_string(), "97".to_string()], in get_test_session_description()
44 name: "VP8".to_string(), in test_get_payload_type_for_vp8()
51 name: "VP9".to_string(), in test_get_payload_type_for_vp8()
58 name: "H264".to_string(), in test_get_payload_type_for_vp8()
66 name: "H264".to_string(), in test_get_payload_type_for_vp8()
76 .to_string(), in test_get_payload_type_for_vp8()
99 name: "VP8".to_string(), in test_get_codec_for_payload_type()
109 name: "VP9".to_string(), in test_get_codec_for_payload_type()
122 .to_string(), in test_get_codec_for_payload_type()
[all …]
/webrtc/util/src/fixed_big_int/
H A Dfixed_big_int_test.rs9 bi.to_string(), in test_fixed_big_int_set_bit()
15 bi.to_string(), in test_fixed_big_int_set_bit()
21 bi.to_string(), in test_fixed_big_int_set_bit()
27 bi.to_string(), in test_fixed_big_int_set_bit()
32 bi.to_string(), in test_fixed_big_int_set_bit()
38 bi.to_string(), in test_fixed_big_int_set_bit()
43 bi.to_string(), in test_fixed_big_int_set_bit()
49 bi.to_string(), in test_fixed_big_int_set_bit()
54 bi.to_string(), in test_fixed_big_int_set_bit()
60 bi.to_string(), in test_fixed_big_int_set_bit()
[all …]
/webrtc/sdp/src/description/
H A Ddescription_test.rs51 username: "jdoe".to_string(), in test_marshal()
54 network_type: "IN".to_string(), in test_marshal()
55 address_type: "IP4".to_string(), in test_marshal()
58 session_name: "SDP Seminar".to_string(), in test_marshal()
64 network_type: "IN".to_string(), in test_marshal()
65 address_type: "IP4".to_string(), in test_marshal()
117 "candidate".to_string(), in test_marshal()
125 media: "audio".to_string(), in test_marshal()
130 protos: vec!["RTP".to_string(), "AVP".to_string()], in test_marshal()
158 protos: vec!["RTP".to_string(), "AVP".to_string()], in test_marshal()
[all …]
H A Dmedia.rs83 "UDP".to_string(), in new_jsep_media_description()
84 "TLS".to_string(), in new_jsep_media_description()
85 "RTP".to_string(), in new_jsep_media_description()
86 "SAVPF".to_string(), in new_jsep_media_description()
92 network_type: "IN".to_string(), in new_jsep_media_description()
93 address_type: "IP4".to_string(), in new_jsep_media_description()
95 address: "0.0.0.0".to_string(), in new_jsep_media_description()
126 .with_value_attribute("ice-pwd".to_string(), password) in with_ice_credentials()
138 self.media_name.formats.push(payload_type.to_string()); in with_codec()
171 self.with_value_attribute("candidate".to_string(), value) in with_candidate()
[all …]
/webrtc/constraints/src/
H A Denumerations.rs23 Self::User.to_string() in user()
28 Self::Environment.to_string() in environment()
33 Self::Left.to_string() in left()
38 Self::Right.to_string() in right()
80 Self::None.to_string() in none()
85 Self::CropAndScale.to_string() in crop_and_scale()
106 fn to_string() { in to_string() function
107 assert_eq!(FacingMode::User.to_string(), "user"); in to_string()
109 assert_eq!(FacingMode::Left.to_string(), "left"); in to_string()
123 fn to_string() { in to_string() function
[all …]
H A Dsetting.rs112 fn to_string() { in to_string() function
113 assert_eq!(Subject::from(true).to_string(), "true"); in to_string()
114 assert_eq!(Subject::from(42).to_string(), "42"); in to_string()
115 assert_eq!(Subject::from(4.2).to_string(), "4.2"); in to_string()
116 assert_eq!(Subject::from("string".to_owned()).to_string(), "\"string\""); in to_string()
/webrtc/util/src/vnet/chunk/
H A Dchunk_test.rs8 assert_eq!(f.to_string(), "FIN", "should match"); in test_tcp_frag_string()
10 assert_eq!(f.to_string(), "SYN", "should match"); in test_tcp_frag_string()
12 assert_eq!(f.to_string(), "RST", "should match"); in test_tcp_frag_string()
14 assert_eq!(f.to_string(), "PSH", "should match"); in test_tcp_frag_string()
16 assert_eq!(f.to_string(), "ACK", "should match"); in test_tcp_frag_string()
18 assert_eq!(f.to_string(), "SYN-ACK", "should match"); in test_tcp_frag_string()
29 let s = c.to_string(); in test_chunk_udp()
32 assert!(s.contains(&src.to_string()), "should include address"); in test_chunk_udp()
33 assert!(s.contains(&dst.to_string()), "should include address"); in test_chunk_udp()
47 assert_eq!(c.source_addr().to_string(), "2.3.4.5:4000"); in test_chunk_udp()
[all …]
/webrtc/ice/src/tcp_type/
H A Dtcp_type_test.rs12 assert_eq!(TcpType::Unspecified.to_string(), "unspecified"); in test_tcp_type()
13 assert_eq!(TcpType::Active.to_string(), "active"); in test_tcp_type()
14 assert_eq!(TcpType::Passive.to_string(), "passive"); in test_tcp_type()
15 assert_eq!(TcpType::SimultaneousOpen.to_string(), "so"); in test_tcp_type()
/webrtc/webrtc/src/rtp_transceiver/
H A Drtp_transceiver_test.rs51 mime_type: MIME_TYPE_OPUS.to_string(), in test_rtp_transceiver_set_codec_preferences()
63 mime_type: MIME_TYPE_VP8.to_string(), in test_rtp_transceiver_set_codec_preferences()
66 sdp_fmtp_line: "".to_string(), in test_rtp_transceiver_set_codec_preferences()
74 mime_type: MIME_TYPE_OPUS.to_string(), in test_rtp_transceiver_set_codec_preferences()
97 mime_type: MIME_TYPE_VP8.to_string(), in test_rtp_transceiver_set_codec_preferences()
100 sdp_fmtp_line: "".to_string(), in test_rtp_transceiver_set_codec_preferences()
109 mime_type: MIME_TYPE_VP8.to_string(), in test_rtp_transceiver_set_codec_preferences()
112 sdp_fmtp_line: "".to_string(), in test_rtp_transceiver_set_codec_preferences()
147 mime_type: "video/test_codec".to_string(), in test_rtp_transceiver_set_codec_preferences_payload_type()
150 sdp_fmtp_line: "".to_string(), in test_rtp_transceiver_set_codec_preferences_payload_type()
[all …]
/webrtc/webrtc/src/ice_transport/
H A Dice_candidate.rs58 tcp_type: c.tcp_type().to_string(), in from()
73 network: self.protocol.to_string(), in to_ice()
90 network: self.protocol.to_string(), in to_ice()
107 network: self.protocol.to_string(), in to_ice()
124 network: self.protocol.to_string(), in to_ice()
188 candidate: "candidate:abc123".to_string(), in test_ice_candidate_serialization()
189 sdp_mid: Some("0".to_string()), in test_ice_candidate_serialization()
191 username_fragment: Some("def".to_string()), in test_ice_candidate_serialization()
197 candidate: "candidate:abc123".to_string(), in test_ice_candidate_serialization()
207 let result = serde_json::to_string(&candidate_init); in test_ice_candidate_serialization()
/webrtc/turn/src/client/
H A Dbinding.rs86 self.chan_map.insert(b.number, b.addr.to_string()); in create()
87 self.addr_map.insert(b.addr.to_string(), b); in create()
88 self.addr_map.get(&addr.to_string()) in create()
92 self.addr_map.get(&addr.to_string()) in find_by_addr()
96 self.addr_map.get_mut(&addr.to_string()) in get_by_addr()
116 if let Some(b) = self.addr_map.remove(&addr.to_string()) { in delete_by_addr()
H A Dpermission.rs51 self.perm_map.insert(addr.ip().to_string(), p); in insert()
55 self.perm_map.get(&addr.ip().to_string()) in find()
59 self.perm_map.remove(&addr.ip().to_string()); in delete()
/webrtc/util/src/vnet/chunk_queue/
H A Dchunk_queue_test.rs28 assert_eq!(c.to_string(), d.to_string(), "should be the same"); in test_chunk_queue()
44 assert_eq!(c.to_string(), d.to_string(), "should be the same"); in test_chunk_queue()
/webrtc/dtls/src/crypto/
H A Dmod.rs103 tag: "PRIVATE_KEY".to_string(), in serialize_pem()
108 tag: "CERTIFICATE".to_string(), in serialize_pem()
224 .map_err(|e| Error::Other(e.to_string()))?, in try_from()
260 .map_err(|e| Error::Other(e.to_string()))?, in from_key_pair()
296 .map_err(|e| Error::Other(e.to_string()))? in generate_key_signature()
309 .map_err(|e| Error::Other(e.to_string()))?; in generate_key_signature()
334 .map_err(|e| Error::Other(e.to_string()))?; in verify_signature()
380 .map_err(|e| Error::Other(e.to_string()))?; in verify_signature()
418 .map_err(|e| Error::Other(e.to_string()))? in generate_certificate_verify()
431 .map_err(|e| Error::Other(e.to_string()))?; in generate_certificate_verify()
[all …]
/webrtc/util/src/vnet/router/
H A Drouter_test.rs119 cidr: "1.2.3.0/24".to_string(), in test_router_standalone_cidr_parsing()
125 r.ipv4net.netmask().to_string(), in test_router_standalone_cidr_parsing()
136 cidr: "1.2.3.0/24".to_string(), in test_router_standalone_assign_ip_address()
161 cidr: "1.2.3.0/24".to_string(), in test_router_standalone_add_net()
182 assert_eq!(addrs[0].to_string(), "1.2.3.1/24", "should match"); in test_router_standalone_add_net()
192 cidr: "1.2.3.0/24".to_string(), in test_router_standalone_routing()
279 cidr: "1.2.3.0/24".to_string(), in test_router_standalone_add_chunk_filter()
369 cidr: "1.2.3.0/24".to_string(), in delay_sub_test()
731 ri.nat.local_ips[0].to_string(), in test_router_static_ips_1to1_nat()
736 ri.nat.local_ips[1].to_string(), in test_router_static_ips_1to1_nat()
[all …]
/webrtc/dtls/src/
H A Dhandshaker.rs205 self.current_flight.to_string(), in handshake()
206 state.to_string() in handshake()
314 …] {} handshake_tx is dropped", srv_cli_str(self.state.is_client), self.current_flight.to_string()); in wait()
325 self.current_flight.to_string(), in wait()
343 … {}", srv_cli_str(self.state.is_client), self.current_flight.to_string(), next_flight.to_string()); in wait()
344 …f next_flight.is_last_recv_flight() && self.current_flight.to_string() == next_flight.to_string() { in wait()
354 …hake:{}] {} retransmit_timer", srv_cli_str(self.state.is_client), self.current_flight.to_string()); in wait()
374 …] {} handshake_tx is dropped", srv_cli_str(self.state.is_client), self.current_flight.to_string()); in finish()
/webrtc/turn/src/proto/reqtrans/
H A Dreqtrans_test.rs9 r.to_string(), in test_requested_transport_string()
16 if r.to_string() != "protocol: 254" { in test_requested_transport_string()
18 r.to_string(), in test_requested_transport_string()
/webrtc/turn/src/proto/reqfamily/
H A Dreqfamily_test.rs6 REQUESTED_FAMILY_IPV4.to_string(), in test_requested_address_family_string()
14 REQUESTED_FAMILY_IPV6.to_string(), in test_requested_address_family_string()
22 RequestedAddressFamily(0x04).to_string(), in test_requested_address_family_string()
/webrtc/ice/src/external_ip_mapper/
H A Dexternal_ip_mapper_test.rs7 assert_eq!("1.2.3.4", ip.to_string(), "should be true"); in test_external_ip_mapper_validate_ip_string()
11 assert_eq!("2601:4567::5678", ip.to_string(), "should be true"); in test_external_ip_mapper_validate_ip_string()
182 assert_eq!(ext_ip.to_string(), "1.2.3.4", "should match"); in test_external_ip_mapper_find_external_ip_without_explicit_local_ip()
186 assert_eq!(ext_ip.to_string(), "2200::1", "should match"); in test_external_ip_mapper_find_external_ip_without_explicit_local_ip()
211 assert_eq!(ext_ip.to_string(), "1.2.3.4", "should match"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip()
214 assert_eq!(ext_ip.to_string(), "1.2.3.5", "should match"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip()
221 assert_eq!(ext_ip.to_string(), "2200::1", "should match"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip()
224 assert_eq!(ext_ip.to_string(), "2200::2", "should match"); in test_external_ip_mapper_find_external_ip_with_explicit_local_ip()
/webrtc/sdp/src/extmap/
H A Dmod.rs58 key: "extmap".to_string(), in convert()
59 value: Some(self.to_string()), in convert()
115 "extmap:".to_string() + self.to_string().as_str() in marshal()
/webrtc/ice/src/url/
H A Durl_test.rs95 url.to_string(), in test_parse_url_success()
132 err.to_string(), in test_parse_url_failure()
133 expected_err.to_string(), in test_parse_url_failure()
/webrtc/stun/src/textattrs/
H A Dtextattrs_test.rs22 assert_eq!(software.to_string(), v, "Expected {v}, got {software}."); in test_software_get_from()
27 let s = s_attr.to_string(); in test_software_get_from()
115 got.to_string(), in test_username()
177 assert_eq!(r.to_string(), v, "Expected {v}, got {r}."); in test_realm_get_from()
182 let s = r_attr.to_string(); in test_realm_get_from()
250 assert_eq!(r.to_string(), v, "Expected {v}, got {r}."); in test_nonce_get_from()
255 let s = r_attr.to_string(); in test_nonce_get_from()
/webrtc/ice/src/state/
H A Dstate_test.rs19 connection_state.to_string(), in test_connected_state_string()
39 gathering_state.to_string(), in test_gathering_state_string()
/webrtc/ice/src/agent/
H A Dagent_transport_test.rs96 assert_eq!(a_laddr.ip().to_string(), VNET_LOCAL_IPA.to_string()); in test_remote_local_addr()
97 assert_eq!(b_laddr.ip().to_string(), VNET_LOCAL_IPB.to_string()); in test_remote_local_addr()
/webrtc/data/src/
H A Derror.rs45 io::Error::new(io::ErrorKind::UnexpectedEof, e.to_string()) in from()
48 io::Error::new(io::ErrorKind::ConnectionAborted, e.to_string()) in from()
50 e => io::Error::new(io::ErrorKind::Other, e.to_string()), in from()

12345678