github.com/danielpfeifer02/quic-go-prio-packs@v0.41.0-28/internal/mocks/tls/client_session_cache.go (about)

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