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