...

Source file src/github.com/ory/fosite/internal/oauth2_owner_storage.go

Documentation: github.com/ory/fosite/internal

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/ory/fosite/handler/oauth2 (interfaces: ResourceOwnerPasswordCredentialsGrantStorage)
     3  
     4  // Package internal is a generated GoMock package.
     5  package internal
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  
    13  	fosite "github.com/ory/fosite"
    14  )
    15  
    16  // MockResourceOwnerPasswordCredentialsGrantStorage is a mock of ResourceOwnerPasswordCredentialsGrantStorage interface
    17  type MockResourceOwnerPasswordCredentialsGrantStorage struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder
    20  }
    21  
    22  // MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder is the mock recorder for MockResourceOwnerPasswordCredentialsGrantStorage
    23  type MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder struct {
    24  	mock *MockResourceOwnerPasswordCredentialsGrantStorage
    25  }
    26  
    27  // NewMockResourceOwnerPasswordCredentialsGrantStorage creates a new mock instance
    28  func NewMockResourceOwnerPasswordCredentialsGrantStorage(ctrl *gomock.Controller) *MockResourceOwnerPasswordCredentialsGrantStorage {
    29  	mock := &MockResourceOwnerPasswordCredentialsGrantStorage{ctrl: ctrl}
    30  	mock.recorder = &MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use
    35  func (m *MockResourceOwnerPasswordCredentialsGrantStorage) EXPECT() *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // Authenticate mocks base method
    40  func (m *MockResourceOwnerPasswordCredentialsGrantStorage) Authenticate(arg0 context.Context, arg1, arg2 string) error {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "Authenticate", arg0, arg1, arg2)
    43  	ret0, _ := ret[0].(error)
    44  	return ret0
    45  }
    46  
    47  // Authenticate indicates an expected call of Authenticate
    48  func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) Authenticate(arg0, arg1, arg2 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Authenticate", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).Authenticate), arg0, arg1, arg2)
    51  }
    52  
    53  // CreateAccessTokenSession mocks base method
    54  func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "CreateAccessTokenSession", arg0, arg1, arg2)
    57  	ret0, _ := ret[0].(error)
    58  	return ret0
    59  }
    60  
    61  // CreateAccessTokenSession indicates an expected call of CreateAccessTokenSession
    62  func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
    63  	mr.mock.ctrl.T.Helper()
    64  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccessTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).CreateAccessTokenSession), arg0, arg1, arg2)
    65  }
    66  
    67  // CreateRefreshTokenSession mocks base method
    68  func (m *MockResourceOwnerPasswordCredentialsGrantStorage) CreateRefreshTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Requester) error {
    69  	m.ctrl.T.Helper()
    70  	ret := m.ctrl.Call(m, "CreateRefreshTokenSession", arg0, arg1, arg2)
    71  	ret0, _ := ret[0].(error)
    72  	return ret0
    73  }
    74  
    75  // CreateRefreshTokenSession indicates an expected call of CreateRefreshTokenSession
    76  func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) CreateRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
    77  	mr.mock.ctrl.T.Helper()
    78  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateRefreshTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).CreateRefreshTokenSession), arg0, arg1, arg2)
    79  }
    80  
    81  // DeleteAccessTokenSession mocks base method
    82  func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteAccessTokenSession(arg0 context.Context, arg1 string) error {
    83  	m.ctrl.T.Helper()
    84  	ret := m.ctrl.Call(m, "DeleteAccessTokenSession", arg0, arg1)
    85  	ret0, _ := ret[0].(error)
    86  	return ret0
    87  }
    88  
    89  // DeleteAccessTokenSession indicates an expected call of DeleteAccessTokenSession
    90  func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteAccessTokenSession(arg0, arg1 interface{}) *gomock.Call {
    91  	mr.mock.ctrl.T.Helper()
    92  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteAccessTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).DeleteAccessTokenSession), arg0, arg1)
    93  }
    94  
    95  // DeleteRefreshTokenSession mocks base method
    96  func (m *MockResourceOwnerPasswordCredentialsGrantStorage) DeleteRefreshTokenSession(arg0 context.Context, arg1 string) error {
    97  	m.ctrl.T.Helper()
    98  	ret := m.ctrl.Call(m, "DeleteRefreshTokenSession", arg0, arg1)
    99  	ret0, _ := ret[0].(error)
   100  	return ret0
   101  }
   102  
   103  // DeleteRefreshTokenSession indicates an expected call of DeleteRefreshTokenSession
   104  func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) DeleteRefreshTokenSession(arg0, arg1 interface{}) *gomock.Call {
   105  	mr.mock.ctrl.T.Helper()
   106  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteRefreshTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).DeleteRefreshTokenSession), arg0, arg1)
   107  }
   108  
   109  // GetAccessTokenSession mocks base method
   110  func (m *MockResourceOwnerPasswordCredentialsGrantStorage) GetAccessTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error) {
   111  	m.ctrl.T.Helper()
   112  	ret := m.ctrl.Call(m, "GetAccessTokenSession", arg0, arg1, arg2)
   113  	ret0, _ := ret[0].(fosite.Requester)
   114  	ret1, _ := ret[1].(error)
   115  	return ret0, ret1
   116  }
   117  
   118  // GetAccessTokenSession indicates an expected call of GetAccessTokenSession
   119  func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetAccessTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
   120  	mr.mock.ctrl.T.Helper()
   121  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetAccessTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).GetAccessTokenSession), arg0, arg1, arg2)
   122  }
   123  
   124  // GetRefreshTokenSession mocks base method
   125  func (m *MockResourceOwnerPasswordCredentialsGrantStorage) GetRefreshTokenSession(arg0 context.Context, arg1 string, arg2 fosite.Session) (fosite.Requester, error) {
   126  	m.ctrl.T.Helper()
   127  	ret := m.ctrl.Call(m, "GetRefreshTokenSession", arg0, arg1, arg2)
   128  	ret0, _ := ret[0].(fosite.Requester)
   129  	ret1, _ := ret[1].(error)
   130  	return ret0, ret1
   131  }
   132  
   133  // GetRefreshTokenSession indicates an expected call of GetRefreshTokenSession
   134  func (mr *MockResourceOwnerPasswordCredentialsGrantStorageMockRecorder) GetRefreshTokenSession(arg0, arg1, arg2 interface{}) *gomock.Call {
   135  	mr.mock.ctrl.T.Helper()
   136  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetRefreshTokenSession", reflect.TypeOf((*MockResourceOwnerPasswordCredentialsGrantStorage)(nil).GetRefreshTokenSession), arg0, arg1, arg2)
   137  }
   138  

View as plain text