forked from ory/fosite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
token_handler.go
52 lines (42 loc) · 1.89 KB
/
token_handler.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// Automatically generated by MockGen. DO NOT EDIT!
// Source: github.com/ory-am/fosite (interfaces: TokenEndpointHandler)
package internal
import (
gomock "github.com/golang/mock/gomock"
fosite "github.com/ory-am/fosite"
context "golang.org/x/net/context"
http "net/http"
)
// Mock of TokenEndpointHandler interface
type MockTokenEndpointHandler struct {
ctrl *gomock.Controller
recorder *_MockTokenEndpointHandlerRecorder
}
// Recorder for MockTokenEndpointHandler (not exported)
type _MockTokenEndpointHandlerRecorder struct {
mock *MockTokenEndpointHandler
}
func NewMockTokenEndpointHandler(ctrl *gomock.Controller) *MockTokenEndpointHandler {
mock := &MockTokenEndpointHandler{ctrl: ctrl}
mock.recorder = &_MockTokenEndpointHandlerRecorder{mock}
return mock
}
func (_m *MockTokenEndpointHandler) EXPECT() *_MockTokenEndpointHandlerRecorder {
return _m.recorder
}
func (_m *MockTokenEndpointHandler) HandleTokenEndpointRequest(_param0 context.Context, _param1 *http.Request, _param2 fosite.AccessRequester) error {
ret := _m.ctrl.Call(_m, "HandleTokenEndpointRequest", _param0, _param1, _param2)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockTokenEndpointHandlerRecorder) HandleTokenEndpointRequest(arg0, arg1, arg2 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "HandleTokenEndpointRequest", arg0, arg1, arg2)
}
func (_m *MockTokenEndpointHandler) PopulateTokenEndpointResponse(_param0 context.Context, _param1 *http.Request, _param2 fosite.AccessRequester, _param3 fosite.AccessResponder) error {
ret := _m.ctrl.Call(_m, "PopulateTokenEndpointResponse", _param0, _param1, _param2, _param3)
ret0, _ := ret[0].(error)
return ret0
}
func (_mr *_MockTokenEndpointHandlerRecorder) PopulateTokenEndpointResponse(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
return _mr.mock.ctrl.RecordCall(_mr.mock, "PopulateTokenEndpointResponse", arg0, arg1, arg2, arg3)
}