Lines Matching refs:dc1
192 let dc1 = DataChannel::accept(&a1, Config::default(), &existing_data_channels).await?; in pr_ordered_unordered_test() localVariable
196 assert_eq!(dc1.config, cfg, "remote config should match"); in pr_ordered_unordered_test()
199 dc1.commit_reliability_params(); in pr_ordered_unordered_test()
231 let (n, is_string) = dc1.read_data_channel(&mut rbuf[..]).await?; in pr_ordered_unordered_test()
241 let (n, is_string) = dc1.read_data_channel(&mut rbuf[..]).await?; in pr_ordered_unordered_test()
251 dc1.close().await?; in pr_ordered_unordered_test()
279 let dc1 = DataChannel::accept(&a1, Config::default(), &existing_data_channels).await?; in test_data_channel_channel_type_reliable_ordered() localVariable
283 assert_eq!(dc1.config, cfg, "remote config should match"); in test_data_channel_channel_type_reliable_ordered()
297 let n = dc1.read(&mut rbuf[..]).await?; in test_data_channel_channel_type_reliable_ordered()
305 let n = dc1.read(&mut rbuf[..]).await?; in test_data_channel_channel_type_reliable_ordered()
314 dc1.close().await?; in test_data_channel_channel_type_reliable_ordered()
342 let dc1 = DataChannel::accept(&a1, Config::default(), &existing_data_channels).await?; in test_data_channel_channel_type_reliable_unordered() localVariable
346 assert_eq!(dc1.config, cfg, "remote config should match"); in test_data_channel_channel_type_reliable_unordered()
349 dc1.commit_reliability_params(); in test_data_channel_channel_type_reliable_unordered()
367 let (n, is_string) = dc1.read_data_channel(&mut rbuf[..]).await?; in test_data_channel_channel_type_reliable_unordered()
376 let (n, is_string) = dc1.read_data_channel(&mut rbuf[..]).await?; in test_data_channel_channel_type_reliable_unordered()
386 dc1.close().await?; in test_data_channel_channel_type_reliable_unordered()
445 let dc1 = Arc::new(DataChannel::accept(&a1, Config::default(), &existing_data_channels).await?); in test_data_channel_buffered_amount() localVariable
462 let n = dc1.read(&mut rbuf[..]).await?; in test_data_channel_buffered_amount()
465 let n = dc1.read(&mut rbuf[..]).await?; in test_data_channel_buffered_amount()
491 let dc1_cloned = Arc::clone(&dc1); in test_data_channel_buffered_amount()
511 dc1.close().await?; in test_data_channel_buffered_amount()
546 let dc1 = DataChannel::accept(&a1, Config::default(), &existing_data_channels).await?; in test_stats() localVariable
583 let n = dc1.read(&mut rbuf[..]).await?; in test_stats()
587 assert_eq!(dc1.bytes_received(), bytes_read); in test_stats()
588 assert_eq!(dc1.messages_received(), 1); in test_stats()
590 let n = dc1.read(&mut rbuf[..]).await?; in test_stats()
594 assert_eq!(dc1.bytes_received(), bytes_read); in test_stats()
595 assert_eq!(dc1.messages_received(), 2); in test_stats()
597 let n = dc1.read(&mut rbuf[..]).await?; in test_stats()
601 assert_eq!(dc1.bytes_received(), bytes_read); in test_stats()
602 assert_eq!(dc1.messages_received(), 3); in test_stats()
604 let n = dc1.read(&mut rbuf[..]).await?; in test_stats()
608 assert_eq!(dc1.bytes_received(), bytes_read); in test_stats()
609 assert_eq!(dc1.messages_received(), 4); in test_stats()
612 dc1.close().await?; in test_stats()
640 let dc1 = Arc::new(DataChannel::accept(&a1, Config::default(), &existing_data_channels).await?); in test_poll_data_channel() localVariable
644 let mut poll_dc1 = PollDataChannel::new(dc1); in test_poll_data_channel()