github.com/MerlinKodo/quic-go@v0.39.2/internal/mocks/short_header_sealer.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/MerlinKodo/quic-go/internal/handshake (interfaces: ShortHeaderSealer) 3 // 4 // Generated by this command: 5 // 6 // mockgen -build_flags=-tags=gomock -package mocks -destination short_header_sealer.go github.com/MerlinKodo/quic-go/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/MerlinKodo/quic-go/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) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncryptHeader", reflect.TypeOf((*MockShortHeaderSealer)(nil).EncryptHeader), arg0, arg1, arg2) 51 } 52 53 // KeyPhase mocks base method. 54 func (m *MockShortHeaderSealer) KeyPhase() protocol.KeyPhaseBit { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "KeyPhase") 57 ret0, _ := ret[0].(protocol.KeyPhaseBit) 58 return ret0 59 } 60 61 // KeyPhase indicates an expected call of KeyPhase. 62 func (mr *MockShortHeaderSealerMockRecorder) KeyPhase() *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeyPhase", reflect.TypeOf((*MockShortHeaderSealer)(nil).KeyPhase)) 65 } 66 67 // Overhead mocks base method. 68 func (m *MockShortHeaderSealer) Overhead() int { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "Overhead") 71 ret0, _ := ret[0].(int) 72 return ret0 73 } 74 75 // Overhead indicates an expected call of Overhead. 76 func (mr *MockShortHeaderSealerMockRecorder) Overhead() *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Overhead", reflect.TypeOf((*MockShortHeaderSealer)(nil).Overhead)) 79 } 80 81 // Seal mocks base method. 82 func (m *MockShortHeaderSealer) Seal(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) []byte { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "Seal", arg0, arg1, arg2, arg3) 85 ret0, _ := ret[0].([]byte) 86 return ret0 87 } 88 89 // Seal indicates an expected call of Seal. 90 func (mr *MockShortHeaderSealerMockRecorder) Seal(arg0, arg1, arg2, arg3 any) *gomock.Call { 91 mr.mock.ctrl.T.Helper() 92 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Seal", reflect.TypeOf((*MockShortHeaderSealer)(nil).Seal), arg0, arg1, arg2, arg3) 93 }