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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tumi8/quic-go (interfaces: ConnRunner)
     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  )
    13  
    14  // MockConnRunner is a mock of ConnRunner interface.
    15  type MockConnRunner struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockConnRunnerMockRecorder
    18  }
    19  
    20  // MockConnRunnerMockRecorder is the mock recorder for MockConnRunner.
    21  type MockConnRunnerMockRecorder struct {
    22  	mock *MockConnRunner
    23  }
    24  
    25  // NewMockConnRunner creates a new mock instance.
    26  func NewMockConnRunner(ctrl *gomock.Controller) *MockConnRunner {
    27  	mock := &MockConnRunner{ctrl: ctrl}
    28  	mock.recorder = &MockConnRunnerMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockConnRunner) EXPECT() *MockConnRunnerMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Add mocks base method.
    38  func (m *MockConnRunner) Add(arg0 protocol.ConnectionID, arg1 packetHandler) bool {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "Add", arg0, arg1)
    41  	ret0, _ := ret[0].(bool)
    42  	return ret0
    43  }
    44  
    45  // Add indicates an expected call of Add.
    46  func (mr *MockConnRunnerMockRecorder) Add(arg0, arg1 interface{}) *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Add", reflect.TypeOf((*MockConnRunner)(nil).Add), arg0, arg1)
    49  }
    50  
    51  // AddResetToken mocks base method.
    52  func (m *MockConnRunner) AddResetToken(arg0 protocol.StatelessResetToken, arg1 packetHandler) {
    53  	m.ctrl.T.Helper()
    54  	m.ctrl.Call(m, "AddResetToken", arg0, arg1)
    55  }
    56  
    57  // AddResetToken indicates an expected call of AddResetToken.
    58  func (mr *MockConnRunnerMockRecorder) AddResetToken(arg0, arg1 interface{}) *gomock.Call {
    59  	mr.mock.ctrl.T.Helper()
    60  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddResetToken", reflect.TypeOf((*MockConnRunner)(nil).AddResetToken), arg0, arg1)
    61  }
    62  
    63  // GetStatelessResetToken mocks base method.
    64  func (m *MockConnRunner) GetStatelessResetToken(arg0 protocol.ConnectionID) protocol.StatelessResetToken {
    65  	m.ctrl.T.Helper()
    66  	ret := m.ctrl.Call(m, "GetStatelessResetToken", arg0)
    67  	ret0, _ := ret[0].(protocol.StatelessResetToken)
    68  	return ret0
    69  }
    70  
    71  // GetStatelessResetToken indicates an expected call of GetStatelessResetToken.
    72  func (mr *MockConnRunnerMockRecorder) GetStatelessResetToken(arg0 interface{}) *gomock.Call {
    73  	mr.mock.ctrl.T.Helper()
    74  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetStatelessResetToken", reflect.TypeOf((*MockConnRunner)(nil).GetStatelessResetToken), arg0)
    75  }
    76  
    77  // Remove mocks base method.
    78  func (m *MockConnRunner) Remove(arg0 protocol.ConnectionID) {
    79  	m.ctrl.T.Helper()
    80  	m.ctrl.Call(m, "Remove", arg0)
    81  }
    82  
    83  // Remove indicates an expected call of Remove.
    84  func (mr *MockConnRunnerMockRecorder) Remove(arg0 interface{}) *gomock.Call {
    85  	mr.mock.ctrl.T.Helper()
    86  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Remove", reflect.TypeOf((*MockConnRunner)(nil).Remove), arg0)
    87  }
    88  
    89  // RemoveResetToken mocks base method.
    90  func (m *MockConnRunner) RemoveResetToken(arg0 protocol.StatelessResetToken) {
    91  	m.ctrl.T.Helper()
    92  	m.ctrl.Call(m, "RemoveResetToken", arg0)
    93  }
    94  
    95  // RemoveResetToken indicates an expected call of RemoveResetToken.
    96  func (mr *MockConnRunnerMockRecorder) RemoveResetToken(arg0 interface{}) *gomock.Call {
    97  	mr.mock.ctrl.T.Helper()
    98  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RemoveResetToken", reflect.TypeOf((*MockConnRunner)(nil).RemoveResetToken), arg0)
    99  }
   100  
   101  // ReplaceWithClosed mocks base method.
   102  func (m *MockConnRunner) ReplaceWithClosed(arg0 []protocol.ConnectionID, arg1 protocol.Perspective, arg2 []byte) {
   103  	m.ctrl.T.Helper()
   104  	m.ctrl.Call(m, "ReplaceWithClosed", arg0, arg1, arg2)
   105  }
   106  
   107  // ReplaceWithClosed indicates an expected call of ReplaceWithClosed.
   108  func (mr *MockConnRunnerMockRecorder) ReplaceWithClosed(arg0, arg1, arg2 interface{}) *gomock.Call {
   109  	mr.mock.ctrl.T.Helper()
   110  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReplaceWithClosed", reflect.TypeOf((*MockConnRunner)(nil).ReplaceWithClosed), arg0, arg1, arg2)
   111  }
   112  
   113  // Retire mocks base method.
   114  func (m *MockConnRunner) Retire(arg0 protocol.ConnectionID) {
   115  	m.ctrl.T.Helper()
   116  	m.ctrl.Call(m, "Retire", arg0)
   117  }
   118  
   119  // Retire indicates an expected call of Retire.
   120  func (mr *MockConnRunnerMockRecorder) Retire(arg0 interface{}) *gomock.Call {
   121  	mr.mock.ctrl.T.Helper()
   122  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Retire", reflect.TypeOf((*MockConnRunner)(nil).Retire), arg0)
   123  }