github.com/tumi8/quic-go@v0.37.4-tum/mock_ack_frame_source_test.go (about)

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