github.com/quic-go/quic-go@v0.44.0/internal/mocks/ackhandler/sent_packet_handler.go (about)

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