github.com/MerlinKodo/quic-go@v0.39.2/mock_conn_runner_test.go (about)

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