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