github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/internal/mocks/long_header_opener.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/danielpfeifer02/quic-go-prio-packs/internal/handshake (interfaces: LongHeaderOpener)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -typed -build_flags=-tags=gomock -package mocks -destination long_header_opener.go github.com/danielpfeifer02/quic-go-prio-packs/internal/handshake LongHeaderOpener
     7  //
     8  // Package mocks is a generated GoMock package.
     9  package mocks
    10  
    11  import (
    12  	reflect "reflect"
    13  
    14  	protocol "github.com/danielpfeifer02/quic-go-prio-packs/internal/protocol"
    15  	gomock "go.uber.org/mock/gomock"
    16  )
    17  
    18  // MockLongHeaderOpener is a mock of LongHeaderOpener interface.
    19  type MockLongHeaderOpener struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockLongHeaderOpenerMockRecorder
    22  }
    23  
    24  // MockLongHeaderOpenerMockRecorder is the mock recorder for MockLongHeaderOpener.
    25  type MockLongHeaderOpenerMockRecorder struct {
    26  	mock *MockLongHeaderOpener
    27  }
    28  
    29  // NewMockLongHeaderOpener creates a new mock instance.
    30  func NewMockLongHeaderOpener(ctrl *gomock.Controller) *MockLongHeaderOpener {
    31  	mock := &MockLongHeaderOpener{ctrl: ctrl}
    32  	mock.recorder = &MockLongHeaderOpenerMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use.
    37  func (m *MockLongHeaderOpener) EXPECT() *MockLongHeaderOpenerMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // DecodePacketNumber mocks base method.
    42  func (m *MockLongHeaderOpener) DecodePacketNumber(arg0 protocol.PacketNumber, arg1 protocol.PacketNumberLen) protocol.PacketNumber {
    43  	m.ctrl.T.Helper()
    44  	ret := m.ctrl.Call(m, "DecodePacketNumber", arg0, arg1)
    45  	ret0, _ := ret[0].(protocol.PacketNumber)
    46  	return ret0
    47  }
    48  
    49  // DecodePacketNumber indicates an expected call of DecodePacketNumber.
    50  func (mr *MockLongHeaderOpenerMockRecorder) DecodePacketNumber(arg0, arg1 any) *LongHeaderOpenerDecodePacketNumberCall {
    51  	mr.mock.ctrl.T.Helper()
    52  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecodePacketNumber", reflect.TypeOf((*MockLongHeaderOpener)(nil).DecodePacketNumber), arg0, arg1)
    53  	return &LongHeaderOpenerDecodePacketNumberCall{Call: call}
    54  }
    55  
    56  // LongHeaderOpenerDecodePacketNumberCall wrap *gomock.Call
    57  type LongHeaderOpenerDecodePacketNumberCall struct {
    58  	*gomock.Call
    59  }
    60  
    61  // Return rewrite *gomock.Call.Return
    62  func (c *LongHeaderOpenerDecodePacketNumberCall) Return(arg0 protocol.PacketNumber) *LongHeaderOpenerDecodePacketNumberCall {
    63  	c.Call = c.Call.Return(arg0)
    64  	return c
    65  }
    66  
    67  // Do rewrite *gomock.Call.Do
    68  func (c *LongHeaderOpenerDecodePacketNumberCall) Do(f func(protocol.PacketNumber, protocol.PacketNumberLen) protocol.PacketNumber) *LongHeaderOpenerDecodePacketNumberCall {
    69  	c.Call = c.Call.Do(f)
    70  	return c
    71  }
    72  
    73  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    74  func (c *LongHeaderOpenerDecodePacketNumberCall) DoAndReturn(f func(protocol.PacketNumber, protocol.PacketNumberLen) protocol.PacketNumber) *LongHeaderOpenerDecodePacketNumberCall {
    75  	c.Call = c.Call.DoAndReturn(f)
    76  	return c
    77  }
    78  
    79  // DecryptHeader mocks base method.
    80  func (m *MockLongHeaderOpener) DecryptHeader(arg0 []byte, arg1 *byte, arg2 []byte) {
    81  	m.ctrl.T.Helper()
    82  	m.ctrl.Call(m, "DecryptHeader", arg0, arg1, arg2)
    83  }
    84  
    85  // DecryptHeader indicates an expected call of DecryptHeader.
    86  func (mr *MockLongHeaderOpenerMockRecorder) DecryptHeader(arg0, arg1, arg2 any) *LongHeaderOpenerDecryptHeaderCall {
    87  	mr.mock.ctrl.T.Helper()
    88  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptHeader", reflect.TypeOf((*MockLongHeaderOpener)(nil).DecryptHeader), arg0, arg1, arg2)
    89  	return &LongHeaderOpenerDecryptHeaderCall{Call: call}
    90  }
    91  
    92  // LongHeaderOpenerDecryptHeaderCall wrap *gomock.Call
    93  type LongHeaderOpenerDecryptHeaderCall struct {
    94  	*gomock.Call
    95  }
    96  
    97  // Return rewrite *gomock.Call.Return
    98  func (c *LongHeaderOpenerDecryptHeaderCall) Return() *LongHeaderOpenerDecryptHeaderCall {
    99  	c.Call = c.Call.Return()
   100  	return c
   101  }
   102  
   103  // Do rewrite *gomock.Call.Do
   104  func (c *LongHeaderOpenerDecryptHeaderCall) Do(f func([]byte, *byte, []byte)) *LongHeaderOpenerDecryptHeaderCall {
   105  	c.Call = c.Call.Do(f)
   106  	return c
   107  }
   108  
   109  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   110  func (c *LongHeaderOpenerDecryptHeaderCall) DoAndReturn(f func([]byte, *byte, []byte)) *LongHeaderOpenerDecryptHeaderCall {
   111  	c.Call = c.Call.DoAndReturn(f)
   112  	return c
   113  }
   114  
   115  // Open mocks base method.
   116  func (m *MockLongHeaderOpener) Open(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) ([]byte, error) {
   117  	m.ctrl.T.Helper()
   118  	ret := m.ctrl.Call(m, "Open", arg0, arg1, arg2, arg3)
   119  	ret0, _ := ret[0].([]byte)
   120  	ret1, _ := ret[1].(error)
   121  	return ret0, ret1
   122  }
   123  
   124  // Open indicates an expected call of Open.
   125  func (mr *MockLongHeaderOpenerMockRecorder) Open(arg0, arg1, arg2, arg3 any) *LongHeaderOpenerOpenCall {
   126  	mr.mock.ctrl.T.Helper()
   127  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockLongHeaderOpener)(nil).Open), arg0, arg1, arg2, arg3)
   128  	return &LongHeaderOpenerOpenCall{Call: call}
   129  }
   130  
   131  // LongHeaderOpenerOpenCall wrap *gomock.Call
   132  type LongHeaderOpenerOpenCall struct {
   133  	*gomock.Call
   134  }
   135  
   136  // Return rewrite *gomock.Call.Return
   137  func (c *LongHeaderOpenerOpenCall) Return(arg0 []byte, arg1 error) *LongHeaderOpenerOpenCall {
   138  	c.Call = c.Call.Return(arg0, arg1)
   139  	return c
   140  }
   141  
   142  // Do rewrite *gomock.Call.Do
   143  func (c *LongHeaderOpenerOpenCall) Do(f func([]byte, []byte, protocol.PacketNumber, []byte) ([]byte, error)) *LongHeaderOpenerOpenCall {
   144  	c.Call = c.Call.Do(f)
   145  	return c
   146  }
   147  
   148  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   149  func (c *LongHeaderOpenerOpenCall) DoAndReturn(f func([]byte, []byte, protocol.PacketNumber, []byte) ([]byte, error)) *LongHeaderOpenerOpenCall {
   150  	c.Call = c.Call.DoAndReturn(f)
   151  	return c
   152  }