github.com/MerlinKodo/quic-go@v0.39.2/mock_unpacker_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/MerlinKodo/quic-go (interfaces: Unpacker)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -build_flags=-tags=gomock -package quic -self_package github.com/MerlinKodo/quic-go -destination mock_unpacker_test.go github.com/MerlinKodo/quic-go Unpacker
     7  //
     8  // Package quic is a generated GoMock package.
     9  package quic
    10  
    11  import (
    12  	reflect "reflect"
    13  	time "time"
    14  
    15  	protocol "github.com/MerlinKodo/quic-go/internal/protocol"
    16  	wire "github.com/MerlinKodo/quic-go/internal/wire"
    17  	gomock "go.uber.org/mock/gomock"
    18  )
    19  
    20  // MockUnpacker is a mock of Unpacker interface.
    21  type MockUnpacker struct {
    22  	ctrl     *gomock.Controller
    23  	recorder *MockUnpackerMockRecorder
    24  }
    25  
    26  // MockUnpackerMockRecorder is the mock recorder for MockUnpacker.
    27  type MockUnpackerMockRecorder struct {
    28  	mock *MockUnpacker
    29  }
    30  
    31  // NewMockUnpacker creates a new mock instance.
    32  func NewMockUnpacker(ctrl *gomock.Controller) *MockUnpacker {
    33  	mock := &MockUnpacker{ctrl: ctrl}
    34  	mock.recorder = &MockUnpackerMockRecorder{mock}
    35  	return mock
    36  }
    37  
    38  // EXPECT returns an object that allows the caller to indicate expected use.
    39  func (m *MockUnpacker) EXPECT() *MockUnpackerMockRecorder {
    40  	return m.recorder
    41  }
    42  
    43  // UnpackLongHeader mocks base method.
    44  func (m *MockUnpacker) UnpackLongHeader(arg0 *wire.Header, arg1 time.Time, arg2 []byte, arg3 protocol.VersionNumber) (*unpackedPacket, error) {
    45  	m.ctrl.T.Helper()
    46  	ret := m.ctrl.Call(m, "UnpackLongHeader", arg0, arg1, arg2, arg3)
    47  	ret0, _ := ret[0].(*unpackedPacket)
    48  	ret1, _ := ret[1].(error)
    49  	return ret0, ret1
    50  }
    51  
    52  // UnpackLongHeader indicates an expected call of UnpackLongHeader.
    53  func (mr *MockUnpackerMockRecorder) UnpackLongHeader(arg0, arg1, arg2, arg3 any) *gomock.Call {
    54  	mr.mock.ctrl.T.Helper()
    55  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnpackLongHeader", reflect.TypeOf((*MockUnpacker)(nil).UnpackLongHeader), arg0, arg1, arg2, arg3)
    56  }
    57  
    58  // UnpackShortHeader mocks base method.
    59  func (m *MockUnpacker) UnpackShortHeader(arg0 time.Time, arg1 []byte) (protocol.PacketNumber, protocol.PacketNumberLen, protocol.KeyPhaseBit, []byte, error) {
    60  	m.ctrl.T.Helper()
    61  	ret := m.ctrl.Call(m, "UnpackShortHeader", arg0, arg1)
    62  	ret0, _ := ret[0].(protocol.PacketNumber)
    63  	ret1, _ := ret[1].(protocol.PacketNumberLen)
    64  	ret2, _ := ret[2].(protocol.KeyPhaseBit)
    65  	ret3, _ := ret[3].([]byte)
    66  	ret4, _ := ret[4].(error)
    67  	return ret0, ret1, ret2, ret3, ret4
    68  }
    69  
    70  // UnpackShortHeader indicates an expected call of UnpackShortHeader.
    71  func (mr *MockUnpackerMockRecorder) UnpackShortHeader(arg0, arg1 any) *gomock.Call {
    72  	mr.mock.ctrl.T.Helper()
    73  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnpackShortHeader", reflect.TypeOf((*MockUnpacker)(nil).UnpackShortHeader), arg0, arg1)
    74  }