github.com/metacubex/quic-go@v0.44.1-0.20240520163451-20b689a59136/internal/mocks/long_header_opener.go (about)

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