github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/mock_mtu_discoverer_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/danielpfeifer02/quic-go-prio-packs (interfaces: MTUDiscoverer) 3 // 4 // Generated by this command: 5 // 6 // mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/danielpfeifer02/quic-go-prio-packs -destination mock_mtu_discoverer_test.go github.com/danielpfeifer02/quic-go-prio-packs 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/danielpfeifer02/quic-go-prio-packs/internal/ackhandler" 16 protocol "github.com/danielpfeifer02/quic-go-prio-packs/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() *MTUDiscovererCurrentSizeCall { 53 mr.mock.ctrl.T.Helper() 54 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CurrentSize", reflect.TypeOf((*MockMTUDiscoverer)(nil).CurrentSize)) 55 return &MTUDiscovererCurrentSizeCall{Call: call} 56 } 57 58 // MTUDiscovererCurrentSizeCall wrap *gomock.Call 59 type MTUDiscovererCurrentSizeCall struct { 60 *gomock.Call 61 } 62 63 // Return rewrite *gomock.Call.Return 64 func (c *MTUDiscovererCurrentSizeCall) Return(arg0 protocol.ByteCount) *MTUDiscovererCurrentSizeCall { 65 c.Call = c.Call.Return(arg0) 66 return c 67 } 68 69 // Do rewrite *gomock.Call.Do 70 func (c *MTUDiscovererCurrentSizeCall) Do(f func() protocol.ByteCount) *MTUDiscovererCurrentSizeCall { 71 c.Call = c.Call.Do(f) 72 return c 73 } 74 75 // DoAndReturn rewrite *gomock.Call.DoAndReturn 76 func (c *MTUDiscovererCurrentSizeCall) DoAndReturn(f func() protocol.ByteCount) *MTUDiscovererCurrentSizeCall { 77 c.Call = c.Call.DoAndReturn(f) 78 return c 79 } 80 81 // GetPing mocks base method. 82 func (m *MockMTUDiscoverer) GetPing() (ackhandler.Frame, protocol.ByteCount) { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "GetPing") 85 ret0, _ := ret[0].(ackhandler.Frame) 86 ret1, _ := ret[1].(protocol.ByteCount) 87 return ret0, ret1 88 } 89 90 // GetPing indicates an expected call of GetPing. 91 func (mr *MockMTUDiscovererMockRecorder) GetPing() *MTUDiscovererGetPingCall { 92 mr.mock.ctrl.T.Helper() 93 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetPing", reflect.TypeOf((*MockMTUDiscoverer)(nil).GetPing)) 94 return &MTUDiscovererGetPingCall{Call: call} 95 } 96 97 // MTUDiscovererGetPingCall wrap *gomock.Call 98 type MTUDiscovererGetPingCall struct { 99 *gomock.Call 100 } 101 102 // Return rewrite *gomock.Call.Return 103 func (c *MTUDiscovererGetPingCall) Return(arg0 ackhandler.Frame, arg1 protocol.ByteCount) *MTUDiscovererGetPingCall { 104 c.Call = c.Call.Return(arg0, arg1) 105 return c 106 } 107 108 // Do rewrite *gomock.Call.Do 109 func (c *MTUDiscovererGetPingCall) Do(f func() (ackhandler.Frame, protocol.ByteCount)) *MTUDiscovererGetPingCall { 110 c.Call = c.Call.Do(f) 111 return c 112 } 113 114 // DoAndReturn rewrite *gomock.Call.DoAndReturn 115 func (c *MTUDiscovererGetPingCall) DoAndReturn(f func() (ackhandler.Frame, protocol.ByteCount)) *MTUDiscovererGetPingCall { 116 c.Call = c.Call.DoAndReturn(f) 117 return c 118 } 119 120 // ShouldSendProbe mocks base method. 121 func (m *MockMTUDiscoverer) ShouldSendProbe(arg0 time.Time) bool { 122 m.ctrl.T.Helper() 123 ret := m.ctrl.Call(m, "ShouldSendProbe", arg0) 124 ret0, _ := ret[0].(bool) 125 return ret0 126 } 127 128 // ShouldSendProbe indicates an expected call of ShouldSendProbe. 129 func (mr *MockMTUDiscovererMockRecorder) ShouldSendProbe(arg0 any) *MTUDiscovererShouldSendProbeCall { 130 mr.mock.ctrl.T.Helper() 131 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ShouldSendProbe", reflect.TypeOf((*MockMTUDiscoverer)(nil).ShouldSendProbe), arg0) 132 return &MTUDiscovererShouldSendProbeCall{Call: call} 133 } 134 135 // MTUDiscovererShouldSendProbeCall wrap *gomock.Call 136 type MTUDiscovererShouldSendProbeCall struct { 137 *gomock.Call 138 } 139 140 // Return rewrite *gomock.Call.Return 141 func (c *MTUDiscovererShouldSendProbeCall) Return(arg0 bool) *MTUDiscovererShouldSendProbeCall { 142 c.Call = c.Call.Return(arg0) 143 return c 144 } 145 146 // Do rewrite *gomock.Call.Do 147 func (c *MTUDiscovererShouldSendProbeCall) Do(f func(time.Time) bool) *MTUDiscovererShouldSendProbeCall { 148 c.Call = c.Call.Do(f) 149 return c 150 } 151 152 // DoAndReturn rewrite *gomock.Call.DoAndReturn 153 func (c *MTUDiscovererShouldSendProbeCall) DoAndReturn(f func(time.Time) bool) *MTUDiscovererShouldSendProbeCall { 154 c.Call = c.Call.DoAndReturn(f) 155 return c 156 } 157 158 // Start mocks base method. 159 func (m *MockMTUDiscoverer) Start(arg0 protocol.ByteCount) { 160 m.ctrl.T.Helper() 161 m.ctrl.Call(m, "Start", arg0) 162 } 163 164 // Start indicates an expected call of Start. 165 func (mr *MockMTUDiscovererMockRecorder) Start(arg0 any) *MTUDiscovererStartCall { 166 mr.mock.ctrl.T.Helper() 167 call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockMTUDiscoverer)(nil).Start), arg0) 168 return &MTUDiscovererStartCall{Call: call} 169 } 170 171 // MTUDiscovererStartCall wrap *gomock.Call 172 type MTUDiscovererStartCall struct { 173 *gomock.Call 174 } 175 176 // Return rewrite *gomock.Call.Return 177 func (c *MTUDiscovererStartCall) Return() *MTUDiscovererStartCall { 178 c.Call = c.Call.Return() 179 return c 180 } 181 182 // Do rewrite *gomock.Call.Do 183 func (c *MTUDiscovererStartCall) Do(f func(protocol.ByteCount)) *MTUDiscovererStartCall { 184 c.Call = c.Call.Do(f) 185 return c 186 } 187 188 // DoAndReturn rewrite *gomock.Call.DoAndReturn 189 func (c *MTUDiscovererStartCall) DoAndReturn(f func(protocol.ByteCount)) *MTUDiscovererStartCall { 190 c.Call = c.Call.DoAndReturn(f) 191 return c 192 }