github.com/tumi8/quic-go@v0.37.4-tum/logging/mock_tracer_test.go (about)

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