github.com/tumi8/quic-go@v0.37.4-tum/noninternal/mocks/short_header_sealer.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/tumi8/quic-go/noninternal/handshake (interfaces: ShortHeaderSealer) 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 // MockShortHeaderSealer is a mock of ShortHeaderSealer interface. 15 type MockShortHeaderSealer struct { 16 ctrl *gomock.Controller 17 recorder *MockShortHeaderSealerMockRecorder 18 } 19 20 // MockShortHeaderSealerMockRecorder is the mock recorder for MockShortHeaderSealer. 21 type MockShortHeaderSealerMockRecorder struct { 22 mock *MockShortHeaderSealer 23 } 24 25 // NewMockShortHeaderSealer creates a new mock instance. 26 func NewMockShortHeaderSealer(ctrl *gomock.Controller) *MockShortHeaderSealer { 27 mock := &MockShortHeaderSealer{ctrl: ctrl} 28 mock.recorder = &MockShortHeaderSealerMockRecorder{mock} 29 return mock 30 } 31 32 // EXPECT returns an object that allows the caller to indicate expected use. 33 func (m *MockShortHeaderSealer) EXPECT() *MockShortHeaderSealerMockRecorder { 34 return m.recorder 35 } 36 37 // EncryptHeader mocks base method. 38 func (m *MockShortHeaderSealer) EncryptHeader(arg0 []byte, arg1 *byte, arg2 []byte) { 39 m.ctrl.T.Helper() 40 m.ctrl.Call(m, "EncryptHeader", arg0, arg1, arg2) 41 } 42 43 // EncryptHeader indicates an expected call of EncryptHeader. 44 func (mr *MockShortHeaderSealerMockRecorder) EncryptHeader(arg0, arg1, arg2 interface{}) *gomock.Call { 45 mr.mock.ctrl.T.Helper() 46 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncryptHeader", reflect.TypeOf((*MockShortHeaderSealer)(nil).EncryptHeader), arg0, arg1, arg2) 47 } 48 49 // KeyPhase mocks base method. 50 func (m *MockShortHeaderSealer) KeyPhase() protocol.KeyPhaseBit { 51 m.ctrl.T.Helper() 52 ret := m.ctrl.Call(m, "KeyPhase") 53 ret0, _ := ret[0].(protocol.KeyPhaseBit) 54 return ret0 55 } 56 57 // KeyPhase indicates an expected call of KeyPhase. 58 func (mr *MockShortHeaderSealerMockRecorder) KeyPhase() *gomock.Call { 59 mr.mock.ctrl.T.Helper() 60 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeyPhase", reflect.TypeOf((*MockShortHeaderSealer)(nil).KeyPhase)) 61 } 62 63 // Overhead mocks base method. 64 func (m *MockShortHeaderSealer) Overhead() int { 65 m.ctrl.T.Helper() 66 ret := m.ctrl.Call(m, "Overhead") 67 ret0, _ := ret[0].(int) 68 return ret0 69 } 70 71 // Overhead indicates an expected call of Overhead. 72 func (mr *MockShortHeaderSealerMockRecorder) Overhead() *gomock.Call { 73 mr.mock.ctrl.T.Helper() 74 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Overhead", reflect.TypeOf((*MockShortHeaderSealer)(nil).Overhead)) 75 } 76 77 // Seal mocks base method. 78 func (m *MockShortHeaderSealer) Seal(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) []byte { 79 m.ctrl.T.Helper() 80 ret := m.ctrl.Call(m, "Seal", arg0, arg1, arg2, arg3) 81 ret0, _ := ret[0].([]byte) 82 return ret0 83 } 84 85 // Seal indicates an expected call of Seal. 86 func (mr *MockShortHeaderSealerMockRecorder) Seal(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 87 mr.mock.ctrl.T.Helper() 88 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Seal", reflect.TypeOf((*MockShortHeaderSealer)(nil).Seal), arg0, arg1, arg2, arg3) 89 }