1
21
22
23
24
25 package internal
26
27 import (
28 context "context"
29
30 gomock "github.com/golang/mock/gomock"
31
32 fosite "github.com/ory/fosite"
33 )
34
35
36 type MockAuthorizeCodeGrantStorage struct {
37 ctrl *gomock.Controller
38 recorder *_MockAuthorizeCodeGrantStorageRecorder
39 }
40
41
42 type _MockAuthorizeCodeGrantStorageRecorder struct {
43 mock *MockAuthorizeCodeGrantStorage
44 }
45
46 func NewMockAuthorizeCodeGrantStorage(ctrl *gomock.Controller) *MockAuthorizeCodeGrantStorage {
47 mock := &MockAuthorizeCodeGrantStorage{ctrl: ctrl}
48 mock.recorder = &_MockAuthorizeCodeGrantStorageRecorder{mock}
49 return mock
50 }
51
52 func (_m *MockAuthorizeCodeGrantStorage) EXPECT() *_MockAuthorizeCodeGrantStorageRecorder {
53 return _m.recorder
54 }
55
56 func (_m *MockAuthorizeCodeGrantStorage) CreateAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 fosite.Requester) error {
57 ret := _m.ctrl.Call(_m, "CreateAuthorizeCodeSession", _param0, _param1, _param2)
58 ret0, _ := ret[0].(error)
59 return ret0
60 }
61
62 func (_mr *_MockAuthorizeCodeGrantStorageRecorder) CreateAuthorizeCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call {
63 return _mr.mock.ctrl.RecordCall(_mr.mock, "CreateAuthorizeCodeSession", arg0, arg1, arg2)
64 }
65
66 func (_m *MockAuthorizeCodeGrantStorage) DeleteAuthorizeCodeSession(_param0 context.Context, _param1 string) error {
67 ret := _m.ctrl.Call(_m, "DeleteAuthorizeCodeSession", _param0, _param1)
68 ret0, _ := ret[0].(error)
69 return ret0
70 }
71
72 func (_mr *_MockAuthorizeCodeGrantStorageRecorder) DeleteAuthorizeCodeSession(arg0, arg1 interface{}) *gomock.Call {
73 return _mr.mock.ctrl.RecordCall(_mr.mock, "DeleteAuthorizeCodeSession", arg0, arg1)
74 }
75
76 func (_m *MockAuthorizeCodeGrantStorage) GetAuthorizeCodeSession(_param0 context.Context, _param1 string, _param2 fosite.Session) (fosite.Requester, error) {
77 ret := _m.ctrl.Call(_m, "GetAuthorizeCodeSession", _param0, _param1, _param2)
78 ret0, _ := ret[0].(fosite.Requester)
79 ret1, _ := ret[1].(error)
80 return ret0, ret1
81 }
82
83 func (_mr *_MockAuthorizeCodeGrantStorageRecorder) GetAuthorizeCodeSession(arg0, arg1, arg2 interface{}) *gomock.Call {
84 return _mr.mock.ctrl.RecordCall(_mr.mock, "GetAuthorizeCodeSession", arg0, arg1, arg2)
85 }
86
87 func (_m *MockAuthorizeCodeGrantStorage) PersistAuthorizeCodeGrantSession(_param0 context.Context, _param1 string, _param2 string, _param3 string, _param4 fosite.Requester) error {
88 ret := _m.ctrl.Call(_m, "PersistAuthorizeCodeGrantSession", _param0, _param1, _param2, _param3, _param4)
89 ret0, _ := ret[0].(error)
90 return ret0
91 }
92
93 func (_mr *_MockAuthorizeCodeGrantStorageRecorder) PersistAuthorizeCodeGrantSession(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call {
94 return _mr.mock.ctrl.RecordCall(_mr.mock, "PersistAuthorizeCodeGrantSession", arg0, arg1, arg2, arg3, arg4)
95 }
96
View as plain text