github.com/tumi8/quic-go@v0.37.4-tum/noninternal/mocks/crypto_setup.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/tumi8/quic-go/noninternal/handshake (interfaces: CryptoSetup)
     3  
     4  // Package mocks is a generated GoMock package.
     5  package mocks
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	handshake "github.com/tumi8/quic-go/noninternal/handshake"
    12  	protocol "github.com/tumi8/quic-go/noninternal/protocol"
    13  )
    14  
    15  // MockCryptoSetup is a mock of CryptoSetup interface.
    16  type MockCryptoSetup struct {
    17  	ctrl     *gomock.Controller
    18  	recorder *MockCryptoSetupMockRecorder
    19  }
    20  
    21  // MockCryptoSetupMockRecorder is the mock recorder for MockCryptoSetup.
    22  type MockCryptoSetupMockRecorder struct {
    23  	mock *MockCryptoSetup
    24  }
    25  
    26  // NewMockCryptoSetup creates a new mock instance.
    27  func NewMockCryptoSetup(ctrl *gomock.Controller) *MockCryptoSetup {
    28  	mock := &MockCryptoSetup{ctrl: ctrl}
    29  	mock.recorder = &MockCryptoSetupMockRecorder{mock}
    30  	return mock
    31  }
    32  
    33  // EXPECT returns an object that allows the caller to indicate expected use.
    34  func (m *MockCryptoSetup) EXPECT() *MockCryptoSetupMockRecorder {
    35  	return m.recorder
    36  }
    37  
    38  // ChangeConnectionID mocks base method.
    39  func (m *MockCryptoSetup) ChangeConnectionID(arg0 protocol.ConnectionID) {
    40  	m.ctrl.T.Helper()
    41  	m.ctrl.Call(m, "ChangeConnectionID", arg0)
    42  }
    43  
    44  // ChangeConnectionID indicates an expected call of ChangeConnectionID.
    45  func (mr *MockCryptoSetupMockRecorder) ChangeConnectionID(arg0 interface{}) *gomock.Call {
    46  	mr.mock.ctrl.T.Helper()
    47  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChangeConnectionID", reflect.TypeOf((*MockCryptoSetup)(nil).ChangeConnectionID), arg0)
    48  }
    49  
    50  // Close mocks base method.
    51  func (m *MockCryptoSetup) Close() error {
    52  	m.ctrl.T.Helper()
    53  	ret := m.ctrl.Call(m, "Close")
    54  	ret0, _ := ret[0].(error)
    55  	return ret0
    56  }
    57  
    58  // Close indicates an expected call of Close.
    59  func (mr *MockCryptoSetupMockRecorder) Close() *gomock.Call {
    60  	mr.mock.ctrl.T.Helper()
    61  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockCryptoSetup)(nil).Close))
    62  }
    63  
    64  // ConnectionState mocks base method.
    65  func (m *MockCryptoSetup) ConnectionState() handshake.ConnectionState {
    66  	m.ctrl.T.Helper()
    67  	ret := m.ctrl.Call(m, "ConnectionState")
    68  	ret0, _ := ret[0].(handshake.ConnectionState)
    69  	return ret0
    70  }
    71  
    72  // ConnectionState indicates an expected call of ConnectionState.
    73  func (mr *MockCryptoSetupMockRecorder) ConnectionState() *gomock.Call {
    74  	mr.mock.ctrl.T.Helper()
    75  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ConnectionState", reflect.TypeOf((*MockCryptoSetup)(nil).ConnectionState))
    76  }
    77  
    78  // DiscardInitialKeys mocks base method.
    79  func (m *MockCryptoSetup) DiscardInitialKeys() {
    80  	m.ctrl.T.Helper()
    81  	m.ctrl.Call(m, "DiscardInitialKeys")
    82  }
    83  
    84  // DiscardInitialKeys indicates an expected call of DiscardInitialKeys.
    85  func (mr *MockCryptoSetupMockRecorder) DiscardInitialKeys() *gomock.Call {
    86  	mr.mock.ctrl.T.Helper()
    87  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DiscardInitialKeys", reflect.TypeOf((*MockCryptoSetup)(nil).DiscardInitialKeys))
    88  }
    89  
    90  // Get0RTTOpener mocks base method.
    91  func (m *MockCryptoSetup) Get0RTTOpener() (handshake.LongHeaderOpener, error) {
    92  	m.ctrl.T.Helper()
    93  	ret := m.ctrl.Call(m, "Get0RTTOpener")
    94  	ret0, _ := ret[0].(handshake.LongHeaderOpener)
    95  	ret1, _ := ret[1].(error)
    96  	return ret0, ret1
    97  }
    98  
    99  // Get0RTTOpener indicates an expected call of Get0RTTOpener.
   100  func (mr *MockCryptoSetupMockRecorder) Get0RTTOpener() *gomock.Call {
   101  	mr.mock.ctrl.T.Helper()
   102  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get0RTTOpener", reflect.TypeOf((*MockCryptoSetup)(nil).Get0RTTOpener))
   103  }
   104  
   105  // Get0RTTSealer mocks base method.
   106  func (m *MockCryptoSetup) Get0RTTSealer() (handshake.LongHeaderSealer, error) {
   107  	m.ctrl.T.Helper()
   108  	ret := m.ctrl.Call(m, "Get0RTTSealer")
   109  	ret0, _ := ret[0].(handshake.LongHeaderSealer)
   110  	ret1, _ := ret[1].(error)
   111  	return ret0, ret1
   112  }
   113  
   114  // Get0RTTSealer indicates an expected call of Get0RTTSealer.
   115  func (mr *MockCryptoSetupMockRecorder) Get0RTTSealer() *gomock.Call {
   116  	mr.mock.ctrl.T.Helper()
   117  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get0RTTSealer", reflect.TypeOf((*MockCryptoSetup)(nil).Get0RTTSealer))
   118  }
   119  
   120  // Get1RTTOpener mocks base method.
   121  func (m *MockCryptoSetup) Get1RTTOpener() (handshake.ShortHeaderOpener, error) {
   122  	m.ctrl.T.Helper()
   123  	ret := m.ctrl.Call(m, "Get1RTTOpener")
   124  	ret0, _ := ret[0].(handshake.ShortHeaderOpener)
   125  	ret1, _ := ret[1].(error)
   126  	return ret0, ret1
   127  }
   128  
   129  // Get1RTTOpener indicates an expected call of Get1RTTOpener.
   130  func (mr *MockCryptoSetupMockRecorder) Get1RTTOpener() *gomock.Call {
   131  	mr.mock.ctrl.T.Helper()
   132  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get1RTTOpener", reflect.TypeOf((*MockCryptoSetup)(nil).Get1RTTOpener))
   133  }
   134  
   135  // Get1RTTSealer mocks base method.
   136  func (m *MockCryptoSetup) Get1RTTSealer() (handshake.ShortHeaderSealer, error) {
   137  	m.ctrl.T.Helper()
   138  	ret := m.ctrl.Call(m, "Get1RTTSealer")
   139  	ret0, _ := ret[0].(handshake.ShortHeaderSealer)
   140  	ret1, _ := ret[1].(error)
   141  	return ret0, ret1
   142  }
   143  
   144  // Get1RTTSealer indicates an expected call of Get1RTTSealer.
   145  func (mr *MockCryptoSetupMockRecorder) Get1RTTSealer() *gomock.Call {
   146  	mr.mock.ctrl.T.Helper()
   147  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get1RTTSealer", reflect.TypeOf((*MockCryptoSetup)(nil).Get1RTTSealer))
   148  }
   149  
   150  // GetHandshakeOpener mocks base method.
   151  func (m *MockCryptoSetup) GetHandshakeOpener() (handshake.LongHeaderOpener, error) {
   152  	m.ctrl.T.Helper()
   153  	ret := m.ctrl.Call(m, "GetHandshakeOpener")
   154  	ret0, _ := ret[0].(handshake.LongHeaderOpener)
   155  	ret1, _ := ret[1].(error)
   156  	return ret0, ret1
   157  }
   158  
   159  // GetHandshakeOpener indicates an expected call of GetHandshakeOpener.
   160  func (mr *MockCryptoSetupMockRecorder) GetHandshakeOpener() *gomock.Call {
   161  	mr.mock.ctrl.T.Helper()
   162  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHandshakeOpener", reflect.TypeOf((*MockCryptoSetup)(nil).GetHandshakeOpener))
   163  }
   164  
   165  // GetHandshakeSealer mocks base method.
   166  func (m *MockCryptoSetup) GetHandshakeSealer() (handshake.LongHeaderSealer, error) {
   167  	m.ctrl.T.Helper()
   168  	ret := m.ctrl.Call(m, "GetHandshakeSealer")
   169  	ret0, _ := ret[0].(handshake.LongHeaderSealer)
   170  	ret1, _ := ret[1].(error)
   171  	return ret0, ret1
   172  }
   173  
   174  // GetHandshakeSealer indicates an expected call of GetHandshakeSealer.
   175  func (mr *MockCryptoSetupMockRecorder) GetHandshakeSealer() *gomock.Call {
   176  	mr.mock.ctrl.T.Helper()
   177  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHandshakeSealer", reflect.TypeOf((*MockCryptoSetup)(nil).GetHandshakeSealer))
   178  }
   179  
   180  // GetInitialOpener mocks base method.
   181  func (m *MockCryptoSetup) GetInitialOpener() (handshake.LongHeaderOpener, error) {
   182  	m.ctrl.T.Helper()
   183  	ret := m.ctrl.Call(m, "GetInitialOpener")
   184  	ret0, _ := ret[0].(handshake.LongHeaderOpener)
   185  	ret1, _ := ret[1].(error)
   186  	return ret0, ret1
   187  }
   188  
   189  // GetInitialOpener indicates an expected call of GetInitialOpener.
   190  func (mr *MockCryptoSetupMockRecorder) GetInitialOpener() *gomock.Call {
   191  	mr.mock.ctrl.T.Helper()
   192  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInitialOpener", reflect.TypeOf((*MockCryptoSetup)(nil).GetInitialOpener))
   193  }
   194  
   195  // GetInitialSealer mocks base method.
   196  func (m *MockCryptoSetup) GetInitialSealer() (handshake.LongHeaderSealer, error) {
   197  	m.ctrl.T.Helper()
   198  	ret := m.ctrl.Call(m, "GetInitialSealer")
   199  	ret0, _ := ret[0].(handshake.LongHeaderSealer)
   200  	ret1, _ := ret[1].(error)
   201  	return ret0, ret1
   202  }
   203  
   204  // GetInitialSealer indicates an expected call of GetInitialSealer.
   205  func (mr *MockCryptoSetupMockRecorder) GetInitialSealer() *gomock.Call {
   206  	mr.mock.ctrl.T.Helper()
   207  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetInitialSealer", reflect.TypeOf((*MockCryptoSetup)(nil).GetInitialSealer))
   208  }
   209  
   210  // GetSessionTicket mocks base method.
   211  func (m *MockCryptoSetup) GetSessionTicket() ([]byte, error) {
   212  	m.ctrl.T.Helper()
   213  	ret := m.ctrl.Call(m, "GetSessionTicket")
   214  	ret0, _ := ret[0].([]byte)
   215  	ret1, _ := ret[1].(error)
   216  	return ret0, ret1
   217  }
   218  
   219  // GetSessionTicket indicates an expected call of GetSessionTicket.
   220  func (mr *MockCryptoSetupMockRecorder) GetSessionTicket() *gomock.Call {
   221  	mr.mock.ctrl.T.Helper()
   222  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSessionTicket", reflect.TypeOf((*MockCryptoSetup)(nil).GetSessionTicket))
   223  }
   224  
   225  // HandleMessage mocks base method.
   226  func (m *MockCryptoSetup) HandleMessage(arg0 []byte, arg1 protocol.EncryptionLevel) error {
   227  	m.ctrl.T.Helper()
   228  	ret := m.ctrl.Call(m, "HandleMessage", arg0, arg1)
   229  	ret0, _ := ret[0].(error)
   230  	return ret0
   231  }
   232  
   233  // HandleMessage indicates an expected call of HandleMessage.
   234  func (mr *MockCryptoSetupMockRecorder) HandleMessage(arg0, arg1 interface{}) *gomock.Call {
   235  	mr.mock.ctrl.T.Helper()
   236  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HandleMessage", reflect.TypeOf((*MockCryptoSetup)(nil).HandleMessage), arg0, arg1)
   237  }
   238  
   239  // NextEvent mocks base method.
   240  func (m *MockCryptoSetup) NextEvent() handshake.Event {
   241  	m.ctrl.T.Helper()
   242  	ret := m.ctrl.Call(m, "NextEvent")
   243  	ret0, _ := ret[0].(handshake.Event)
   244  	return ret0
   245  }
   246  
   247  // NextEvent indicates an expected call of NextEvent.
   248  func (mr *MockCryptoSetupMockRecorder) NextEvent() *gomock.Call {
   249  	mr.mock.ctrl.T.Helper()
   250  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NextEvent", reflect.TypeOf((*MockCryptoSetup)(nil).NextEvent))
   251  }
   252  
   253  // SetHandshakeConfirmed mocks base method.
   254  func (m *MockCryptoSetup) SetHandshakeConfirmed() {
   255  	m.ctrl.T.Helper()
   256  	m.ctrl.Call(m, "SetHandshakeConfirmed")
   257  }
   258  
   259  // SetHandshakeConfirmed indicates an expected call of SetHandshakeConfirmed.
   260  func (mr *MockCryptoSetupMockRecorder) SetHandshakeConfirmed() *gomock.Call {
   261  	mr.mock.ctrl.T.Helper()
   262  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetHandshakeConfirmed", reflect.TypeOf((*MockCryptoSetup)(nil).SetHandshakeConfirmed))
   263  }
   264  
   265  // SetLargest1RTTAcked mocks base method.
   266  func (m *MockCryptoSetup) SetLargest1RTTAcked(arg0 protocol.PacketNumber) error {
   267  	m.ctrl.T.Helper()
   268  	ret := m.ctrl.Call(m, "SetLargest1RTTAcked", arg0)
   269  	ret0, _ := ret[0].(error)
   270  	return ret0
   271  }
   272  
   273  // SetLargest1RTTAcked indicates an expected call of SetLargest1RTTAcked.
   274  func (mr *MockCryptoSetupMockRecorder) SetLargest1RTTAcked(arg0 interface{}) *gomock.Call {
   275  	mr.mock.ctrl.T.Helper()
   276  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetLargest1RTTAcked", reflect.TypeOf((*MockCryptoSetup)(nil).SetLargest1RTTAcked), arg0)
   277  }
   278  
   279  // StartHandshake mocks base method.
   280  func (m *MockCryptoSetup) StartHandshake() error {
   281  	m.ctrl.T.Helper()
   282  	ret := m.ctrl.Call(m, "StartHandshake")
   283  	ret0, _ := ret[0].(error)
   284  	return ret0
   285  }
   286  
   287  // StartHandshake indicates an expected call of StartHandshake.
   288  func (mr *MockCryptoSetupMockRecorder) StartHandshake() *gomock.Call {
   289  	mr.mock.ctrl.T.Helper()
   290  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartHandshake", reflect.TypeOf((*MockCryptoSetup)(nil).StartHandshake))
   291  }