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

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: crypto/tls (interfaces: ClientSessionCache)
     3  
     4  // Package mocktls is a generated GoMock package.
     5  package mocktls
     6  
     7  import (
     8  	tls "crypto/tls"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  )
    13  
    14  // MockClientSessionCache is a mock of ClientSessionCache interface.
    15  type MockClientSessionCache struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockClientSessionCacheMockRecorder
    18  }
    19  
    20  // MockClientSessionCacheMockRecorder is the mock recorder for MockClientSessionCache.
    21  type MockClientSessionCacheMockRecorder struct {
    22  	mock *MockClientSessionCache
    23  }
    24  
    25  // NewMockClientSessionCache creates a new mock instance.
    26  func NewMockClientSessionCache(ctrl *gomock.Controller) *MockClientSessionCache {
    27  	mock := &MockClientSessionCache{ctrl: ctrl}
    28  	mock.recorder = &MockClientSessionCacheMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockClientSessionCache) EXPECT() *MockClientSessionCacheMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // Get mocks base method.
    38  func (m *MockClientSessionCache) Get(arg0 string) (*tls.ClientSessionState, bool) {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "Get", arg0)
    41  	ret0, _ := ret[0].(*tls.ClientSessionState)
    42  	ret1, _ := ret[1].(bool)
    43  	return ret0, ret1
    44  }
    45  
    46  // Get indicates an expected call of Get.
    47  func (mr *MockClientSessionCacheMockRecorder) Get(arg0 interface{}) *gomock.Call {
    48  	mr.mock.ctrl.T.Helper()
    49  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Get", reflect.TypeOf((*MockClientSessionCache)(nil).Get), arg0)
    50  }
    51  
    52  // Put mocks base method.
    53  func (m *MockClientSessionCache) Put(arg0 string, arg1 *tls.ClientSessionState) {
    54  	m.ctrl.T.Helper()
    55  	m.ctrl.Call(m, "Put", arg0, arg1)
    56  }
    57  
    58  // Put indicates an expected call of Put.
    59  func (mr *MockClientSessionCacheMockRecorder) Put(arg0, arg1 interface{}) *gomock.Call {
    60  	mr.mock.ctrl.T.Helper()
    61  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Put", reflect.TypeOf((*MockClientSessionCache)(nil).Put), arg0, arg1)
    62  }