mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 20:27:35 +03:00
also use the multiplexer for the server
This commit is contained in:
parent
c8d20e86d7
commit
ad5a3e2fa0
15 changed files with 631 additions and 512 deletions
56
mock_unknown_packet_handler_test.go
Normal file
56
mock_unknown_packet_handler_test.go
Normal file
|
@ -0,0 +1,56 @@
|
|||
// Code generated by MockGen. DO NOT EDIT.
|
||||
// Source: github.com/lucas-clemente/quic-go (interfaces: UnknownPacketHandler)
|
||||
|
||||
// Package quic is a generated GoMock package.
|
||||
package quic
|
||||
|
||||
import (
|
||||
reflect "reflect"
|
||||
|
||||
gomock "github.com/golang/mock/gomock"
|
||||
)
|
||||
|
||||
// MockUnknownPacketHandler is a mock of UnknownPacketHandler interface
|
||||
type MockUnknownPacketHandler struct {
|
||||
ctrl *gomock.Controller
|
||||
recorder *MockUnknownPacketHandlerMockRecorder
|
||||
}
|
||||
|
||||
// MockUnknownPacketHandlerMockRecorder is the mock recorder for MockUnknownPacketHandler
|
||||
type MockUnknownPacketHandlerMockRecorder struct {
|
||||
mock *MockUnknownPacketHandler
|
||||
}
|
||||
|
||||
// NewMockUnknownPacketHandler creates a new mock instance
|
||||
func NewMockUnknownPacketHandler(ctrl *gomock.Controller) *MockUnknownPacketHandler {
|
||||
mock := &MockUnknownPacketHandler{ctrl: ctrl}
|
||||
mock.recorder = &MockUnknownPacketHandlerMockRecorder{mock}
|
||||
return mock
|
||||
}
|
||||
|
||||
// EXPECT returns an object that allows the caller to indicate expected use
|
||||
func (m *MockUnknownPacketHandler) EXPECT() *MockUnknownPacketHandlerMockRecorder {
|
||||
return m.recorder
|
||||
}
|
||||
|
||||
// closeWithError mocks base method
|
||||
func (m *MockUnknownPacketHandler) closeWithError(arg0 error) error {
|
||||
ret := m.ctrl.Call(m, "closeWithError", arg0)
|
||||
ret0, _ := ret[0].(error)
|
||||
return ret0
|
||||
}
|
||||
|
||||
// closeWithError indicates an expected call of closeWithError
|
||||
func (mr *MockUnknownPacketHandlerMockRecorder) closeWithError(arg0 interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "closeWithError", reflect.TypeOf((*MockUnknownPacketHandler)(nil).closeWithError), arg0)
|
||||
}
|
||||
|
||||
// handlePacket mocks base method
|
||||
func (m *MockUnknownPacketHandler) handlePacket(arg0 *receivedPacket) {
|
||||
m.ctrl.Call(m, "handlePacket", arg0)
|
||||
}
|
||||
|
||||
// handlePacket indicates an expected call of handlePacket
|
||||
func (mr *MockUnknownPacketHandlerMockRecorder) handlePacket(arg0 interface{}) *gomock.Call {
|
||||
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handlePacket", reflect.TypeOf((*MockUnknownPacketHandler)(nil).handlePacket), arg0)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue