Lines Matching refs:new

10     let turn_socket = Arc::new(UdpSocket::bind("0.0.0.0:0").await?);  in test_has_permission()
13 let a = Allocation::new( in test_has_permission()
18 TextAttribute::new(ATTR_USERNAME, "user".into()), in test_has_permission()
26 let p1 = Permission::new(addr1); in test_has_permission()
27 let p2 = Permission::new(addr2); in test_has_permission()
28 let p3 = Permission::new(addr3); in test_has_permission()
48 let turn_socket = Arc::new(UdpSocket::bind("0.0.0.0:0").await?); in test_add_permission()
51 let a = Allocation::new( in test_add_permission()
56 TextAttribute::new(ATTR_USERNAME, "user".into()), in test_add_permission()
61 let p = Permission::new(addr); in test_add_permission()
72 let turn_socket = Arc::new(UdpSocket::bind("0.0.0.0:0").await?); in test_remove_permission()
75 let a = Allocation::new( in test_remove_permission()
80 TextAttribute::new(ATTR_USERNAME, "user".into()), in test_remove_permission()
86 let p = Permission::new(addr); in test_remove_permission()
105 let turn_socket = Arc::new(UdpSocket::bind("0.0.0.0:0").await?); in test_add_channel_bind()
108 let a = Allocation::new( in test_add_channel_bind()
113 TextAttribute::new(ATTR_USERNAME, "user".into()), in test_add_channel_bind()
118 let c = ChannelBind::new(ChannelNumber(MIN_CHANNEL_NUMBER), addr); in test_add_channel_bind()
122 let c2 = ChannelBind::new(ChannelNumber(MIN_CHANNEL_NUMBER + 1), addr); in test_add_channel_bind()
130 let c3 = ChannelBind::new(ChannelNumber(MIN_CHANNEL_NUMBER), addr2); in test_add_channel_bind()
139 let turn_socket = Arc::new(UdpSocket::bind("0.0.0.0:0").await?); in test_get_channel_by_number()
142 let a = Allocation::new( in test_get_channel_by_number()
147 TextAttribute::new(ATTR_USERNAME, "user".into()), in test_get_channel_by_number()
152 let c = ChannelBind::new(ChannelNumber(MIN_CHANNEL_NUMBER), addr); in test_get_channel_by_number()
175 let turn_socket = Arc::new(UdpSocket::bind("0.0.0.0:0").await?); in test_get_channel_by_addr()
178 let a = Allocation::new( in test_get_channel_by_addr()
183 TextAttribute::new(ATTR_USERNAME, "user".into()), in test_get_channel_by_addr()
189 let c = ChannelBind::new(ChannelNumber(MIN_CHANNEL_NUMBER), addr); in test_get_channel_by_addr()
207 let turn_socket = Arc::new(UdpSocket::bind("0.0.0.0:0").await?); in test_remove_channel_bind()
210 let a = Allocation::new( in test_remove_channel_bind()
215 TextAttribute::new(ATTR_USERNAME, "user".into()), in test_remove_channel_bind()
221 let c = ChannelBind::new(number, addr); in test_remove_channel_bind()
244 let turn_socket = Arc::new(UdpSocket::bind("0.0.0.0:0").await?); in test_allocation_refresh()
247 let a = Allocation::new( in test_allocation_refresh()
252 TextAttribute::new(ATTR_USERNAME, "user".into()), in test_allocation_refresh()
266 let turn_socket = Arc::new(UdpSocket::bind("0.0.0.0:0").await?); in test_allocation_close()
269 let a = Allocation::new( in test_allocation_close()
274 TextAttribute::new(ATTR_USERNAME, "user".into()), in test_allocation_close()
284 let c = ChannelBind::new(number, addr); in test_allocation_close()
289 a.add_permission(Permission::new(addr)).await; in test_allocation_close()