opener.go 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: github.com/lucas-clemente/quic-go/internal/handshake (interfaces: Opener)
  3. // Package mocks is a generated GoMock package.
  4. package mocks
  5. import (
  6. reflect "reflect"
  7. gomock "github.com/golang/mock/gomock"
  8. protocol "github.com/lucas-clemente/quic-go/internal/protocol"
  9. )
  10. // MockOpener is a mock of Opener interface
  11. type MockOpener struct {
  12. ctrl *gomock.Controller
  13. recorder *MockOpenerMockRecorder
  14. }
  15. // MockOpenerMockRecorder is the mock recorder for MockOpener
  16. type MockOpenerMockRecorder struct {
  17. mock *MockOpener
  18. }
  19. // NewMockOpener creates a new mock instance
  20. func NewMockOpener(ctrl *gomock.Controller) *MockOpener {
  21. mock := &MockOpener{ctrl: ctrl}
  22. mock.recorder = &MockOpenerMockRecorder{mock}
  23. return mock
  24. }
  25. // EXPECT returns an object that allows the caller to indicate expected use
  26. func (m *MockOpener) EXPECT() *MockOpenerMockRecorder {
  27. return m.recorder
  28. }
  29. // DecryptHeader mocks base method
  30. func (m *MockOpener) DecryptHeader(arg0 []byte, arg1 *byte, arg2 []byte) {
  31. m.ctrl.T.Helper()
  32. m.ctrl.Call(m, "DecryptHeader", arg0, arg1, arg2)
  33. }
  34. // DecryptHeader indicates an expected call of DecryptHeader
  35. func (mr *MockOpenerMockRecorder) DecryptHeader(arg0, arg1, arg2 interface{}) *gomock.Call {
  36. mr.mock.ctrl.T.Helper()
  37. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptHeader", reflect.TypeOf((*MockOpener)(nil).DecryptHeader), arg0, arg1, arg2)
  38. }
  39. // Open mocks base method
  40. func (m *MockOpener) Open(arg0, arg1 []byte, arg2 protocol.PacketNumber, arg3 []byte) ([]byte, error) {
  41. m.ctrl.T.Helper()
  42. ret := m.ctrl.Call(m, "Open", arg0, arg1, arg2, arg3)
  43. ret0, _ := ret[0].([]byte)
  44. ret1, _ := ret[1].(error)
  45. return ret0, ret1
  46. }
  47. // Open indicates an expected call of Open
  48. func (mr *MockOpenerMockRecorder) Open(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
  49. mr.mock.ctrl.T.Helper()
  50. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockOpener)(nil).Open), arg0, arg1, arg2, arg3)
  51. }