github.com/apernet/quic-go@v0.43.1-0.20240515053213-5e9e635fd9f0/internal/mocks/ackhandler/sent_packet_handler.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/apernet/quic-go/internal/ackhandler (interfaces: SentPacketHandler)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -typed -build_flags=-tags=gomock -package mockackhandler -destination ackhandler/sent_packet_handler.go github.com/apernet/quic-go/internal/ackhandler SentPacketHandler
     7  //
     8  
     9  // Package mockackhandler is a generated GoMock package.
    10  package mockackhandler
    11  
    12  import (
    13  	reflect "reflect"
    14  	time "time"
    15  
    16  	congestion "github.com/apernet/quic-go/congestion"
    17  	ackhandler "github.com/apernet/quic-go/internal/ackhandler"
    18  	protocol "github.com/apernet/quic-go/internal/protocol"
    19  	wire "github.com/apernet/quic-go/internal/wire"
    20  	gomock "go.uber.org/mock/gomock"
    21  )
    22  
    23  // MockSentPacketHandler is a mock of SentPacketHandler interface.
    24  type MockSentPacketHandler struct {
    25  	ctrl     *gomock.Controller
    26  	recorder *MockSentPacketHandlerMockRecorder
    27  }
    28  
    29  // MockSentPacketHandlerMockRecorder is the mock recorder for MockSentPacketHandler.
    30  type MockSentPacketHandlerMockRecorder struct {
    31  	mock *MockSentPacketHandler
    32  }
    33  
    34  // NewMockSentPacketHandler creates a new mock instance.
    35  func NewMockSentPacketHandler(ctrl *gomock.Controller) *MockSentPacketHandler {
    36  	mock := &MockSentPacketHandler{ctrl: ctrl}
    37  	mock.recorder = &MockSentPacketHandlerMockRecorder{mock}
    38  	return mock
    39  }
    40  
    41  // EXPECT returns an object that allows the caller to indicate expected use.
    42  func (m *MockSentPacketHandler) EXPECT() *MockSentPacketHandlerMockRecorder {
    43  	return m.recorder
    44  }
    45  
    46  // DropPackets mocks base method.
    47  func (m *MockSentPacketHandler) DropPackets(arg0 protocol.EncryptionLevel) {
    48  	m.ctrl.T.Helper()
    49  	m.ctrl.Call(m, "DropPackets", arg0)
    50  }
    51  
    52  // DropPackets indicates an expected call of DropPackets.
    53  func (mr *MockSentPacketHandlerMockRecorder) DropPackets(arg0 any) *MockSentPacketHandlerDropPacketsCall {
    54  	mr.mock.ctrl.T.Helper()
    55  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DropPackets", reflect.TypeOf((*MockSentPacketHandler)(nil).DropPackets), arg0)
    56  	return &MockSentPacketHandlerDropPacketsCall{Call: call}
    57  }
    58  
    59  // MockSentPacketHandlerDropPacketsCall wrap *gomock.Call
    60  type MockSentPacketHandlerDropPacketsCall struct {
    61  	*gomock.Call
    62  }
    63  
    64  // Return rewrite *gomock.Call.Return
    65  func (c *MockSentPacketHandlerDropPacketsCall) Return() *MockSentPacketHandlerDropPacketsCall {
    66  	c.Call = c.Call.Return()
    67  	return c
    68  }
    69  
    70  // Do rewrite *gomock.Call.Do
    71  func (c *MockSentPacketHandlerDropPacketsCall) Do(f func(protocol.EncryptionLevel)) *MockSentPacketHandlerDropPacketsCall {
    72  	c.Call = c.Call.Do(f)
    73  	return c
    74  }
    75  
    76  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    77  func (c *MockSentPacketHandlerDropPacketsCall) DoAndReturn(f func(protocol.EncryptionLevel)) *MockSentPacketHandlerDropPacketsCall {
    78  	c.Call = c.Call.DoAndReturn(f)
    79  	return c
    80  }
    81  
    82  // ECNMode mocks base method.
    83  func (m *MockSentPacketHandler) ECNMode(arg0 bool) protocol.ECN {
    84  	m.ctrl.T.Helper()
    85  	ret := m.ctrl.Call(m, "ECNMode", arg0)
    86  	ret0, _ := ret[0].(protocol.ECN)
    87  	return ret0
    88  }
    89  
    90  // ECNMode indicates an expected call of ECNMode.
    91  func (mr *MockSentPacketHandlerMockRecorder) ECNMode(arg0 any) *MockSentPacketHandlerECNModeCall {
    92  	mr.mock.ctrl.T.Helper()
    93  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ECNMode", reflect.TypeOf((*MockSentPacketHandler)(nil).ECNMode), arg0)
    94  	return &MockSentPacketHandlerECNModeCall{Call: call}
    95  }
    96  
    97  // MockSentPacketHandlerECNModeCall wrap *gomock.Call
    98  type MockSentPacketHandlerECNModeCall struct {
    99  	*gomock.Call
   100  }
   101  
   102  // Return rewrite *gomock.Call.Return
   103  func (c *MockSentPacketHandlerECNModeCall) Return(arg0 protocol.ECN) *MockSentPacketHandlerECNModeCall {
   104  	c.Call = c.Call.Return(arg0)
   105  	return c
   106  }
   107  
   108  // Do rewrite *gomock.Call.Do
   109  func (c *MockSentPacketHandlerECNModeCall) Do(f func(bool) protocol.ECN) *MockSentPacketHandlerECNModeCall {
   110  	c.Call = c.Call.Do(f)
   111  	return c
   112  }
   113  
   114  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   115  func (c *MockSentPacketHandlerECNModeCall) DoAndReturn(f func(bool) protocol.ECN) *MockSentPacketHandlerECNModeCall {
   116  	c.Call = c.Call.DoAndReturn(f)
   117  	return c
   118  }
   119  
   120  // GetLossDetectionTimeout mocks base method.
   121  func (m *MockSentPacketHandler) GetLossDetectionTimeout() time.Time {
   122  	m.ctrl.T.Helper()
   123  	ret := m.ctrl.Call(m, "GetLossDetectionTimeout")
   124  	ret0, _ := ret[0].(time.Time)
   125  	return ret0
   126  }
   127  
   128  // GetLossDetectionTimeout indicates an expected call of GetLossDetectionTimeout.
   129  func (mr *MockSentPacketHandlerMockRecorder) GetLossDetectionTimeout() *MockSentPacketHandlerGetLossDetectionTimeoutCall {
   130  	mr.mock.ctrl.T.Helper()
   131  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetLossDetectionTimeout", reflect.TypeOf((*MockSentPacketHandler)(nil).GetLossDetectionTimeout))
   132  	return &MockSentPacketHandlerGetLossDetectionTimeoutCall{Call: call}
   133  }
   134  
   135  // MockSentPacketHandlerGetLossDetectionTimeoutCall wrap *gomock.Call
   136  type MockSentPacketHandlerGetLossDetectionTimeoutCall struct {
   137  	*gomock.Call
   138  }
   139  
   140  // Return rewrite *gomock.Call.Return
   141  func (c *MockSentPacketHandlerGetLossDetectionTimeoutCall) Return(arg0 time.Time) *MockSentPacketHandlerGetLossDetectionTimeoutCall {
   142  	c.Call = c.Call.Return(arg0)
   143  	return c
   144  }
   145  
   146  // Do rewrite *gomock.Call.Do
   147  func (c *MockSentPacketHandlerGetLossDetectionTimeoutCall) Do(f func() time.Time) *MockSentPacketHandlerGetLossDetectionTimeoutCall {
   148  	c.Call = c.Call.Do(f)
   149  	return c
   150  }
   151  
   152  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   153  func (c *MockSentPacketHandlerGetLossDetectionTimeoutCall) DoAndReturn(f func() time.Time) *MockSentPacketHandlerGetLossDetectionTimeoutCall {
   154  	c.Call = c.Call.DoAndReturn(f)
   155  	return c
   156  }
   157  
   158  // OnLossDetectionTimeout mocks base method.
   159  func (m *MockSentPacketHandler) OnLossDetectionTimeout() error {
   160  	m.ctrl.T.Helper()
   161  	ret := m.ctrl.Call(m, "OnLossDetectionTimeout")
   162  	ret0, _ := ret[0].(error)
   163  	return ret0
   164  }
   165  
   166  // OnLossDetectionTimeout indicates an expected call of OnLossDetectionTimeout.
   167  func (mr *MockSentPacketHandlerMockRecorder) OnLossDetectionTimeout() *MockSentPacketHandlerOnLossDetectionTimeoutCall {
   168  	mr.mock.ctrl.T.Helper()
   169  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnLossDetectionTimeout", reflect.TypeOf((*MockSentPacketHandler)(nil).OnLossDetectionTimeout))
   170  	return &MockSentPacketHandlerOnLossDetectionTimeoutCall{Call: call}
   171  }
   172  
   173  // MockSentPacketHandlerOnLossDetectionTimeoutCall wrap *gomock.Call
   174  type MockSentPacketHandlerOnLossDetectionTimeoutCall struct {
   175  	*gomock.Call
   176  }
   177  
   178  // Return rewrite *gomock.Call.Return
   179  func (c *MockSentPacketHandlerOnLossDetectionTimeoutCall) Return(arg0 error) *MockSentPacketHandlerOnLossDetectionTimeoutCall {
   180  	c.Call = c.Call.Return(arg0)
   181  	return c
   182  }
   183  
   184  // Do rewrite *gomock.Call.Do
   185  func (c *MockSentPacketHandlerOnLossDetectionTimeoutCall) Do(f func() error) *MockSentPacketHandlerOnLossDetectionTimeoutCall {
   186  	c.Call = c.Call.Do(f)
   187  	return c
   188  }
   189  
   190  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   191  func (c *MockSentPacketHandlerOnLossDetectionTimeoutCall) DoAndReturn(f func() error) *MockSentPacketHandlerOnLossDetectionTimeoutCall {
   192  	c.Call = c.Call.DoAndReturn(f)
   193  	return c
   194  }
   195  
   196  // PeekPacketNumber mocks base method.
   197  func (m *MockSentPacketHandler) PeekPacketNumber(arg0 protocol.EncryptionLevel) (protocol.PacketNumber, protocol.PacketNumberLen) {
   198  	m.ctrl.T.Helper()
   199  	ret := m.ctrl.Call(m, "PeekPacketNumber", arg0)
   200  	ret0, _ := ret[0].(protocol.PacketNumber)
   201  	ret1, _ := ret[1].(protocol.PacketNumberLen)
   202  	return ret0, ret1
   203  }
   204  
   205  // PeekPacketNumber indicates an expected call of PeekPacketNumber.
   206  func (mr *MockSentPacketHandlerMockRecorder) PeekPacketNumber(arg0 any) *MockSentPacketHandlerPeekPacketNumberCall {
   207  	mr.mock.ctrl.T.Helper()
   208  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PeekPacketNumber", reflect.TypeOf((*MockSentPacketHandler)(nil).PeekPacketNumber), arg0)
   209  	return &MockSentPacketHandlerPeekPacketNumberCall{Call: call}
   210  }
   211  
   212  // MockSentPacketHandlerPeekPacketNumberCall wrap *gomock.Call
   213  type MockSentPacketHandlerPeekPacketNumberCall struct {
   214  	*gomock.Call
   215  }
   216  
   217  // Return rewrite *gomock.Call.Return
   218  func (c *MockSentPacketHandlerPeekPacketNumberCall) Return(arg0 protocol.PacketNumber, arg1 protocol.PacketNumberLen) *MockSentPacketHandlerPeekPacketNumberCall {
   219  	c.Call = c.Call.Return(arg0, arg1)
   220  	return c
   221  }
   222  
   223  // Do rewrite *gomock.Call.Do
   224  func (c *MockSentPacketHandlerPeekPacketNumberCall) Do(f func(protocol.EncryptionLevel) (protocol.PacketNumber, protocol.PacketNumberLen)) *MockSentPacketHandlerPeekPacketNumberCall {
   225  	c.Call = c.Call.Do(f)
   226  	return c
   227  }
   228  
   229  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   230  func (c *MockSentPacketHandlerPeekPacketNumberCall) DoAndReturn(f func(protocol.EncryptionLevel) (protocol.PacketNumber, protocol.PacketNumberLen)) *MockSentPacketHandlerPeekPacketNumberCall {
   231  	c.Call = c.Call.DoAndReturn(f)
   232  	return c
   233  }
   234  
   235  // PopPacketNumber mocks base method.
   236  func (m *MockSentPacketHandler) PopPacketNumber(arg0 protocol.EncryptionLevel) protocol.PacketNumber {
   237  	m.ctrl.T.Helper()
   238  	ret := m.ctrl.Call(m, "PopPacketNumber", arg0)
   239  	ret0, _ := ret[0].(protocol.PacketNumber)
   240  	return ret0
   241  }
   242  
   243  // PopPacketNumber indicates an expected call of PopPacketNumber.
   244  func (mr *MockSentPacketHandlerMockRecorder) PopPacketNumber(arg0 any) *MockSentPacketHandlerPopPacketNumberCall {
   245  	mr.mock.ctrl.T.Helper()
   246  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PopPacketNumber", reflect.TypeOf((*MockSentPacketHandler)(nil).PopPacketNumber), arg0)
   247  	return &MockSentPacketHandlerPopPacketNumberCall{Call: call}
   248  }
   249  
   250  // MockSentPacketHandlerPopPacketNumberCall wrap *gomock.Call
   251  type MockSentPacketHandlerPopPacketNumberCall struct {
   252  	*gomock.Call
   253  }
   254  
   255  // Return rewrite *gomock.Call.Return
   256  func (c *MockSentPacketHandlerPopPacketNumberCall) Return(arg0 protocol.PacketNumber) *MockSentPacketHandlerPopPacketNumberCall {
   257  	c.Call = c.Call.Return(arg0)
   258  	return c
   259  }
   260  
   261  // Do rewrite *gomock.Call.Do
   262  func (c *MockSentPacketHandlerPopPacketNumberCall) Do(f func(protocol.EncryptionLevel) protocol.PacketNumber) *MockSentPacketHandlerPopPacketNumberCall {
   263  	c.Call = c.Call.Do(f)
   264  	return c
   265  }
   266  
   267  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   268  func (c *MockSentPacketHandlerPopPacketNumberCall) DoAndReturn(f func(protocol.EncryptionLevel) protocol.PacketNumber) *MockSentPacketHandlerPopPacketNumberCall {
   269  	c.Call = c.Call.DoAndReturn(f)
   270  	return c
   271  }
   272  
   273  // QueueProbePacket mocks base method.
   274  func (m *MockSentPacketHandler) QueueProbePacket(arg0 protocol.EncryptionLevel) bool {
   275  	m.ctrl.T.Helper()
   276  	ret := m.ctrl.Call(m, "QueueProbePacket", arg0)
   277  	ret0, _ := ret[0].(bool)
   278  	return ret0
   279  }
   280  
   281  // QueueProbePacket indicates an expected call of QueueProbePacket.
   282  func (mr *MockSentPacketHandlerMockRecorder) QueueProbePacket(arg0 any) *MockSentPacketHandlerQueueProbePacketCall {
   283  	mr.mock.ctrl.T.Helper()
   284  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "QueueProbePacket", reflect.TypeOf((*MockSentPacketHandler)(nil).QueueProbePacket), arg0)
   285  	return &MockSentPacketHandlerQueueProbePacketCall{Call: call}
   286  }
   287  
   288  // MockSentPacketHandlerQueueProbePacketCall wrap *gomock.Call
   289  type MockSentPacketHandlerQueueProbePacketCall struct {
   290  	*gomock.Call
   291  }
   292  
   293  // Return rewrite *gomock.Call.Return
   294  func (c *MockSentPacketHandlerQueueProbePacketCall) Return(arg0 bool) *MockSentPacketHandlerQueueProbePacketCall {
   295  	c.Call = c.Call.Return(arg0)
   296  	return c
   297  }
   298  
   299  // Do rewrite *gomock.Call.Do
   300  func (c *MockSentPacketHandlerQueueProbePacketCall) Do(f func(protocol.EncryptionLevel) bool) *MockSentPacketHandlerQueueProbePacketCall {
   301  	c.Call = c.Call.Do(f)
   302  	return c
   303  }
   304  
   305  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   306  func (c *MockSentPacketHandlerQueueProbePacketCall) DoAndReturn(f func(protocol.EncryptionLevel) bool) *MockSentPacketHandlerQueueProbePacketCall {
   307  	c.Call = c.Call.DoAndReturn(f)
   308  	return c
   309  }
   310  
   311  // ReceivedAck mocks base method.
   312  func (m *MockSentPacketHandler) ReceivedAck(arg0 *wire.AckFrame, arg1 protocol.EncryptionLevel, arg2 time.Time) (bool, error) {
   313  	m.ctrl.T.Helper()
   314  	ret := m.ctrl.Call(m, "ReceivedAck", arg0, arg1, arg2)
   315  	ret0, _ := ret[0].(bool)
   316  	ret1, _ := ret[1].(error)
   317  	return ret0, ret1
   318  }
   319  
   320  // ReceivedAck indicates an expected call of ReceivedAck.
   321  func (mr *MockSentPacketHandlerMockRecorder) ReceivedAck(arg0, arg1, arg2 any) *MockSentPacketHandlerReceivedAckCall {
   322  	mr.mock.ctrl.T.Helper()
   323  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedAck", reflect.TypeOf((*MockSentPacketHandler)(nil).ReceivedAck), arg0, arg1, arg2)
   324  	return &MockSentPacketHandlerReceivedAckCall{Call: call}
   325  }
   326  
   327  // MockSentPacketHandlerReceivedAckCall wrap *gomock.Call
   328  type MockSentPacketHandlerReceivedAckCall struct {
   329  	*gomock.Call
   330  }
   331  
   332  // Return rewrite *gomock.Call.Return
   333  func (c *MockSentPacketHandlerReceivedAckCall) Return(arg0 bool, arg1 error) *MockSentPacketHandlerReceivedAckCall {
   334  	c.Call = c.Call.Return(arg0, arg1)
   335  	return c
   336  }
   337  
   338  // Do rewrite *gomock.Call.Do
   339  func (c *MockSentPacketHandlerReceivedAckCall) Do(f func(*wire.AckFrame, protocol.EncryptionLevel, time.Time) (bool, error)) *MockSentPacketHandlerReceivedAckCall {
   340  	c.Call = c.Call.Do(f)
   341  	return c
   342  }
   343  
   344  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   345  func (c *MockSentPacketHandlerReceivedAckCall) DoAndReturn(f func(*wire.AckFrame, protocol.EncryptionLevel, time.Time) (bool, error)) *MockSentPacketHandlerReceivedAckCall {
   346  	c.Call = c.Call.DoAndReturn(f)
   347  	return c
   348  }
   349  
   350  // ReceivedBytes mocks base method.
   351  func (m *MockSentPacketHandler) ReceivedBytes(arg0 protocol.ByteCount) {
   352  	m.ctrl.T.Helper()
   353  	m.ctrl.Call(m, "ReceivedBytes", arg0)
   354  }
   355  
   356  // ReceivedBytes indicates an expected call of ReceivedBytes.
   357  func (mr *MockSentPacketHandlerMockRecorder) ReceivedBytes(arg0 any) *MockSentPacketHandlerReceivedBytesCall {
   358  	mr.mock.ctrl.T.Helper()
   359  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceivedBytes", reflect.TypeOf((*MockSentPacketHandler)(nil).ReceivedBytes), arg0)
   360  	return &MockSentPacketHandlerReceivedBytesCall{Call: call}
   361  }
   362  
   363  // MockSentPacketHandlerReceivedBytesCall wrap *gomock.Call
   364  type MockSentPacketHandlerReceivedBytesCall struct {
   365  	*gomock.Call
   366  }
   367  
   368  // Return rewrite *gomock.Call.Return
   369  func (c *MockSentPacketHandlerReceivedBytesCall) Return() *MockSentPacketHandlerReceivedBytesCall {
   370  	c.Call = c.Call.Return()
   371  	return c
   372  }
   373  
   374  // Do rewrite *gomock.Call.Do
   375  func (c *MockSentPacketHandlerReceivedBytesCall) Do(f func(protocol.ByteCount)) *MockSentPacketHandlerReceivedBytesCall {
   376  	c.Call = c.Call.Do(f)
   377  	return c
   378  }
   379  
   380  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   381  func (c *MockSentPacketHandlerReceivedBytesCall) DoAndReturn(f func(protocol.ByteCount)) *MockSentPacketHandlerReceivedBytesCall {
   382  	c.Call = c.Call.DoAndReturn(f)
   383  	return c
   384  }
   385  
   386  // ResetForRetry mocks base method.
   387  func (m *MockSentPacketHandler) ResetForRetry(arg0 time.Time) error {
   388  	m.ctrl.T.Helper()
   389  	ret := m.ctrl.Call(m, "ResetForRetry", arg0)
   390  	ret0, _ := ret[0].(error)
   391  	return ret0
   392  }
   393  
   394  // ResetForRetry indicates an expected call of ResetForRetry.
   395  func (mr *MockSentPacketHandlerMockRecorder) ResetForRetry(arg0 any) *MockSentPacketHandlerResetForRetryCall {
   396  	mr.mock.ctrl.T.Helper()
   397  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ResetForRetry", reflect.TypeOf((*MockSentPacketHandler)(nil).ResetForRetry), arg0)
   398  	return &MockSentPacketHandlerResetForRetryCall{Call: call}
   399  }
   400  
   401  // MockSentPacketHandlerResetForRetryCall wrap *gomock.Call
   402  type MockSentPacketHandlerResetForRetryCall struct {
   403  	*gomock.Call
   404  }
   405  
   406  // Return rewrite *gomock.Call.Return
   407  func (c *MockSentPacketHandlerResetForRetryCall) Return(arg0 error) *MockSentPacketHandlerResetForRetryCall {
   408  	c.Call = c.Call.Return(arg0)
   409  	return c
   410  }
   411  
   412  // Do rewrite *gomock.Call.Do
   413  func (c *MockSentPacketHandlerResetForRetryCall) Do(f func(time.Time) error) *MockSentPacketHandlerResetForRetryCall {
   414  	c.Call = c.Call.Do(f)
   415  	return c
   416  }
   417  
   418  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   419  func (c *MockSentPacketHandlerResetForRetryCall) DoAndReturn(f func(time.Time) error) *MockSentPacketHandlerResetForRetryCall {
   420  	c.Call = c.Call.DoAndReturn(f)
   421  	return c
   422  }
   423  
   424  // SendMode mocks base method.
   425  func (m *MockSentPacketHandler) SendMode(arg0 time.Time) ackhandler.SendMode {
   426  	m.ctrl.T.Helper()
   427  	ret := m.ctrl.Call(m, "SendMode", arg0)
   428  	ret0, _ := ret[0].(ackhandler.SendMode)
   429  	return ret0
   430  }
   431  
   432  // SendMode indicates an expected call of SendMode.
   433  func (mr *MockSentPacketHandlerMockRecorder) SendMode(arg0 any) *MockSentPacketHandlerSendModeCall {
   434  	mr.mock.ctrl.T.Helper()
   435  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMode", reflect.TypeOf((*MockSentPacketHandler)(nil).SendMode), arg0)
   436  	return &MockSentPacketHandlerSendModeCall{Call: call}
   437  }
   438  
   439  // MockSentPacketHandlerSendModeCall wrap *gomock.Call
   440  type MockSentPacketHandlerSendModeCall struct {
   441  	*gomock.Call
   442  }
   443  
   444  // Return rewrite *gomock.Call.Return
   445  func (c *MockSentPacketHandlerSendModeCall) Return(arg0 ackhandler.SendMode) *MockSentPacketHandlerSendModeCall {
   446  	c.Call = c.Call.Return(arg0)
   447  	return c
   448  }
   449  
   450  // Do rewrite *gomock.Call.Do
   451  func (c *MockSentPacketHandlerSendModeCall) Do(f func(time.Time) ackhandler.SendMode) *MockSentPacketHandlerSendModeCall {
   452  	c.Call = c.Call.Do(f)
   453  	return c
   454  }
   455  
   456  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   457  func (c *MockSentPacketHandlerSendModeCall) DoAndReturn(f func(time.Time) ackhandler.SendMode) *MockSentPacketHandlerSendModeCall {
   458  	c.Call = c.Call.DoAndReturn(f)
   459  	return c
   460  }
   461  
   462  // SentPacket mocks base method.
   463  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) {
   464  	m.ctrl.T.Helper()
   465  	m.ctrl.Call(m, "SentPacket", arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
   466  }
   467  
   468  // SentPacket indicates an expected call of SentPacket.
   469  func (mr *MockSentPacketHandlerMockRecorder) SentPacket(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8 any) *MockSentPacketHandlerSentPacketCall {
   470  	mr.mock.ctrl.T.Helper()
   471  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentPacket", reflect.TypeOf((*MockSentPacketHandler)(nil).SentPacket), arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
   472  	return &MockSentPacketHandlerSentPacketCall{Call: call}
   473  }
   474  
   475  // MockSentPacketHandlerSentPacketCall wrap *gomock.Call
   476  type MockSentPacketHandlerSentPacketCall struct {
   477  	*gomock.Call
   478  }
   479  
   480  // Return rewrite *gomock.Call.Return
   481  func (c *MockSentPacketHandlerSentPacketCall) Return() *MockSentPacketHandlerSentPacketCall {
   482  	c.Call = c.Call.Return()
   483  	return c
   484  }
   485  
   486  // Do rewrite *gomock.Call.Do
   487  func (c *MockSentPacketHandlerSentPacketCall) Do(f func(time.Time, protocol.PacketNumber, protocol.PacketNumber, []ackhandler.StreamFrame, []ackhandler.Frame, protocol.EncryptionLevel, protocol.ECN, protocol.ByteCount, bool)) *MockSentPacketHandlerSentPacketCall {
   488  	c.Call = c.Call.Do(f)
   489  	return c
   490  }
   491  
   492  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   493  func (c *MockSentPacketHandlerSentPacketCall) DoAndReturn(f func(time.Time, protocol.PacketNumber, protocol.PacketNumber, []ackhandler.StreamFrame, []ackhandler.Frame, protocol.EncryptionLevel, protocol.ECN, protocol.ByteCount, bool)) *MockSentPacketHandlerSentPacketCall {
   494  	c.Call = c.Call.DoAndReturn(f)
   495  	return c
   496  }
   497  
   498  // SetCongestionControl mocks base method.
   499  func (m *MockSentPacketHandler) SetCongestionControl(arg0 congestion.CongestionControl) {
   500  	m.ctrl.T.Helper()
   501  	m.ctrl.Call(m, "SetCongestionControl", arg0)
   502  }
   503  
   504  // SetCongestionControl indicates an expected call of SetCongestionControl.
   505  func (mr *MockSentPacketHandlerMockRecorder) SetCongestionControl(arg0 interface{}) *gomock.Call {
   506  	mr.mock.ctrl.T.Helper()
   507  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetCongestionControl", reflect.TypeOf((*MockSentPacketHandler)(nil).SetCongestionControl), arg0)
   508  }
   509  
   510  // SetHandshakeConfirmed mocks base method.
   511  func (m *MockSentPacketHandler) SetHandshakeConfirmed() {
   512  	m.ctrl.T.Helper()
   513  	m.ctrl.Call(m, "SetHandshakeConfirmed")
   514  }
   515  
   516  // SetHandshakeConfirmed indicates an expected call of SetHandshakeConfirmed.
   517  func (mr *MockSentPacketHandlerMockRecorder) SetHandshakeConfirmed() *MockSentPacketHandlerSetHandshakeConfirmedCall {
   518  	mr.mock.ctrl.T.Helper()
   519  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHandshakeConfirmed", reflect.TypeOf((*MockSentPacketHandler)(nil).SetHandshakeConfirmed))
   520  	return &MockSentPacketHandlerSetHandshakeConfirmedCall{Call: call}
   521  }
   522  
   523  // MockSentPacketHandlerSetHandshakeConfirmedCall wrap *gomock.Call
   524  type MockSentPacketHandlerSetHandshakeConfirmedCall struct {
   525  	*gomock.Call
   526  }
   527  
   528  // Return rewrite *gomock.Call.Return
   529  func (c *MockSentPacketHandlerSetHandshakeConfirmedCall) Return() *MockSentPacketHandlerSetHandshakeConfirmedCall {
   530  	c.Call = c.Call.Return()
   531  	return c
   532  }
   533  
   534  // Do rewrite *gomock.Call.Do
   535  func (c *MockSentPacketHandlerSetHandshakeConfirmedCall) Do(f func()) *MockSentPacketHandlerSetHandshakeConfirmedCall {
   536  	c.Call = c.Call.Do(f)
   537  	return c
   538  }
   539  
   540  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   541  func (c *MockSentPacketHandlerSetHandshakeConfirmedCall) DoAndReturn(f func()) *MockSentPacketHandlerSetHandshakeConfirmedCall {
   542  	c.Call = c.Call.DoAndReturn(f)
   543  	return c
   544  }
   545  
   546  // SetMaxDatagramSize mocks base method.
   547  func (m *MockSentPacketHandler) SetMaxDatagramSize(arg0 protocol.ByteCount) {
   548  	m.ctrl.T.Helper()
   549  	m.ctrl.Call(m, "SetMaxDatagramSize", arg0)
   550  }
   551  
   552  // SetMaxDatagramSize indicates an expected call of SetMaxDatagramSize.
   553  func (mr *MockSentPacketHandlerMockRecorder) SetMaxDatagramSize(arg0 any) *MockSentPacketHandlerSetMaxDatagramSizeCall {
   554  	mr.mock.ctrl.T.Helper()
   555  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxDatagramSize", reflect.TypeOf((*MockSentPacketHandler)(nil).SetMaxDatagramSize), arg0)
   556  	return &MockSentPacketHandlerSetMaxDatagramSizeCall{Call: call}
   557  }
   558  
   559  // MockSentPacketHandlerSetMaxDatagramSizeCall wrap *gomock.Call
   560  type MockSentPacketHandlerSetMaxDatagramSizeCall struct {
   561  	*gomock.Call
   562  }
   563  
   564  // Return rewrite *gomock.Call.Return
   565  func (c *MockSentPacketHandlerSetMaxDatagramSizeCall) Return() *MockSentPacketHandlerSetMaxDatagramSizeCall {
   566  	c.Call = c.Call.Return()
   567  	return c
   568  }
   569  
   570  // Do rewrite *gomock.Call.Do
   571  func (c *MockSentPacketHandlerSetMaxDatagramSizeCall) Do(f func(protocol.ByteCount)) *MockSentPacketHandlerSetMaxDatagramSizeCall {
   572  	c.Call = c.Call.Do(f)
   573  	return c
   574  }
   575  
   576  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   577  func (c *MockSentPacketHandlerSetMaxDatagramSizeCall) DoAndReturn(f func(protocol.ByteCount)) *MockSentPacketHandlerSetMaxDatagramSizeCall {
   578  	c.Call = c.Call.DoAndReturn(f)
   579  	return c
   580  }
   581  
   582  // TimeUntilSend mocks base method.
   583  func (m *MockSentPacketHandler) TimeUntilSend() time.Time {
   584  	m.ctrl.T.Helper()
   585  	ret := m.ctrl.Call(m, "TimeUntilSend")
   586  	ret0, _ := ret[0].(time.Time)
   587  	return ret0
   588  }
   589  
   590  // TimeUntilSend indicates an expected call of TimeUntilSend.
   591  func (mr *MockSentPacketHandlerMockRecorder) TimeUntilSend() *MockSentPacketHandlerTimeUntilSendCall {
   592  	mr.mock.ctrl.T.Helper()
   593  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TimeUntilSend", reflect.TypeOf((*MockSentPacketHandler)(nil).TimeUntilSend))
   594  	return &MockSentPacketHandlerTimeUntilSendCall{Call: call}
   595  }
   596  
   597  // MockSentPacketHandlerTimeUntilSendCall wrap *gomock.Call
   598  type MockSentPacketHandlerTimeUntilSendCall struct {
   599  	*gomock.Call
   600  }
   601  
   602  // Return rewrite *gomock.Call.Return
   603  func (c *MockSentPacketHandlerTimeUntilSendCall) Return(arg0 time.Time) *MockSentPacketHandlerTimeUntilSendCall {
   604  	c.Call = c.Call.Return(arg0)
   605  	return c
   606  }
   607  
   608  // Do rewrite *gomock.Call.Do
   609  func (c *MockSentPacketHandlerTimeUntilSendCall) Do(f func() time.Time) *MockSentPacketHandlerTimeUntilSendCall {
   610  	c.Call = c.Call.Do(f)
   611  	return c
   612  }
   613  
   614  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   615  func (c *MockSentPacketHandlerTimeUntilSendCall) DoAndReturn(f func() time.Time) *MockSentPacketHandlerTimeUntilSendCall {
   616  	c.Call = c.Call.DoAndReturn(f)
   617  	return c
   618  }