github.com/tumi8/quic-go@v0.37.4-tum/mock_send_conn_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/tumi8/quic-go (interfaces: SendConn) 3 4 // Package quic is a generated GoMock package. 5 package quic 6 7 import ( 8 net "net" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 protocol "github.com/tumi8/quic-go/noninternal/protocol" 13 ) 14 15 // MockSendConn is a mock of SendConn interface. 16 type MockSendConn struct { 17 ctrl *gomock.Controller 18 recorder *MockSendConnMockRecorder 19 } 20 21 // MockSendConnMockRecorder is the mock recorder for MockSendConn. 22 type MockSendConnMockRecorder struct { 23 mock *MockSendConn 24 } 25 26 // NewMockSendConn creates a new mock instance. 27 func NewMockSendConn(ctrl *gomock.Controller) *MockSendConn { 28 mock := &MockSendConn{ctrl: ctrl} 29 mock.recorder = &MockSendConnMockRecorder{mock} 30 return mock 31 } 32 33 // EXPECT returns an object that allows the caller to indicate expected use. 34 func (m *MockSendConn) EXPECT() *MockSendConnMockRecorder { 35 return m.recorder 36 } 37 38 // Close mocks base method. 39 func (m *MockSendConn) Close() error { 40 m.ctrl.T.Helper() 41 ret := m.ctrl.Call(m, "Close") 42 ret0, _ := ret[0].(error) 43 return ret0 44 } 45 46 // Close indicates an expected call of Close. 47 func (mr *MockSendConnMockRecorder) Close() *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockSendConn)(nil).Close)) 50 } 51 52 // LocalAddr mocks base method. 53 func (m *MockSendConn) LocalAddr() net.Addr { 54 m.ctrl.T.Helper() 55 ret := m.ctrl.Call(m, "LocalAddr") 56 ret0, _ := ret[0].(net.Addr) 57 return ret0 58 } 59 60 // LocalAddr indicates an expected call of LocalAddr. 61 func (mr *MockSendConnMockRecorder) LocalAddr() *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LocalAddr", reflect.TypeOf((*MockSendConn)(nil).LocalAddr)) 64 } 65 66 // RemoteAddr mocks base method. 67 func (m *MockSendConn) RemoteAddr() net.Addr { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "RemoteAddr") 70 ret0, _ := ret[0].(net.Addr) 71 return ret0 72 } 73 74 // RemoteAddr indicates an expected call of RemoteAddr. 75 func (mr *MockSendConnMockRecorder) RemoteAddr() *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoteAddr", reflect.TypeOf((*MockSendConn)(nil).RemoteAddr)) 78 } 79 80 // Write mocks base method. 81 func (m *MockSendConn) Write(arg0 []byte, arg1 protocol.ByteCount) error { 82 m.ctrl.T.Helper() 83 ret := m.ctrl.Call(m, "Write", arg0, arg1) 84 ret0, _ := ret[0].(error) 85 return ret0 86 } 87 88 // Write indicates an expected call of Write. 89 func (mr *MockSendConnMockRecorder) Write(arg0, arg1 interface{}) *gomock.Call { 90 mr.mock.ctrl.T.Helper() 91 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockSendConn)(nil).Write), arg0, arg1) 92 } 93 94 // capabilities mocks base method. 95 func (m *MockSendConn) capabilities() connCapabilities { 96 m.ctrl.T.Helper() 97 ret := m.ctrl.Call(m, "capabilities") 98 ret0, _ := ret[0].(connCapabilities) 99 return ret0 100 } 101 102 // capabilities indicates an expected call of capabilities. 103 func (mr *MockSendConnMockRecorder) capabilities() *gomock.Call { 104 mr.mock.ctrl.T.Helper() 105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "capabilities", reflect.TypeOf((*MockSendConn)(nil).capabilities)) 106 }