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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/danielpfeifer02/quic-go-prio-packs/internal/handshake (interfaces: ShortHeaderSealer)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -typed -build_flags=-tags=gomock -package mocks -destination short_header_sealer.go github.com/danielpfeifer02/quic-go-prio-packs/internal/handshake ShortHeaderSealer
     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  // MockShortHeaderSealer is a mock of ShortHeaderSealer interface.
    19  type MockShortHeaderSealer struct {
    20  	ctrl     *gomock.Controller
    21  	recorder *MockShortHeaderSealerMockRecorder
    22  }
    23  
    24  // MockShortHeaderSealerMockRecorder is the mock recorder for MockShortHeaderSealer.
    25  type MockShortHeaderSealerMockRecorder struct {
    26  	mock *MockShortHeaderSealer
    27  }
    28  
    29  // NewMockShortHeaderSealer creates a new mock instance.
    30  func NewMockShortHeaderSealer(ctrl *gomock.Controller) *MockShortHeaderSealer {
    31  	mock := &MockShortHeaderSealer{ctrl: ctrl}
    32  	mock.recorder = &MockShortHeaderSealerMockRecorder{mock}
    33  	return mock
    34  }
    35  
    36  // EXPECT returns an object that allows the caller to indicate expected use.
    37  func (m *MockShortHeaderSealer) EXPECT() *MockShortHeaderSealerMockRecorder {
    38  	return m.recorder
    39  }
    40  
    41  // EncryptHeader mocks base method.
    42  func (m *MockShortHeaderSealer) EncryptHeader(arg0 []byte, arg1 *byte, arg2 []byte) {
    43  	m.ctrl.T.Helper()
    44  	m.ctrl.Call(m, "EncryptHeader", arg0, arg1, arg2)
    45  }
    46  
    47  // EncryptHeader indicates an expected call of EncryptHeader.
    48  func (mr *MockShortHeaderSealerMockRecorder) EncryptHeader(arg0, arg1, arg2 any) *ShortHeaderSealerEncryptHeaderCall {
    49  	mr.mock.ctrl.T.Helper()
    50  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncryptHeader", reflect.TypeOf((*MockShortHeaderSealer)(nil).EncryptHeader), arg0, arg1, arg2)
    51  	return &ShortHeaderSealerEncryptHeaderCall{Call: call}
    52  }
    53  
    54  // ShortHeaderSealerEncryptHeaderCall wrap *gomock.Call
    55  type ShortHeaderSealerEncryptHeaderCall struct {
    56  	*gomock.Call
    57  }
    58  
    59  // Return rewrite *gomock.Call.Return
    60  func (c *ShortHeaderSealerEncryptHeaderCall) Return() *ShortHeaderSealerEncryptHeaderCall {
    61  	c.Call = c.Call.Return()
    62  	return c
    63  }
    64  
    65  // Do rewrite *gomock.Call.Do
    66  func (c *ShortHeaderSealerEncryptHeaderCall) Do(f func([]byte, *byte, []byte)) *ShortHeaderSealerEncryptHeaderCall {
    67  	c.Call = c.Call.Do(f)
    68  	return c
    69  }
    70  
    71  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    72  func (c *ShortHeaderSealerEncryptHeaderCall) DoAndReturn(f func([]byte, *byte, []byte)) *ShortHeaderSealerEncryptHeaderCall {
    73  	c.Call = c.Call.DoAndReturn(f)
    74  	return c
    75  }
    76  
    77  // KeyPhase mocks base method.
    78  func (m *MockShortHeaderSealer) KeyPhase() protocol.KeyPhaseBit {
    79  	m.ctrl.T.Helper()
    80  	ret := m.ctrl.Call(m, "KeyPhase")
    81  	ret0, _ := ret[0].(protocol.KeyPhaseBit)
    82  	return ret0
    83  }
    84  
    85  // KeyPhase indicates an expected call of KeyPhase.
    86  func (mr *MockShortHeaderSealerMockRecorder) KeyPhase() *ShortHeaderSealerKeyPhaseCall {
    87  	mr.mock.ctrl.T.Helper()
    88  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeyPhase", reflect.TypeOf((*MockShortHeaderSealer)(nil).KeyPhase))
    89  	return &ShortHeaderSealerKeyPhaseCall{Call: call}
    90  }
    91  
    92  // ShortHeaderSealerKeyPhaseCall wrap *gomock.Call
    93  type ShortHeaderSealerKeyPhaseCall struct {
    94  	*gomock.Call
    95  }
    96  
    97  // Return rewrite *gomock.Call.Return
    98  func (c *ShortHeaderSealerKeyPhaseCall) Return(arg0 protocol.KeyPhaseBit) *ShortHeaderSealerKeyPhaseCall {
    99  	c.Call = c.Call.Return(arg0)
   100  	return c
   101  }
   102  
   103  // Do rewrite *gomock.Call.Do
   104  func (c *ShortHeaderSealerKeyPhaseCall) Do(f func() protocol.KeyPhaseBit) *ShortHeaderSealerKeyPhaseCall {
   105  	c.Call = c.Call.Do(f)
   106  	return c
   107  }
   108  
   109  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   110  func (c *ShortHeaderSealerKeyPhaseCall) DoAndReturn(f func() protocol.KeyPhaseBit) *ShortHeaderSealerKeyPhaseCall {
   111  	c.Call = c.Call.DoAndReturn(f)
   112  	return c
   113  }
   114  
   115  // Overhead mocks base method.
   116  func (m *MockShortHeaderSealer) Overhead() int {
   117  	m.ctrl.T.Helper()
   118  	ret := m.ctrl.Call(m, "Overhead")
   119  	ret0, _ := ret[0].(int)
   120  	return ret0
   121  }
   122  
   123  // Overhead indicates an expected call of Overhead.
   124  func (mr *MockShortHeaderSealerMockRecorder) Overhead() *ShortHeaderSealerOverheadCall {
   125  	mr.mock.ctrl.T.Helper()
   126  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Overhead", reflect.TypeOf((*MockShortHeaderSealer)(nil).Overhead))
   127  	return &ShortHeaderSealerOverheadCall{Call: call}
   128  }
   129  
   130  // ShortHeaderSealerOverheadCall wrap *gomock.Call
   131  type ShortHeaderSealerOverheadCall struct {
   132  	*gomock.Call
   133  }
   134  
   135  // Return rewrite *gomock.Call.Return
   136  func (c *ShortHeaderSealerOverheadCall) Return(arg0 int) *ShortHeaderSealerOverheadCall {
   137  	c.Call = c.Call.Return(arg0)
   138  	return c
   139  }
   140  
   141  // Do rewrite *gomock.Call.Do
   142  func (c *ShortHeaderSealerOverheadCall) Do(f func() int) *ShortHeaderSealerOverheadCall {
   143  	c.Call = c.Call.Do(f)
   144  	return c
   145  }
   146  
   147  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   148  func (c *ShortHeaderSealerOverheadCall) DoAndReturn(f func() int) *ShortHeaderSealerOverheadCall {
   149  	c.Call = c.Call.DoAndReturn(f)
   150  	return c
   151  }
   152  
   153  // Seal mocks base method.
   154  func (m *MockShortHeaderSealer) Seal(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) []byte {
   155  	m.ctrl.T.Helper()
   156  	ret := m.ctrl.Call(m, "Seal", arg0, arg1, arg2, arg3)
   157  	ret0, _ := ret[0].([]byte)
   158  	return ret0
   159  }
   160  
   161  // Seal indicates an expected call of Seal.
   162  func (mr *MockShortHeaderSealerMockRecorder) Seal(arg0, arg1, arg2, arg3 any) *ShortHeaderSealerSealCall {
   163  	mr.mock.ctrl.T.Helper()
   164  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Seal", reflect.TypeOf((*MockShortHeaderSealer)(nil).Seal), arg0, arg1, arg2, arg3)
   165  	return &ShortHeaderSealerSealCall{Call: call}
   166  }
   167  
   168  // ShortHeaderSealerSealCall wrap *gomock.Call
   169  type ShortHeaderSealerSealCall struct {
   170  	*gomock.Call
   171  }
   172  
   173  // Return rewrite *gomock.Call.Return
   174  func (c *ShortHeaderSealerSealCall) Return(arg0 []byte) *ShortHeaderSealerSealCall {
   175  	c.Call = c.Call.Return(arg0)
   176  	return c
   177  }
   178  
   179  // Do rewrite *gomock.Call.Do
   180  func (c *ShortHeaderSealerSealCall) Do(f func([]byte, []byte, protocol.PacketNumber, []byte) []byte) *ShortHeaderSealerSealCall {
   181  	c.Call = c.Call.Do(f)
   182  	return c
   183  }
   184  
   185  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   186  func (c *ShortHeaderSealerSealCall) DoAndReturn(f func([]byte, []byte, protocol.PacketNumber, []byte) []byte) *ShortHeaderSealerSealCall {
   187  	c.Call = c.Call.DoAndReturn(f)
   188  	return c
   189  }