github.com/tumi8/quic-go@v0.37.4-tum/noninternal/mocks/long_header_opener.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tumi8/quic-go/noninternal/handshake (interfaces: LongHeaderOpener)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	protocol "github.com/tumi8/quic-go/noninternal/protocol"
    12  )
    13  
    14  // MockLongHeaderOpener is a mock of LongHeaderOpener interface.
    15  type MockLongHeaderOpener struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockLongHeaderOpenerMockRecorder
    18  }
    19  
    20  // MockLongHeaderOpenerMockRecorder is the mock recorder for MockLongHeaderOpener.
    21  type MockLongHeaderOpenerMockRecorder struct {
    22  	mock *MockLongHeaderOpener
    23  }
    24  
    25  // NewMockLongHeaderOpener creates a new mock instance.
    26  func NewMockLongHeaderOpener(ctrl *gomock.Controller) *MockLongHeaderOpener {
    27  	mock := &MockLongHeaderOpener{ctrl: ctrl}
    28  	mock.recorder = &MockLongHeaderOpenerMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockLongHeaderOpener) EXPECT() *MockLongHeaderOpenerMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // DecodePacketNumber mocks base method.
    38  func (m *MockLongHeaderOpener) DecodePacketNumber(arg0 protocol.PacketNumber, arg1 protocol.PacketNumberLen) protocol.PacketNumber {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "DecodePacketNumber", arg0, arg1)
    41  	ret0, _ := ret[0].(protocol.PacketNumber)
    42  	return ret0
    43  }
    44  
    45  // DecodePacketNumber indicates an expected call of DecodePacketNumber.
    46  func (mr *MockLongHeaderOpenerMockRecorder) DecodePacketNumber(arg0, arg1 interface{}) *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodePacketNumber", reflect.TypeOf((*MockLongHeaderOpener)(nil).DecodePacketNumber), arg0, arg1)
    49  }
    50  
    51  // DecryptHeader mocks base method.
    52  func (m *MockLongHeaderOpener) DecryptHeader(arg0 []byte, arg1 *byte, arg2 []byte) {
    53  	m.ctrl.T.Helper()
    54  	m.ctrl.Call(m, "DecryptHeader", arg0, arg1, arg2)
    55  }
    56  
    57  // DecryptHeader indicates an expected call of DecryptHeader.
    58  func (mr *MockLongHeaderOpenerMockRecorder) DecryptHeader(arg0, arg1, arg2 interface{}) *gomock.Call {
    59  	mr.mock.ctrl.T.Helper()
    60  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptHeader", reflect.TypeOf((*MockLongHeaderOpener)(nil).DecryptHeader), arg0, arg1, arg2)
    61  }
    62  
    63  // Open mocks base method.
    64  func (m *MockLongHeaderOpener) Open(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) ([]byte, error) {
    65  	m.ctrl.T.Helper()
    66  	ret := m.ctrl.Call(m, "Open", arg0, arg1, arg2, arg3)
    67  	ret0, _ := ret[0].([]byte)
    68  	ret1, _ := ret[1].(error)
    69  	return ret0, ret1
    70  }
    71  
    72  // Open indicates an expected call of Open.
    73  func (mr *MockLongHeaderOpenerMockRecorder) Open(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
    74  	mr.mock.ctrl.T.Helper()
    75  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockLongHeaderOpener)(nil).Open), arg0, arg1, arg2, arg3)
    76  }