github.com/tumi8/quic-go@v0.37.4-tum/noninternal/mocks/congestion.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tumi8/quic-go/noninternal/congestion (interfaces: SendAlgorithmWithDebugInfos)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  	time "time"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	protocol "github.com/tumi8/quic-go/noninternal/protocol"
    13  )
    14  
    15  // MockSendAlgorithmWithDebugInfos is a mock of SendAlgorithmWithDebugInfos interface.
    16  type MockSendAlgorithmWithDebugInfos struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockSendAlgorithmWithDebugInfosMockRecorder
    19  }
    20  
    21  // MockSendAlgorithmWithDebugInfosMockRecorder is the mock recorder for MockSendAlgorithmWithDebugInfos.
    22  type MockSendAlgorithmWithDebugInfosMockRecorder struct {
    23  	mock *MockSendAlgorithmWithDebugInfos
    24  }
    25  
    26  // NewMockSendAlgorithmWithDebugInfos creates a new mock instance.
    27  func NewMockSendAlgorithmWithDebugInfos(ctrl *gomock.Controller) *MockSendAlgorithmWithDebugInfos {
    28  	mock := &MockSendAlgorithmWithDebugInfos{ctrl: ctrl}
    29  	mock.recorder = &MockSendAlgorithmWithDebugInfosMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockSendAlgorithmWithDebugInfos) EXPECT() *MockSendAlgorithmWithDebugInfosMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // CanSend mocks base method.
    39  func (m *MockSendAlgorithmWithDebugInfos) CanSend(arg0 protocol.ByteCount) bool {
    40  	m.ctrl.T.Helper()
    41  	ret := m.ctrl.Call(m, "CanSend", arg0)
    42  	ret0, _ := ret[0].(bool)
    43  	return ret0
    44  }
    45  
    46  // CanSend indicates an expected call of CanSend.
    47  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) CanSend(arg0 interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CanSend", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).CanSend), arg0)
    50  }
    51  
    52  // GetCongestionWindow mocks base method.
    53  func (m *MockSendAlgorithmWithDebugInfos) GetCongestionWindow() protocol.ByteCount {
    54  	m.ctrl.T.Helper()
    55  	ret := m.ctrl.Call(m, "GetCongestionWindow")
    56  	ret0, _ := ret[0].(protocol.ByteCount)
    57  	return ret0
    58  }
    59  
    60  // GetCongestionWindow indicates an expected call of GetCongestionWindow.
    61  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) GetCongestionWindow() *gomock.Call {
    62  	mr.mock.ctrl.T.Helper()
    63  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetCongestionWindow", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).GetCongestionWindow))
    64  }
    65  
    66  // HasPacingBudget mocks base method.
    67  func (m *MockSendAlgorithmWithDebugInfos) HasPacingBudget(arg0 time.Time) bool {
    68  	m.ctrl.T.Helper()
    69  	ret := m.ctrl.Call(m, "HasPacingBudget", arg0)
    70  	ret0, _ := ret[0].(bool)
    71  	return ret0
    72  }
    73  
    74  // HasPacingBudget indicates an expected call of HasPacingBudget.
    75  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) HasPacingBudget(arg0 interface{}) *gomock.Call {
    76  	mr.mock.ctrl.T.Helper()
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasPacingBudget", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).HasPacingBudget), arg0)
    78  }
    79  
    80  // InRecovery mocks base method.
    81  func (m *MockSendAlgorithmWithDebugInfos) InRecovery() bool {
    82  	m.ctrl.T.Helper()
    83  	ret := m.ctrl.Call(m, "InRecovery")
    84  	ret0, _ := ret[0].(bool)
    85  	return ret0
    86  }
    87  
    88  // InRecovery indicates an expected call of InRecovery.
    89  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) InRecovery() *gomock.Call {
    90  	mr.mock.ctrl.T.Helper()
    91  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InRecovery", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).InRecovery))
    92  }
    93  
    94  // InSlowStart mocks base method.
    95  func (m *MockSendAlgorithmWithDebugInfos) InSlowStart() bool {
    96  	m.ctrl.T.Helper()
    97  	ret := m.ctrl.Call(m, "InSlowStart")
    98  	ret0, _ := ret[0].(bool)
    99  	return ret0
   100  }
   101  
   102  // InSlowStart indicates an expected call of InSlowStart.
   103  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) InSlowStart() *gomock.Call {
   104  	mr.mock.ctrl.T.Helper()
   105  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "InSlowStart", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).InSlowStart))
   106  }
   107  
   108  // MaybeExitSlowStart mocks base method.
   109  func (m *MockSendAlgorithmWithDebugInfos) MaybeExitSlowStart() {
   110  	m.ctrl.T.Helper()
   111  	m.ctrl.Call(m, "MaybeExitSlowStart")
   112  }
   113  
   114  // MaybeExitSlowStart indicates an expected call of MaybeExitSlowStart.
   115  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) MaybeExitSlowStart() *gomock.Call {
   116  	mr.mock.ctrl.T.Helper()
   117  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaybeExitSlowStart", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).MaybeExitSlowStart))
   118  }
   119  
   120  // OnPacketAcked mocks base method.
   121  func (m *MockSendAlgorithmWithDebugInfos) OnPacketAcked(arg0 protocol.PacketNumber, arg1, arg2 protocol.ByteCount, arg3 time.Time) {
   122  	m.ctrl.T.Helper()
   123  	m.ctrl.Call(m, "OnPacketAcked", arg0, arg1, arg2, arg3)
   124  }
   125  
   126  // OnPacketAcked indicates an expected call of OnPacketAcked.
   127  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) OnPacketAcked(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
   128  	mr.mock.ctrl.T.Helper()
   129  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnPacketAcked", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).OnPacketAcked), arg0, arg1, arg2, arg3)
   130  }
   131  
   132  // OnPacketLost mocks base method.
   133  func (m *MockSendAlgorithmWithDebugInfos) OnPacketLost(arg0 protocol.PacketNumber, arg1, arg2 protocol.ByteCount) {
   134  	m.ctrl.T.Helper()
   135  	m.ctrl.Call(m, "OnPacketLost", arg0, arg1, arg2)
   136  }
   137  
   138  // OnPacketLost indicates an expected call of OnPacketLost.
   139  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) OnPacketLost(arg0, arg1, arg2 interface{}) *gomock.Call {
   140  	mr.mock.ctrl.T.Helper()
   141  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnPacketLost", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).OnPacketLost), arg0, arg1, arg2)
   142  }
   143  
   144  // OnPacketSent mocks base method.
   145  func (m *MockSendAlgorithmWithDebugInfos) OnPacketSent(arg0 time.Time, arg1 protocol.ByteCount, arg2 protocol.PacketNumber, arg3 protocol.ByteCount, arg4 bool) {
   146  	m.ctrl.T.Helper()
   147  	m.ctrl.Call(m, "OnPacketSent", arg0, arg1, arg2, arg3, arg4)
   148  }
   149  
   150  // OnPacketSent indicates an expected call of OnPacketSent.
   151  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) OnPacketSent(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
   152  	mr.mock.ctrl.T.Helper()
   153  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnPacketSent", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).OnPacketSent), arg0, arg1, arg2, arg3, arg4)
   154  }
   155  
   156  // OnRetransmissionTimeout mocks base method.
   157  func (m *MockSendAlgorithmWithDebugInfos) OnRetransmissionTimeout(arg0 bool) {
   158  	m.ctrl.T.Helper()
   159  	m.ctrl.Call(m, "OnRetransmissionTimeout", arg0)
   160  }
   161  
   162  // OnRetransmissionTimeout indicates an expected call of OnRetransmissionTimeout.
   163  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) OnRetransmissionTimeout(arg0 interface{}) *gomock.Call {
   164  	mr.mock.ctrl.T.Helper()
   165  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnRetransmissionTimeout", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).OnRetransmissionTimeout), arg0)
   166  }
   167  
   168  // SetMaxDatagramSize mocks base method.
   169  func (m *MockSendAlgorithmWithDebugInfos) SetMaxDatagramSize(arg0 protocol.ByteCount) {
   170  	m.ctrl.T.Helper()
   171  	m.ctrl.Call(m, "SetMaxDatagramSize", arg0)
   172  }
   173  
   174  // SetMaxDatagramSize indicates an expected call of SetMaxDatagramSize.
   175  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) SetMaxDatagramSize(arg0 interface{}) *gomock.Call {
   176  	mr.mock.ctrl.T.Helper()
   177  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetMaxDatagramSize", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).SetMaxDatagramSize), arg0)
   178  }
   179  
   180  // TimeUntilSend mocks base method.
   181  func (m *MockSendAlgorithmWithDebugInfos) TimeUntilSend(arg0 protocol.ByteCount) time.Time {
   182  	m.ctrl.T.Helper()
   183  	ret := m.ctrl.Call(m, "TimeUntilSend", arg0)
   184  	ret0, _ := ret[0].(time.Time)
   185  	return ret0
   186  }
   187  
   188  // TimeUntilSend indicates an expected call of TimeUntilSend.
   189  func (mr *MockSendAlgorithmWithDebugInfosMockRecorder) TimeUntilSend(arg0 interface{}) *gomock.Call {
   190  	mr.mock.ctrl.T.Helper()
   191  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TimeUntilSend", reflect.TypeOf((*MockSendAlgorithmWithDebugInfos)(nil).TimeUntilSend), arg0)
   192  }