github.com/apernet/quic-go@v0.43.1-0.20240515053213-5e9e635fd9f0/mock_sealing_manager_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/apernet/quic-go (interfaces: SealingManager)
     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_sealing_manager_test.go github.com/apernet/quic-go SealingManager
     7  //
     8  
     9  // Package quic is a generated GoMock package.
    10  package quic
    11  
    12  import (
    13  	reflect "reflect"
    14  
    15  	handshake "github.com/apernet/quic-go/internal/handshake"
    16  	gomock "go.uber.org/mock/gomock"
    17  )
    18  
    19  // MockSealingManager is a mock of SealingManager interface.
    20  type MockSealingManager struct {
    21  	ctrl     *gomock.Controller
    22  	recorder *MockSealingManagerMockRecorder
    23  }
    24  
    25  // MockSealingManagerMockRecorder is the mock recorder for MockSealingManager.
    26  type MockSealingManagerMockRecorder struct {
    27  	mock *MockSealingManager
    28  }
    29  
    30  // NewMockSealingManager creates a new mock instance.
    31  func NewMockSealingManager(ctrl *gomock.Controller) *MockSealingManager {
    32  	mock := &MockSealingManager{ctrl: ctrl}
    33  	mock.recorder = &MockSealingManagerMockRecorder{mock}
    34  	return mock
    35  }
    36  
    37  // EXPECT returns an object that allows the caller to indicate expected use.
    38  func (m *MockSealingManager) EXPECT() *MockSealingManagerMockRecorder {
    39  	return m.recorder
    40  }
    41  
    42  // Get0RTTSealer mocks base method.
    43  func (m *MockSealingManager) Get0RTTSealer() (handshake.LongHeaderSealer, error) {
    44  	m.ctrl.T.Helper()
    45  	ret := m.ctrl.Call(m, "Get0RTTSealer")
    46  	ret0, _ := ret[0].(handshake.LongHeaderSealer)
    47  	ret1, _ := ret[1].(error)
    48  	return ret0, ret1
    49  }
    50  
    51  // Get0RTTSealer indicates an expected call of Get0RTTSealer.
    52  func (mr *MockSealingManagerMockRecorder) Get0RTTSealer() *MockSealingManagerGet0RTTSealerCall {
    53  	mr.mock.ctrl.T.Helper()
    54  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get0RTTSealer", reflect.TypeOf((*MockSealingManager)(nil).Get0RTTSealer))
    55  	return &MockSealingManagerGet0RTTSealerCall{Call: call}
    56  }
    57  
    58  // MockSealingManagerGet0RTTSealerCall wrap *gomock.Call
    59  type MockSealingManagerGet0RTTSealerCall struct {
    60  	*gomock.Call
    61  }
    62  
    63  // Return rewrite *gomock.Call.Return
    64  func (c *MockSealingManagerGet0RTTSealerCall) Return(arg0 handshake.LongHeaderSealer, arg1 error) *MockSealingManagerGet0RTTSealerCall {
    65  	c.Call = c.Call.Return(arg0, arg1)
    66  	return c
    67  }
    68  
    69  // Do rewrite *gomock.Call.Do
    70  func (c *MockSealingManagerGet0RTTSealerCall) Do(f func() (handshake.LongHeaderSealer, error)) *MockSealingManagerGet0RTTSealerCall {
    71  	c.Call = c.Call.Do(f)
    72  	return c
    73  }
    74  
    75  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    76  func (c *MockSealingManagerGet0RTTSealerCall) DoAndReturn(f func() (handshake.LongHeaderSealer, error)) *MockSealingManagerGet0RTTSealerCall {
    77  	c.Call = c.Call.DoAndReturn(f)
    78  	return c
    79  }
    80  
    81  // Get1RTTSealer mocks base method.
    82  func (m *MockSealingManager) Get1RTTSealer() (handshake.ShortHeaderSealer, error) {
    83  	m.ctrl.T.Helper()
    84  	ret := m.ctrl.Call(m, "Get1RTTSealer")
    85  	ret0, _ := ret[0].(handshake.ShortHeaderSealer)
    86  	ret1, _ := ret[1].(error)
    87  	return ret0, ret1
    88  }
    89  
    90  // Get1RTTSealer indicates an expected call of Get1RTTSealer.
    91  func (mr *MockSealingManagerMockRecorder) Get1RTTSealer() *MockSealingManagerGet1RTTSealerCall {
    92  	mr.mock.ctrl.T.Helper()
    93  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get1RTTSealer", reflect.TypeOf((*MockSealingManager)(nil).Get1RTTSealer))
    94  	return &MockSealingManagerGet1RTTSealerCall{Call: call}
    95  }
    96  
    97  // MockSealingManagerGet1RTTSealerCall wrap *gomock.Call
    98  type MockSealingManagerGet1RTTSealerCall struct {
    99  	*gomock.Call
   100  }
   101  
   102  // Return rewrite *gomock.Call.Return
   103  func (c *MockSealingManagerGet1RTTSealerCall) Return(arg0 handshake.ShortHeaderSealer, arg1 error) *MockSealingManagerGet1RTTSealerCall {
   104  	c.Call = c.Call.Return(arg0, arg1)
   105  	return c
   106  }
   107  
   108  // Do rewrite *gomock.Call.Do
   109  func (c *MockSealingManagerGet1RTTSealerCall) Do(f func() (handshake.ShortHeaderSealer, error)) *MockSealingManagerGet1RTTSealerCall {
   110  	c.Call = c.Call.Do(f)
   111  	return c
   112  }
   113  
   114  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   115  func (c *MockSealingManagerGet1RTTSealerCall) DoAndReturn(f func() (handshake.ShortHeaderSealer, error)) *MockSealingManagerGet1RTTSealerCall {
   116  	c.Call = c.Call.DoAndReturn(f)
   117  	return c
   118  }
   119  
   120  // GetHandshakeSealer mocks base method.
   121  func (m *MockSealingManager) GetHandshakeSealer() (handshake.LongHeaderSealer, error) {
   122  	m.ctrl.T.Helper()
   123  	ret := m.ctrl.Call(m, "GetHandshakeSealer")
   124  	ret0, _ := ret[0].(handshake.LongHeaderSealer)
   125  	ret1, _ := ret[1].(error)
   126  	return ret0, ret1
   127  }
   128  
   129  // GetHandshakeSealer indicates an expected call of GetHandshakeSealer.
   130  func (mr *MockSealingManagerMockRecorder) GetHandshakeSealer() *MockSealingManagerGetHandshakeSealerCall {
   131  	mr.mock.ctrl.T.Helper()
   132  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHandshakeSealer", reflect.TypeOf((*MockSealingManager)(nil).GetHandshakeSealer))
   133  	return &MockSealingManagerGetHandshakeSealerCall{Call: call}
   134  }
   135  
   136  // MockSealingManagerGetHandshakeSealerCall wrap *gomock.Call
   137  type MockSealingManagerGetHandshakeSealerCall struct {
   138  	*gomock.Call
   139  }
   140  
   141  // Return rewrite *gomock.Call.Return
   142  func (c *MockSealingManagerGetHandshakeSealerCall) Return(arg0 handshake.LongHeaderSealer, arg1 error) *MockSealingManagerGetHandshakeSealerCall {
   143  	c.Call = c.Call.Return(arg0, arg1)
   144  	return c
   145  }
   146  
   147  // Do rewrite *gomock.Call.Do
   148  func (c *MockSealingManagerGetHandshakeSealerCall) Do(f func() (handshake.LongHeaderSealer, error)) *MockSealingManagerGetHandshakeSealerCall {
   149  	c.Call = c.Call.Do(f)
   150  	return c
   151  }
   152  
   153  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   154  func (c *MockSealingManagerGetHandshakeSealerCall) DoAndReturn(f func() (handshake.LongHeaderSealer, error)) *MockSealingManagerGetHandshakeSealerCall {
   155  	c.Call = c.Call.DoAndReturn(f)
   156  	return c
   157  }
   158  
   159  // GetInitialSealer mocks base method.
   160  func (m *MockSealingManager) GetInitialSealer() (handshake.LongHeaderSealer, error) {
   161  	m.ctrl.T.Helper()
   162  	ret := m.ctrl.Call(m, "GetInitialSealer")
   163  	ret0, _ := ret[0].(handshake.LongHeaderSealer)
   164  	ret1, _ := ret[1].(error)
   165  	return ret0, ret1
   166  }
   167  
   168  // GetInitialSealer indicates an expected call of GetInitialSealer.
   169  func (mr *MockSealingManagerMockRecorder) GetInitialSealer() *MockSealingManagerGetInitialSealerCall {
   170  	mr.mock.ctrl.T.Helper()
   171  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInitialSealer", reflect.TypeOf((*MockSealingManager)(nil).GetInitialSealer))
   172  	return &MockSealingManagerGetInitialSealerCall{Call: call}
   173  }
   174  
   175  // MockSealingManagerGetInitialSealerCall wrap *gomock.Call
   176  type MockSealingManagerGetInitialSealerCall struct {
   177  	*gomock.Call
   178  }
   179  
   180  // Return rewrite *gomock.Call.Return
   181  func (c *MockSealingManagerGetInitialSealerCall) Return(arg0 handshake.LongHeaderSealer, arg1 error) *MockSealingManagerGetInitialSealerCall {
   182  	c.Call = c.Call.Return(arg0, arg1)
   183  	return c
   184  }
   185  
   186  // Do rewrite *gomock.Call.Do
   187  func (c *MockSealingManagerGetInitialSealerCall) Do(f func() (handshake.LongHeaderSealer, error)) *MockSealingManagerGetInitialSealerCall {
   188  	c.Call = c.Call.Do(f)
   189  	return c
   190  }
   191  
   192  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   193  func (c *MockSealingManagerGetInitialSealerCall) DoAndReturn(f func() (handshake.LongHeaderSealer, error)) *MockSealingManagerGetInitialSealerCall {
   194  	c.Call = c.Call.DoAndReturn(f)
   195  	return c
   196  }