mock_unpacker_test.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: github.com/lucas-clemente/quic-go (interfaces: Unpacker)
  3. // Package quic is a generated GoMock package.
  4. package quic
  5. import (
  6. reflect "reflect"
  7. gomock "github.com/golang/mock/gomock"
  8. wire "github.com/lucas-clemente/quic-go/internal/wire"
  9. )
  10. // MockUnpacker is a mock of Unpacker interface
  11. type MockUnpacker struct {
  12. ctrl *gomock.Controller
  13. recorder *MockUnpackerMockRecorder
  14. }
  15. // MockUnpackerMockRecorder is the mock recorder for MockUnpacker
  16. type MockUnpackerMockRecorder struct {
  17. mock *MockUnpacker
  18. }
  19. // NewMockUnpacker creates a new mock instance
  20. func NewMockUnpacker(ctrl *gomock.Controller) *MockUnpacker {
  21. mock := &MockUnpacker{ctrl: ctrl}
  22. mock.recorder = &MockUnpackerMockRecorder{mock}
  23. return mock
  24. }
  25. // EXPECT returns an object that allows the caller to indicate expected use
  26. func (m *MockUnpacker) EXPECT() *MockUnpackerMockRecorder {
  27. return m.recorder
  28. }
  29. // Unpack mocks base method
  30. func (m *MockUnpacker) Unpack(arg0 []byte, arg1 *wire.Header, arg2 []byte) (*unpackedPacket, error) {
  31. ret := m.ctrl.Call(m, "Unpack", arg0, arg1, arg2)
  32. ret0, _ := ret[0].(*unpackedPacket)
  33. ret1, _ := ret[1].(error)
  34. return ret0, ret1
  35. }
  36. // Unpack indicates an expected call of Unpack
  37. func (mr *MockUnpackerMockRecorder) Unpack(arg0, arg1, arg2 interface{}) *gomock.Call {
  38. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Unpack", reflect.TypeOf((*MockUnpacker)(nil).Unpack), arg0, arg1, arg2)
  39. }