github.com/daeuniverse/quic-go@v0.0.0-20240413031024-943f218e0810/mock_crypto_data_handler_test.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/daeuniverse/quic-go (interfaces: CryptoDataHandler)
     3  //
     4  // Generated by this command:
     5  //
     6  //	mockgen -typed -build_flags=-tags=gomock -package quic -self_package github.com/daeuniverse/quic-go -destination mock_crypto_data_handler_test.go github.com/daeuniverse/quic-go CryptoDataHandler
     7  //
     8  
     9  // Package quic is a generated GoMock package.
    10  package quic
    11  
    12  import (
    13  	reflect "reflect"
    14  
    15  	handshake "github.com/daeuniverse/quic-go/internal/handshake"
    16  	protocol "github.com/daeuniverse/quic-go/internal/protocol"
    17  	gomock "go.uber.org/mock/gomock"
    18  )
    19  
    20  // MockCryptoDataHandler is a mock of CryptoDataHandler interface.
    21  type MockCryptoDataHandler struct {
    22  	ctrl     *gomock.Controller
    23  	recorder *MockCryptoDataHandlerMockRecorder
    24  }
    25  
    26  // MockCryptoDataHandlerMockRecorder is the mock recorder for MockCryptoDataHandler.
    27  type MockCryptoDataHandlerMockRecorder struct {
    28  	mock *MockCryptoDataHandler
    29  }
    30  
    31  // NewMockCryptoDataHandler creates a new mock instance.
    32  func NewMockCryptoDataHandler(ctrl *gomock.Controller) *MockCryptoDataHandler {
    33  	mock := &MockCryptoDataHandler{ctrl: ctrl}
    34  	mock.recorder = &MockCryptoDataHandlerMockRecorder{mock}
    35  	return mock
    36  }
    37  
    38  // EXPECT returns an object that allows the caller to indicate expected use.
    39  func (m *MockCryptoDataHandler) EXPECT() *MockCryptoDataHandlerMockRecorder {
    40  	return m.recorder
    41  }
    42  
    43  // HandleMessage mocks base method.
    44  func (m *MockCryptoDataHandler) HandleMessage(arg0 []byte, arg1 protocol.EncryptionLevel) error {
    45  	m.ctrl.T.Helper()
    46  	ret := m.ctrl.Call(m, "HandleMessage", arg0, arg1)
    47  	ret0, _ := ret[0].(error)
    48  	return ret0
    49  }
    50  
    51  // HandleMessage indicates an expected call of HandleMessage.
    52  func (mr *MockCryptoDataHandlerMockRecorder) HandleMessage(arg0, arg1 any) *MockCryptoDataHandlerHandleMessageCall {
    53  	mr.mock.ctrl.T.Helper()
    54  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleMessage", reflect.TypeOf((*MockCryptoDataHandler)(nil).HandleMessage), arg0, arg1)
    55  	return &MockCryptoDataHandlerHandleMessageCall{Call: call}
    56  }
    57  
    58  // MockCryptoDataHandlerHandleMessageCall wrap *gomock.Call
    59  type MockCryptoDataHandlerHandleMessageCall struct {
    60  	*gomock.Call
    61  }
    62  
    63  // Return rewrite *gomock.Call.Return
    64  func (c *MockCryptoDataHandlerHandleMessageCall) Return(arg0 error) *MockCryptoDataHandlerHandleMessageCall {
    65  	c.Call = c.Call.Return(arg0)
    66  	return c
    67  }
    68  
    69  // Do rewrite *gomock.Call.Do
    70  func (c *MockCryptoDataHandlerHandleMessageCall) Do(f func([]byte, protocol.EncryptionLevel) error) *MockCryptoDataHandlerHandleMessageCall {
    71  	c.Call = c.Call.Do(f)
    72  	return c
    73  }
    74  
    75  // DoAndReturn rewrite *gomock.Call.DoAndReturn
    76  func (c *MockCryptoDataHandlerHandleMessageCall) DoAndReturn(f func([]byte, protocol.EncryptionLevel) error) *MockCryptoDataHandlerHandleMessageCall {
    77  	c.Call = c.Call.DoAndReturn(f)
    78  	return c
    79  }
    80  
    81  // NextEvent mocks base method.
    82  func (m *MockCryptoDataHandler) NextEvent() handshake.Event {
    83  	m.ctrl.T.Helper()
    84  	ret := m.ctrl.Call(m, "NextEvent")
    85  	ret0, _ := ret[0].(handshake.Event)
    86  	return ret0
    87  }
    88  
    89  // NextEvent indicates an expected call of NextEvent.
    90  func (mr *MockCryptoDataHandlerMockRecorder) NextEvent() *MockCryptoDataHandlerNextEventCall {
    91  	mr.mock.ctrl.T.Helper()
    92  	call := mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextEvent", reflect.TypeOf((*MockCryptoDataHandler)(nil).NextEvent))
    93  	return &MockCryptoDataHandlerNextEventCall{Call: call}
    94  }
    95  
    96  // MockCryptoDataHandlerNextEventCall wrap *gomock.Call
    97  type MockCryptoDataHandlerNextEventCall struct {
    98  	*gomock.Call
    99  }
   100  
   101  // Return rewrite *gomock.Call.Return
   102  func (c *MockCryptoDataHandlerNextEventCall) Return(arg0 handshake.Event) *MockCryptoDataHandlerNextEventCall {
   103  	c.Call = c.Call.Return(arg0)
   104  	return c
   105  }
   106  
   107  // Do rewrite *gomock.Call.Do
   108  func (c *MockCryptoDataHandlerNextEventCall) Do(f func() handshake.Event) *MockCryptoDataHandlerNextEventCall {
   109  	c.Call = c.Call.Do(f)
   110  	return c
   111  }
   112  
   113  // DoAndReturn rewrite *gomock.Call.DoAndReturn
   114  func (c *MockCryptoDataHandlerNextEventCall) DoAndReturn(f func() handshake.Event) *MockCryptoDataHandlerNextEventCall {
   115  	c.Call = c.Call.DoAndReturn(f)
   116  	return c
   117  }