forked from quic-go/quic-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mock_unknown_packet_handler_test.go
60 lines (49 loc) · 2.06 KB
/
mock_unknown_packet_handler_test.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// 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 {
m.ctrl.T.Helper()
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 {
mr.mock.ctrl.T.Helper()
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.T.Helper()
m.ctrl.Call(m, "handlePacket", arg0)
}
// handlePacket indicates an expected call of handlePacket
func (mr *MockUnknownPacketHandlerMockRecorder) handlePacket(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "handlePacket", reflect.TypeOf((*MockUnknownPacketHandler)(nil).handlePacket), arg0)
}