github.com/TugasAkhir-QUIC/quic-go@v0.0.2-0.20240215011318-d20e25a9054c/mock_ack_frame_source_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/TugasAkhir-QUIC/quic-go (interfaces: AckFrameSource)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen.exe -typed -build_flags=-tags=gomock -package quic -self_package github.com/TugasAkhir-QUIC/quic-go -destination mock_ack_frame_source_test.go github.com/TugasAkhir-QUIC/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/TugasAkhir-QUIC/quic-go/internal/protocol"
    15  	wire "github.com/TugasAkhir-QUIC/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) *AckFrameSourceGetAckFrameCall {
    52  	mr.mock.ctrl.T.Helper()
    53  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAckFrame", reflect.TypeOf((*MockAckFrameSource)(nil).GetAckFrame), arg0, arg1)
    54  	return &AckFrameSourceGetAckFrameCall{Call: call}
    55  }
    56  
    57  // AckFrameSourceGetAckFrameCall wrap *gomock.Call
    58  type AckFrameSourceGetAckFrameCall struct {
    59  	*gomock.Call
    60  }
    61  
    62  // Return rewrite *gomock.Call.Return
    63  func (c *AckFrameSourceGetAckFrameCall) Return(arg0 *wire.AckFrame) *AckFrameSourceGetAckFrameCall {
    64  	c.Call = c.Call.Return(arg0)
    65  	return c
    66  }
    67  
    68  // Do rewrite *gomock.Call.Do
    69  func (c *AckFrameSourceGetAckFrameCall) Do(f func(protocol.EncryptionLevel, bool) *wire.AckFrame) *AckFrameSourceGetAckFrameCall {
    70  	c.Call = c.Call.Do(f)
    71  	return c
    72  }
    73  
    74  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    75  func (c *AckFrameSourceGetAckFrameCall) DoAndReturn(f func(protocol.EncryptionLevel, bool) *wire.AckFrame) *AckFrameSourceGetAckFrameCall {
    76  	c.Call = c.Call.DoAndReturn(f)
    77  	return c
    78  }