...

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

Documentation: github.com/ory/fosite/internal

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

View as plain text