...

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

Documentation: github.com/ory/fosite/internal

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/ory/fosite/handler/oauth2 (interfaces: AuthorizeCodeStrategy)
     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  // MockAuthorizeCodeStrategy is a mock of AuthorizeCodeStrategy interface
    17  type MockAuthorizeCodeStrategy struct {
    18  	ctrl     *gomock.Controller
    19  	recorder *MockAuthorizeCodeStrategyMockRecorder
    20  }
    21  
    22  // MockAuthorizeCodeStrategyMockRecorder is the mock recorder for MockAuthorizeCodeStrategy
    23  type MockAuthorizeCodeStrategyMockRecorder struct {
    24  	mock *MockAuthorizeCodeStrategy
    25  }
    26  
    27  // NewMockAuthorizeCodeStrategy creates a new mock instance
    28  func NewMockAuthorizeCodeStrategy(ctrl *gomock.Controller) *MockAuthorizeCodeStrategy {
    29  	mock := &MockAuthorizeCodeStrategy{ctrl: ctrl}
    30  	mock.recorder = &MockAuthorizeCodeStrategyMockRecorder{mock}
    31  	return mock
    32  }
    33  
    34  // EXPECT returns an object that allows the caller to indicate expected use
    35  func (m *MockAuthorizeCodeStrategy) EXPECT() *MockAuthorizeCodeStrategyMockRecorder {
    36  	return m.recorder
    37  }
    38  
    39  // AuthorizeCodeSignature mocks base method
    40  func (m *MockAuthorizeCodeStrategy) AuthorizeCodeSignature(arg0 string) string {
    41  	m.ctrl.T.Helper()
    42  	ret := m.ctrl.Call(m, "AuthorizeCodeSignature", arg0)
    43  	ret0, _ := ret[0].(string)
    44  	return ret0
    45  }
    46  
    47  // AuthorizeCodeSignature indicates an expected call of AuthorizeCodeSignature
    48  func (mr *MockAuthorizeCodeStrategyMockRecorder) AuthorizeCodeSignature(arg0 interface{}) *gomock.Call {
    49  	mr.mock.ctrl.T.Helper()
    50  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AuthorizeCodeSignature", reflect.TypeOf((*MockAuthorizeCodeStrategy)(nil).AuthorizeCodeSignature), arg0)
    51  }
    52  
    53  // GenerateAuthorizeCode mocks base method
    54  func (m *MockAuthorizeCodeStrategy) GenerateAuthorizeCode(arg0 context.Context, arg1 fosite.Requester) (string, string, error) {
    55  	m.ctrl.T.Helper()
    56  	ret := m.ctrl.Call(m, "GenerateAuthorizeCode", arg0, arg1)
    57  	ret0, _ := ret[0].(string)
    58  	ret1, _ := ret[1].(string)
    59  	ret2, _ := ret[2].(error)
    60  	return ret0, ret1, ret2
    61  }
    62  
    63  // GenerateAuthorizeCode indicates an expected call of GenerateAuthorizeCode
    64  func (mr *MockAuthorizeCodeStrategyMockRecorder) GenerateAuthorizeCode(arg0, arg1 interface{}) *gomock.Call {
    65  	mr.mock.ctrl.T.Helper()
    66  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GenerateAuthorizeCode", reflect.TypeOf((*MockAuthorizeCodeStrategy)(nil).GenerateAuthorizeCode), arg0, arg1)
    67  }
    68  
    69  // ValidateAuthorizeCode mocks base method
    70  func (m *MockAuthorizeCodeStrategy) ValidateAuthorizeCode(arg0 context.Context, arg1 fosite.Requester, arg2 string) error {
    71  	m.ctrl.T.Helper()
    72  	ret := m.ctrl.Call(m, "ValidateAuthorizeCode", arg0, arg1, arg2)
    73  	ret0, _ := ret[0].(error)
    74  	return ret0
    75  }
    76  
    77  // ValidateAuthorizeCode indicates an expected call of ValidateAuthorizeCode
    78  func (mr *MockAuthorizeCodeStrategyMockRecorder) ValidateAuthorizeCode(arg0, arg1, arg2 interface{}) *gomock.Call {
    79  	mr.mock.ctrl.T.Helper()
    80  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ValidateAuthorizeCode", reflect.TypeOf((*MockAuthorizeCodeStrategy)(nil).ValidateAuthorizeCode), arg0, arg1, arg2)
    81  }
    82  

View as plain text