// Code generated by MockGen. DO NOT EDIT. // Source: github.com/lucas-clemente/quic-go/internal/handshake (interfaces: CryptoSetup) // Package mocks is a generated GoMock package. package mocks import ( tls "crypto/tls" reflect "reflect" gomock "github.com/golang/mock/gomock" handshake "github.com/lucas-clemente/quic-go/internal/handshake" protocol "github.com/lucas-clemente/quic-go/internal/protocol" ) // MockCryptoSetup is a mock of CryptoSetup interface type MockCryptoSetup struct { ctrl *gomock.Controller recorder *MockCryptoSetupMockRecorder } // MockCryptoSetupMockRecorder is the mock recorder for MockCryptoSetup type MockCryptoSetupMockRecorder struct { mock *MockCryptoSetup } // NewMockCryptoSetup creates a new mock instance func NewMockCryptoSetup(ctrl *gomock.Controller) *MockCryptoSetup { mock := &MockCryptoSetup{ctrl: ctrl} mock.recorder = &MockCryptoSetupMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use func (m *MockCryptoSetup) EXPECT() *MockCryptoSetupMockRecorder { return m.recorder } // ChangeConnectionID mocks base method func (m *MockCryptoSetup) ChangeConnectionID(arg0 protocol.ConnectionID) error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ChangeConnectionID", arg0) ret0, _ := ret[0].(error) return ret0 } // ChangeConnectionID indicates an expected call of ChangeConnectionID func (mr *MockCryptoSetupMockRecorder) ChangeConnectionID(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeConnectionID", reflect.TypeOf((*MockCryptoSetup)(nil).ChangeConnectionID), arg0) } // Close mocks base method func (m *MockCryptoSetup) Close() error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Close") ret0, _ := ret[0].(error) return ret0 } // Close indicates an expected call of Close func (mr *MockCryptoSetupMockRecorder) Close() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockCryptoSetup)(nil).Close)) } // ConnectionState mocks base method func (m *MockCryptoSetup) ConnectionState() tls.ConnectionState { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "ConnectionState") ret0, _ := ret[0].(tls.ConnectionState) return ret0 } // ConnectionState indicates an expected call of ConnectionState func (mr *MockCryptoSetupMockRecorder) ConnectionState() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectionState", reflect.TypeOf((*MockCryptoSetup)(nil).ConnectionState)) } // GetOpener mocks base method func (m *MockCryptoSetup) GetOpener(arg0 protocol.EncryptionLevel) (handshake.Opener, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetOpener", arg0) ret0, _ := ret[0].(handshake.Opener) ret1, _ := ret[1].(error) return ret0, ret1 } // GetOpener indicates an expected call of GetOpener func (mr *MockCryptoSetupMockRecorder) GetOpener(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOpener", reflect.TypeOf((*MockCryptoSetup)(nil).GetOpener), arg0) } // GetSealer mocks base method func (m *MockCryptoSetup) GetSealer() (protocol.EncryptionLevel, handshake.Sealer) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSealer") ret0, _ := ret[0].(protocol.EncryptionLevel) ret1, _ := ret[1].(handshake.Sealer) return ret0, ret1 } // GetSealer indicates an expected call of GetSealer func (mr *MockCryptoSetupMockRecorder) GetSealer() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSealer", reflect.TypeOf((*MockCryptoSetup)(nil).GetSealer)) } // GetSealerWithEncryptionLevel mocks base method func (m *MockCryptoSetup) GetSealerWithEncryptionLevel(arg0 protocol.EncryptionLevel) (handshake.Sealer, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "GetSealerWithEncryptionLevel", arg0) ret0, _ := ret[0].(handshake.Sealer) ret1, _ := ret[1].(error) return ret0, ret1 } // GetSealerWithEncryptionLevel indicates an expected call of GetSealerWithEncryptionLevel func (mr *MockCryptoSetupMockRecorder) GetSealerWithEncryptionLevel(arg0 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSealerWithEncryptionLevel", reflect.TypeOf((*MockCryptoSetup)(nil).GetSealerWithEncryptionLevel), arg0) } // HandleMessage mocks base method func (m *MockCryptoSetup) HandleMessage(arg0 []byte, arg1 protocol.EncryptionLevel) bool { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "HandleMessage", arg0, arg1) ret0, _ := ret[0].(bool) return ret0 } // HandleMessage indicates an expected call of HandleMessage func (mr *MockCryptoSetupMockRecorder) HandleMessage(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleMessage", reflect.TypeOf((*MockCryptoSetup)(nil).HandleMessage), arg0, arg1) } // Received1RTTAck mocks base method func (m *MockCryptoSetup) Received1RTTAck() { m.ctrl.T.Helper() m.ctrl.Call(m, "Received1RTTAck") } // Received1RTTAck indicates an expected call of Received1RTTAck func (mr *MockCryptoSetupMockRecorder) Received1RTTAck() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Received1RTTAck", reflect.TypeOf((*MockCryptoSetup)(nil).Received1RTTAck)) } // RunHandshake mocks base method func (m *MockCryptoSetup) RunHandshake() error { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "RunHandshake") ret0, _ := ret[0].(error) return ret0 } // RunHandshake indicates an expected call of RunHandshake func (mr *MockCryptoSetupMockRecorder) RunHandshake() *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RunHandshake", reflect.TypeOf((*MockCryptoSetup)(nil).RunHandshake)) }