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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tumi8/quic-go (interfaces: Packer)
     3  
     4  // Package quic is a generated GoMock package.
     5  package quic
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	ackhandler "github.com/tumi8/quic-go/noninternal/ackhandler"
    12  	protocol "github.com/tumi8/quic-go/noninternal/protocol"
    13  	qerr "github.com/tumi8/quic-go/noninternal/qerr"
    14  )
    15  
    16  // MockPacker is a mock of Packer interface.
    17  type MockPacker struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockPackerMockRecorder
    20  }
    21  
    22  // MockPackerMockRecorder is the mock recorder for MockPacker.
    23  type MockPackerMockRecorder struct {
    24  	mock *MockPacker
    25  }
    26  
    27  // NewMockPacker creates a new mock instance.
    28  func NewMockPacker(ctrl *gomock.Controller) *MockPacker {
    29  	mock := &MockPacker{ctrl: ctrl}
    30  	mock.recorder = &MockPackerMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use.
    35  func (m *MockPacker) EXPECT() *MockPackerMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // AppendPacket mocks base method.
    40  func (m *MockPacker) AppendPacket(arg0 *packetBuffer, arg1 protocol.ByteCount, arg2 protocol.VersionNumber) (shortHeaderPacket, error) {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "AppendPacket", arg0, arg1, arg2)
    43  	ret0, _ := ret[0].(shortHeaderPacket)
    44  	ret1, _ := ret[1].(error)
    45  	return ret0, ret1
    46  }
    47  
    48  // AppendPacket indicates an expected call of AppendPacket.
    49  func (mr *MockPackerMockRecorder) AppendPacket(arg0, arg1, arg2 interface{}) *gomock.Call {
    50  	mr.mock.ctrl.T.Helper()
    51  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AppendPacket", reflect.TypeOf((*MockPacker)(nil).AppendPacket), arg0, arg1, arg2)
    52  }
    53  
    54  // MaybePackProbePacket mocks base method.
    55  func (m *MockPacker) MaybePackProbePacket(arg0 protocol.EncryptionLevel, arg1 protocol.ByteCount, arg2 protocol.VersionNumber) (*coalescedPacket, error) {
    56  	m.ctrl.T.Helper()
    57  	ret := m.ctrl.Call(m, "MaybePackProbePacket", arg0, arg1, arg2)
    58  	ret0, _ := ret[0].(*coalescedPacket)
    59  	ret1, _ := ret[1].(error)
    60  	return ret0, ret1
    61  }
    62  
    63  // MaybePackProbePacket indicates an expected call of MaybePackProbePacket.
    64  func (mr *MockPackerMockRecorder) MaybePackProbePacket(arg0, arg1, arg2 interface{}) *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "MaybePackProbePacket", reflect.TypeOf((*MockPacker)(nil).MaybePackProbePacket), arg0, arg1, arg2)
    67  }
    68  
    69  // PackAckOnlyPacket mocks base method.
    70  func (m *MockPacker) PackAckOnlyPacket(arg0 protocol.ByteCount, arg1 protocol.VersionNumber) (shortHeaderPacket, *packetBuffer, error) {
    71  	m.ctrl.T.Helper()
    72  	ret := m.ctrl.Call(m, "PackAckOnlyPacket", arg0, arg1)
    73  	ret0, _ := ret[0].(shortHeaderPacket)
    74  	ret1, _ := ret[1].(*packetBuffer)
    75  	ret2, _ := ret[2].(error)
    76  	return ret0, ret1, ret2
    77  }
    78  
    79  // PackAckOnlyPacket indicates an expected call of PackAckOnlyPacket.
    80  func (mr *MockPackerMockRecorder) PackAckOnlyPacket(arg0, arg1 interface{}) *gomock.Call {
    81  	mr.mock.ctrl.T.Helper()
    82  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PackAckOnlyPacket", reflect.TypeOf((*MockPacker)(nil).PackAckOnlyPacket), arg0, arg1)
    83  }
    84  
    85  // PackApplicationClose mocks base method.
    86  func (m *MockPacker) PackApplicationClose(arg0 *qerr.ApplicationError, arg1 protocol.ByteCount, arg2 protocol.VersionNumber) (*coalescedPacket, error) {
    87  	m.ctrl.T.Helper()
    88  	ret := m.ctrl.Call(m, "PackApplicationClose", arg0, arg1, arg2)
    89  	ret0, _ := ret[0].(*coalescedPacket)
    90  	ret1, _ := ret[1].(error)
    91  	return ret0, ret1
    92  }
    93  
    94  // PackApplicationClose indicates an expected call of PackApplicationClose.
    95  func (mr *MockPackerMockRecorder) PackApplicationClose(arg0, arg1, arg2 interface{}) *gomock.Call {
    96  	mr.mock.ctrl.T.Helper()
    97  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PackApplicationClose", reflect.TypeOf((*MockPacker)(nil).PackApplicationClose), arg0, arg1, arg2)
    98  }
    99  
   100  // PackCoalescedPacket mocks base method.
   101  func (m *MockPacker) PackCoalescedPacket(arg0 bool, arg1 protocol.ByteCount, arg2 protocol.VersionNumber) (*coalescedPacket, error) {
   102  	m.ctrl.T.Helper()
   103  	ret := m.ctrl.Call(m, "PackCoalescedPacket", arg0, arg1, arg2)
   104  	ret0, _ := ret[0].(*coalescedPacket)
   105  	ret1, _ := ret[1].(error)
   106  	return ret0, ret1
   107  }
   108  
   109  // PackCoalescedPacket indicates an expected call of PackCoalescedPacket.
   110  func (mr *MockPackerMockRecorder) PackCoalescedPacket(arg0, arg1, arg2 interface{}) *gomock.Call {
   111  	mr.mock.ctrl.T.Helper()
   112  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PackCoalescedPacket", reflect.TypeOf((*MockPacker)(nil).PackCoalescedPacket), arg0, arg1, arg2)
   113  }
   114  
   115  // PackConnectionClose mocks base method.
   116  func (m *MockPacker) PackConnectionClose(arg0 *qerr.TransportError, arg1 protocol.ByteCount, arg2 protocol.VersionNumber) (*coalescedPacket, error) {
   117  	m.ctrl.T.Helper()
   118  	ret := m.ctrl.Call(m, "PackConnectionClose", arg0, arg1, arg2)
   119  	ret0, _ := ret[0].(*coalescedPacket)
   120  	ret1, _ := ret[1].(error)
   121  	return ret0, ret1
   122  }
   123  
   124  // PackConnectionClose indicates an expected call of PackConnectionClose.
   125  func (mr *MockPackerMockRecorder) PackConnectionClose(arg0, arg1, arg2 interface{}) *gomock.Call {
   126  	mr.mock.ctrl.T.Helper()
   127  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PackConnectionClose", reflect.TypeOf((*MockPacker)(nil).PackConnectionClose), arg0, arg1, arg2)
   128  }
   129  
   130  // PackMTUProbePacket mocks base method.
   131  func (m *MockPacker) PackMTUProbePacket(arg0 ackhandler.Frame, arg1 protocol.ByteCount, arg2 protocol.VersionNumber) (shortHeaderPacket, *packetBuffer, error) {
   132  	m.ctrl.T.Helper()
   133  	ret := m.ctrl.Call(m, "PackMTUProbePacket", arg0, arg1, arg2)
   134  	ret0, _ := ret[0].(shortHeaderPacket)
   135  	ret1, _ := ret[1].(*packetBuffer)
   136  	ret2, _ := ret[2].(error)
   137  	return ret0, ret1, ret2
   138  }
   139  
   140  // PackMTUProbePacket indicates an expected call of PackMTUProbePacket.
   141  func (mr *MockPackerMockRecorder) PackMTUProbePacket(arg0, arg1, arg2 interface{}) *gomock.Call {
   142  	mr.mock.ctrl.T.Helper()
   143  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PackMTUProbePacket", reflect.TypeOf((*MockPacker)(nil).PackMTUProbePacket), arg0, arg1, arg2)
   144  }
   145  
   146  // SetToken mocks base method.
   147  func (m *MockPacker) SetToken(arg0 []byte) {
   148  	m.ctrl.T.Helper()
   149  	m.ctrl.Call(m, "SetToken", arg0)
   150  }
   151  
   152  // SetToken indicates an expected call of SetToken.
   153  func (mr *MockPackerMockRecorder) SetToken(arg0 interface{}) *gomock.Call {
   154  	mr.mock.ctrl.T.Helper()
   155  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetToken", reflect.TypeOf((*MockPacker)(nil).SetToken), arg0)
   156  }