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