github.com/MerlinKodo/quic-go@v0.39.2/mock_ack_frame_source_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/MerlinKodo/quic-go (interfaces: AckFrameSource) 3 // 4 // Generated by this command: 5 // 6 // mockgen -build_flags=-tags=gomock -package quic -self_package github.com/MerlinKodo/quic-go -destination mock_ack_frame_source_test.go github.com/MerlinKodo/quic-go AckFrameSource 7 // 8 // Package quic is a generated GoMock package. 9 package quic 10 11 import ( 12 reflect "reflect" 13 14 protocol "github.com/MerlinKodo/quic-go/internal/protocol" 15 wire "github.com/MerlinKodo/quic-go/internal/wire" 16 gomock "go.uber.org/mock/gomock" 17 ) 18 19 // MockAckFrameSource is a mock of AckFrameSource interface. 20 type MockAckFrameSource struct { 21 ctrl *gomock.Controller 22 recorder *MockAckFrameSourceMockRecorder 23 } 24 25 // MockAckFrameSourceMockRecorder is the mock recorder for MockAckFrameSource. 26 type MockAckFrameSourceMockRecorder struct { 27 mock *MockAckFrameSource 28 } 29 30 // NewMockAckFrameSource creates a new mock instance. 31 func NewMockAckFrameSource(ctrl *gomock.Controller) *MockAckFrameSource { 32 mock := &MockAckFrameSource{ctrl: ctrl} 33 mock.recorder = &MockAckFrameSourceMockRecorder{mock} 34 return mock 35 } 36 37 // EXPECT returns an object that allows the caller to indicate expected use. 38 func (m *MockAckFrameSource) EXPECT() *MockAckFrameSourceMockRecorder { 39 return m.recorder 40 } 41 42 // GetAckFrame mocks base method. 43 func (m *MockAckFrameSource) GetAckFrame(arg0 protocol.EncryptionLevel, arg1 bool) *wire.AckFrame { 44 m.ctrl.T.Helper() 45 ret := m.ctrl.Call(m, "GetAckFrame", arg0, arg1) 46 ret0, _ := ret[0].(*wire.AckFrame) 47 return ret0 48 } 49 50 // GetAckFrame indicates an expected call of GetAckFrame. 51 func (mr *MockAckFrameSourceMockRecorder) GetAckFrame(arg0, arg1 any) *gomock.Call { 52 mr.mock.ctrl.T.Helper() 53 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAckFrame", reflect.TypeOf((*MockAckFrameSource)(nil).GetAckFrame), arg0, arg1) 54 }