ooni-probe-cli/internal/netxmocks/quic.go

14 lines
310 B
Go
Raw Normal View History

package netxmocks
import "net"
// QUICListener is a mockable netxlite.QUICListener.
type QUICListener struct {
MockListen func(addr *net.UDPAddr) (net.PacketConn, error)
}
// Listen calls MockListen.
func (ql *QUICListener) Listen(addr *net.UDPAddr) (net.PacketConn, error) {
return ql.MockListen(addr)
}