github.com/MerlinKodo/quic-go@v0.39.2/internal/mocks/ackhandler/sent_packet_handler.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/MerlinKodo/quic-go/internal/ackhandler (interfaces: SentPacketHandler) 3 // 4 // Generated by this command: 5 // 6 // mockgen -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/sent_packet_handler.go github.com/MerlinKodo/quic-go/internal/ackhandler SentPacketHandler 7 // 8 // Package mockackhandler is a generated GoMock package. 9 package mockackhandler 10 11 import ( 12 reflect "reflect" 13 time "time" 14 15 congestion "github.com/MerlinKodo/quic-go/congestion" 16 ackhandler "github.com/MerlinKodo/quic-go/internal/ackhandler" 17 protocol "github.com/MerlinKodo/quic-go/internal/protocol" 18 wire "github.com/MerlinKodo/quic-go/internal/wire" 19 gomock "go.uber.org/mock/gomock" 20 ) 21 22 // MockSentPacketHandler is a mock of SentPacketHandler interface. 23 type MockSentPacketHandler struct { 24 ctrl *gomock.Controller 25 recorder *MockSentPacketHandlerMockRecorder 26 } 27 28 // MockSentPacketHandlerMockRecorder is the mock recorder for MockSentPacketHandler. 29 type MockSentPacketHandlerMockRecorder struct { 30 mock *MockSentPacketHandler 31 } 32 33 // NewMockSentPacketHandler creates a new mock instance. 34 func NewMockSentPacketHandler(ctrl *gomock.Controller) *MockSentPacketHandler { 35 mock := &MockSentPacketHandler{ctrl: ctrl} 36 mock.recorder = &MockSentPacketHandlerMockRecorder{mock} 37 return mock 38 } 39 40 // EXPECT returns an object that allows the caller to indicate expected use. 41 func (m *MockSentPacketHandler) EXPECT() *MockSentPacketHandlerMockRecorder { 42 return m.recorder 43 } 44 45 // DropPackets mocks base method. 46 func (m *MockSentPacketHandler) DropPackets(arg0 protocol.EncryptionLevel) { 47 m.ctrl.T.Helper() 48 m.ctrl.Call(m, "DropPackets", arg0) 49 } 50 51 // DropPackets indicates an expected call of DropPackets. 52 func (mr *MockSentPacketHandlerMockRecorder) DropPackets(arg0 any) *gomock.Call { 53 mr.mock.ctrl.T.Helper() 54 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DropPackets", reflect.TypeOf((*MockSentPacketHandler)(nil).DropPackets), arg0) 55 } 56 57 // ECNMode mocks base method. 58 func (m *MockSentPacketHandler) ECNMode(arg0 bool) protocol.ECN { 59 m.ctrl.T.Helper() 60 ret := m.ctrl.Call(m, "ECNMode", arg0) 61 ret0, _ := ret[0].(protocol.ECN) 62 return ret0 63 } 64 65 // ECNMode indicates an expected call of ECNMode. 66 func (mr *MockSentPacketHandlerMockRecorder) ECNMode(arg0 any) *gomock.Call { 67 mr.mock.ctrl.T.Helper() 68 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ECNMode", reflect.TypeOf((*MockSentPacketHandler)(nil).ECNMode), arg0) 69 } 70 71 // GetLossDetectionTimeout mocks base method. 72 func (m *MockSentPacketHandler) GetLossDetectionTimeout() time.Time { 73 m.ctrl.T.Helper() 74 ret := m.ctrl.Call(m, "GetLossDetectionTimeout") 75 ret0, _ := ret[0].(time.Time) 76 return ret0 77 } 78 79 // GetLossDetectionTimeout indicates an expected call of GetLossDetectionTimeout. 80 func (mr *MockSentPacketHandlerMockRecorder) GetLossDetectionTimeout() *gomock.Call { 81 mr.mock.ctrl.T.Helper() 82 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLossDetectionTimeout", reflect.TypeOf((*MockSentPacketHandler)(nil).GetLossDetectionTimeout)) 83 } 84 85 // OnLossDetectionTimeout mocks base method. 86 func (m *MockSentPacketHandler) OnLossDetectionTimeout() error { 87 m.ctrl.T.Helper() 88 ret := m.ctrl.Call(m, "OnLossDetectionTimeout") 89 ret0, _ := ret[0].(error) 90 return ret0 91 } 92 93 // OnLossDetectionTimeout indicates an expected call of OnLossDetectionTimeout. 94 func (mr *MockSentPacketHandlerMockRecorder) OnLossDetectionTimeout() *gomock.Call { 95 mr.mock.ctrl.T.Helper() 96 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnLossDetectionTimeout", reflect.TypeOf((*MockSentPacketHandler)(nil).OnLossDetectionTimeout)) 97 } 98 99 // PeekPacketNumber mocks base method. 100 func (m *MockSentPacketHandler) PeekPacketNumber(arg0 protocol.EncryptionLevel) (protocol.PacketNumber, protocol.PacketNumberLen) { 101 m.ctrl.T.Helper() 102 ret := m.ctrl.Call(m, "PeekPacketNumber", arg0) 103 ret0, _ := ret[0].(protocol.PacketNumber) 104 ret1, _ := ret[1].(protocol.PacketNumberLen) 105 return ret0, ret1 106 } 107 108 // PeekPacketNumber indicates an expected call of PeekPacketNumber. 109 func (mr *MockSentPacketHandlerMockRecorder) PeekPacketNumber(arg0 any) *gomock.Call { 110 mr.mock.ctrl.T.Helper() 111 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeekPacketNumber", reflect.TypeOf((*MockSentPacketHandler)(nil).PeekPacketNumber), arg0) 112 } 113 114 // PopPacketNumber mocks base method. 115 func (m *MockSentPacketHandler) PopPacketNumber(arg0 protocol.EncryptionLevel) protocol.PacketNumber { 116 m.ctrl.T.Helper() 117 ret := m.ctrl.Call(m, "PopPacketNumber", arg0) 118 ret0, _ := ret[0].(protocol.PacketNumber) 119 return ret0 120 } 121 122 // PopPacketNumber indicates an expected call of PopPacketNumber. 123 func (mr *MockSentPacketHandlerMockRecorder) PopPacketNumber(arg0 any) *gomock.Call { 124 mr.mock.ctrl.T.Helper() 125 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PopPacketNumber", reflect.TypeOf((*MockSentPacketHandler)(nil).PopPacketNumber), arg0) 126 } 127 128 // QueueProbePacket mocks base method. 129 func (m *MockSentPacketHandler) QueueProbePacket(arg0 protocol.EncryptionLevel) bool { 130 m.ctrl.T.Helper() 131 ret := m.ctrl.Call(m, "QueueProbePacket", arg0) 132 ret0, _ := ret[0].(bool) 133 return ret0 134 } 135 136 // QueueProbePacket indicates an expected call of QueueProbePacket. 137 func (mr *MockSentPacketHandlerMockRecorder) QueueProbePacket(arg0 any) *gomock.Call { 138 mr.mock.ctrl.T.Helper() 139 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueProbePacket", reflect.TypeOf((*MockSentPacketHandler)(nil).QueueProbePacket), arg0) 140 } 141 142 // ReceivedAck mocks base method. 143 func (m *MockSentPacketHandler) ReceivedAck(arg0 *wire.AckFrame, arg1 protocol.EncryptionLevel, arg2 time.Time) (bool, error) { 144 m.ctrl.T.Helper() 145 ret := m.ctrl.Call(m, "ReceivedAck", arg0, arg1, arg2) 146 ret0, _ := ret[0].(bool) 147 ret1, _ := ret[1].(error) 148 return ret0, ret1 149 } 150 151 // ReceivedAck indicates an expected call of ReceivedAck. 152 func (mr *MockSentPacketHandlerMockRecorder) ReceivedAck(arg0, arg1, arg2 any) *gomock.Call { 153 mr.mock.ctrl.T.Helper() 154 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedAck", reflect.TypeOf((*MockSentPacketHandler)(nil).ReceivedAck), arg0, arg1, arg2) 155 } 156 157 // ReceivedBytes mocks base method. 158 func (m *MockSentPacketHandler) ReceivedBytes(arg0 protocol.ByteCount) { 159 m.ctrl.T.Helper() 160 m.ctrl.Call(m, "ReceivedBytes", arg0) 161 } 162 163 // ReceivedBytes indicates an expected call of ReceivedBytes. 164 func (mr *MockSentPacketHandlerMockRecorder) ReceivedBytes(arg0 any) *gomock.Call { 165 mr.mock.ctrl.T.Helper() 166 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedBytes", reflect.TypeOf((*MockSentPacketHandler)(nil).ReceivedBytes), arg0) 167 } 168 169 // ResetForRetry mocks base method. 170 func (m *MockSentPacketHandler) ResetForRetry(arg0 time.Time) error { 171 m.ctrl.T.Helper() 172 ret := m.ctrl.Call(m, "ResetForRetry", arg0) 173 ret0, _ := ret[0].(error) 174 return ret0 175 } 176 177 // ResetForRetry indicates an expected call of ResetForRetry. 178 func (mr *MockSentPacketHandlerMockRecorder) ResetForRetry(arg0 any) *gomock.Call { 179 mr.mock.ctrl.T.Helper() 180 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetForRetry", reflect.TypeOf((*MockSentPacketHandler)(nil).ResetForRetry), arg0) 181 } 182 183 // SendMode mocks base method. 184 func (m *MockSentPacketHandler) SendMode(arg0 time.Time) ackhandler.SendMode { 185 m.ctrl.T.Helper() 186 ret := m.ctrl.Call(m, "SendMode", arg0) 187 ret0, _ := ret[0].(ackhandler.SendMode) 188 return ret0 189 } 190 191 // SendMode indicates an expected call of SendMode. 192 func (mr *MockSentPacketHandlerMockRecorder) SendMode(arg0 any) *gomock.Call { 193 mr.mock.ctrl.T.Helper() 194 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMode", reflect.TypeOf((*MockSentPacketHandler)(nil).SendMode), arg0) 195 } 196 197 // SentPacket mocks base method. 198 func (m *MockSentPacketHandler) SentPacket(arg0 time.Time, arg1, arg2 protocol.PacketNumber, arg3 []ackhandler.StreamFrame, arg4 []ackhandler.Frame, arg5 protocol.EncryptionLevel, arg6 protocol.ECN, arg7 protocol.ByteCount, arg8 bool) { 199 m.ctrl.T.Helper() 200 m.ctrl.Call(m, "SentPacket", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 201 } 202 203 // SentPacket indicates an expected call of SentPacket. 204 func (mr *MockSentPacketHandlerMockRecorder) SentPacket(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 any) *gomock.Call { 205 mr.mock.ctrl.T.Helper() 206 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentPacket", reflect.TypeOf((*MockSentPacketHandler)(nil).SentPacket), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 207 } 208 209 // SetCongestionControl mocks base method. 210 func (m *MockSentPacketHandler) SetCongestionControl(arg0 congestion.CongestionControl) { 211 m.ctrl.T.Helper() 212 m.ctrl.Call(m, "SetCongestionControl", arg0) 213 } 214 215 // SetCongestionControl indicates an expected call of SetCongestionControl. 216 func (mr *MockSentPacketHandlerMockRecorder) SetCongestionControl(arg0 interface{}) *gomock.Call { 217 mr.mock.ctrl.T.Helper() 218 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCongestionControl", reflect.TypeOf((*MockSentPacketHandler)(nil).SetCongestionControl), arg0) 219 } 220 221 // SetHandshakeConfirmed mocks base method. 222 func (m *MockSentPacketHandler) SetHandshakeConfirmed() { 223 m.ctrl.T.Helper() 224 m.ctrl.Call(m, "SetHandshakeConfirmed") 225 } 226 227 // SetHandshakeConfirmed indicates an expected call of SetHandshakeConfirmed. 228 func (mr *MockSentPacketHandlerMockRecorder) SetHandshakeConfirmed() *gomock.Call { 229 mr.mock.ctrl.T.Helper() 230 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHandshakeConfirmed", reflect.TypeOf((*MockSentPacketHandler)(nil).SetHandshakeConfirmed)) 231 } 232 233 // SetMaxDatagramSize mocks base method. 234 func (m *MockSentPacketHandler) SetMaxDatagramSize(arg0 protocol.ByteCount) { 235 m.ctrl.T.Helper() 236 m.ctrl.Call(m, "SetMaxDatagramSize", arg0) 237 } 238 239 // SetMaxDatagramSize indicates an expected call of SetMaxDatagramSize. 240 func (mr *MockSentPacketHandlerMockRecorder) SetMaxDatagramSize(arg0 any) *gomock.Call { 241 mr.mock.ctrl.T.Helper() 242 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxDatagramSize", reflect.TypeOf((*MockSentPacketHandler)(nil).SetMaxDatagramSize), arg0) 243 } 244 245 // TimeUntilSend mocks base method. 246 func (m *MockSentPacketHandler) TimeUntilSend() time.Time { 247 m.ctrl.T.Helper() 248 ret := m.ctrl.Call(m, "TimeUntilSend") 249 ret0, _ := ret[0].(time.Time) 250 return ret0 251 } 252 253 // TimeUntilSend indicates an expected call of TimeUntilSend. 254 func (mr *MockSentPacketHandlerMockRecorder) TimeUntilSend() *gomock.Call { 255 mr.mock.ctrl.T.Helper() 256 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TimeUntilSend", reflect.TypeOf((*MockSentPacketHandler)(nil).TimeUntilSend)) 257 }