github.com/tumi8/quic-go@v0.37.4-tum/noninternal/mocks/logging/tracer.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/tumi8/quic-go/logging (interfaces: Tracer) 3 4 // Package mocklogging is a generated GoMock package. 5 package mocklogging 6 7 import ( 8 net "net" 9 reflect "reflect" 10 11 gomock "github.com/golang/mock/gomock" 12 protocol "github.com/tumi8/quic-go/noninternal/protocol" 13 wire "github.com/tumi8/quic-go/noninternal/wire" 14 logging "github.com/tumi8/quic-go/logging" 15 ) 16 17 // MockTracer is a mock of Tracer interface. 18 type MockTracer struct { 19 ctrl *gomock.Controller 20 recorder *MockTracerMockRecorder 21 } 22 23 // MockTracerMockRecorder is the mock recorder for MockTracer. 24 type MockTracerMockRecorder struct { 25 mock *MockTracer 26 } 27 28 // NewMockTracer creates a new mock instance. 29 func NewMockTracer(ctrl *gomock.Controller) *MockTracer { 30 mock := &MockTracer{ctrl: ctrl} 31 mock.recorder = &MockTracerMockRecorder{mock} 32 return mock 33 } 34 35 // EXPECT returns an object that allows the caller to indicate expected use. 36 func (m *MockTracer) EXPECT() *MockTracerMockRecorder { 37 return m.recorder 38 } 39 40 // DroppedPacket mocks base method. 41 func (m *MockTracer) DroppedPacket(arg0 net.Addr, arg1 logging.PacketType, arg2 protocol.ByteCount, arg3 logging.PacketDropReason) { 42 m.ctrl.T.Helper() 43 m.ctrl.Call(m, "DroppedPacket", arg0, arg1, arg2, arg3) 44 } 45 46 // DroppedPacket indicates an expected call of DroppedPacket. 47 func (mr *MockTracerMockRecorder) DroppedPacket(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 48 mr.mock.ctrl.T.Helper() 49 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DroppedPacket", reflect.TypeOf((*MockTracer)(nil).DroppedPacket), arg0, arg1, arg2, arg3) 50 } 51 52 // SentPacket mocks base method. 53 func (m *MockTracer) SentPacket(arg0 net.Addr, arg1 *wire.Header, arg2 protocol.ByteCount, arg3 []logging.Frame) { 54 m.ctrl.T.Helper() 55 m.ctrl.Call(m, "SentPacket", arg0, arg1, arg2, arg3) 56 } 57 58 // SentPacket indicates an expected call of SentPacket. 59 func (mr *MockTracerMockRecorder) SentPacket(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 60 mr.mock.ctrl.T.Helper() 61 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentPacket", reflect.TypeOf((*MockTracer)(nil).SentPacket), arg0, arg1, arg2, arg3) 62 } 63 64 // SentVersionNegotiationPacket mocks base method. 65 func (m *MockTracer) SentVersionNegotiationPacket(arg0 net.Addr, arg1, arg2 protocol.ArbitraryLenConnectionID, arg3 []protocol.VersionNumber) { 66 m.ctrl.T.Helper() 67 m.ctrl.Call(m, "SentVersionNegotiationPacket", arg0, arg1, arg2, arg3) 68 } 69 70 // SentVersionNegotiationPacket indicates an expected call of SentVersionNegotiationPacket. 71 func (mr *MockTracerMockRecorder) SentVersionNegotiationPacket(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 72 mr.mock.ctrl.T.Helper() 73 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SentVersionNegotiationPacket", reflect.TypeOf((*MockTracer)(nil).SentVersionNegotiationPacket), arg0, arg1, arg2, arg3) 74 }