Lines Matching refs:new
17 let mut m = Message::new(); in test_allocation_lifetime_parsing()
40 let mut m2 = Message::new(); in test_allocation_lifetime_overflow()
63 let l = Arc::new(UdpSocket::bind("0.0.0.0:0").await?); in test_allocation_lifetime_deletion_zero_lifetime()
65 let allocation_manager = Arc::new(Manager::new(ManagerConfig { in test_allocation_lifetime_deletion_zero_lifetime()
66 relay_addr_generator: Box::new(RelayAddressGeneratorNone { in test_allocation_lifetime_deletion_zero_lifetime()
68 net: Arc::new(Net::new(None)), in test_allocation_lifetime_deletion_zero_lifetime()
73 let socket = SocketAddr::new(IpAddr::from_str("127.0.0.1")?, 5000); in test_allocation_lifetime_deletion_zero_lifetime()
75 let mut r = Request::new(l, socket, allocation_manager, Arc::new(TestAuthHandler {})); in test_allocation_lifetime_deletion_zero_lifetime()
94 TextAttribute::new(ATTR_USERNAME, "user".into()), in test_allocation_lifetime_deletion_zero_lifetime()
103 let mut m = Message::new(); in test_allocation_lifetime_deletion_zero_lifetime()
106 Nonce::new(ATTR_NONCE, STATIC_KEY.to_owned()).add_to(&mut m)?; in test_allocation_lifetime_deletion_zero_lifetime()
107 Realm::new(ATTR_REALM, STATIC_KEY.to_owned()).add_to(&mut m)?; in test_allocation_lifetime_deletion_zero_lifetime()
108 Username::new(ATTR_USERNAME, STATIC_KEY.to_owned()).add_to(&mut m)?; in test_allocation_lifetime_deletion_zero_lifetime()