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