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