// Code generated by MockGen. DO NOT EDIT. // Source: proto/authenticate/authenticate.pb.go // Package mock_authenticate is a generated GoMock package. package mock_authenticate import ( "context" reflect "reflect" gomock "github.com/golang/mock/gomock" "github.com/pomerium/pomerium/proto/authenticate" grpc "google.golang.org/grpc" ) // MockAuthenticatorClient is a mock of AuthenticatorClient interface type MockAuthenticatorClient struct { ctrl *gomock.Controller recorder *MockAuthenticatorClientMockRecorder } // MockAuthenticatorClientMockRecorder is the mock recorder for MockAuthenticatorClient type MockAuthenticatorClientMockRecorder struct { mock *MockAuthenticatorClient } // NewMockAuthenticatorClient creates a new mock instance func NewMockAuthenticatorClient(ctrl *gomock.Controller) *MockAuthenticatorClient { mock := &MockAuthenticatorClient{ctrl: ctrl} mock.recorder = &MockAuthenticatorClientMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use func (m *MockAuthenticatorClient) EXPECT() *MockAuthenticatorClientMockRecorder { return m.recorder } // Authenticate mocks base method func (m *MockAuthenticatorClient) Authenticate(ctx context.Context, in *authenticate.AuthenticateRequest, opts ...grpc.CallOption) (*authenticate.Session, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Authenticate", varargs...) ret0, _ := ret[0].(*authenticate.Session) ret1, _ := ret[1].(error) return ret0, ret1 } // Authenticate indicates an expected call of Authenticate func (mr *MockAuthenticatorClientMockRecorder) Authenticate(ctx, in interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, in}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Authenticate", reflect.TypeOf((*MockAuthenticatorClient)(nil).Authenticate), varargs...) } // Validate mocks base method func (m *MockAuthenticatorClient) Validate(ctx context.Context, in *authenticate.ValidateRequest, opts ...grpc.CallOption) (*authenticate.ValidateReply, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Validate", varargs...) ret0, _ := ret[0].(*authenticate.ValidateReply) ret1, _ := ret[1].(error) return ret0, ret1 } // Validate indicates an expected call of Validate func (mr *MockAuthenticatorClientMockRecorder) Validate(ctx, in interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, in}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockAuthenticatorClient)(nil).Validate), varargs...) } // Refresh mocks base method func (m *MockAuthenticatorClient) Refresh(ctx context.Context, in *authenticate.Session, opts ...grpc.CallOption) (*authenticate.Session, error) { m.ctrl.T.Helper() varargs := []interface{}{ctx, in} for _, a := range opts { varargs = append(varargs, a) } ret := m.ctrl.Call(m, "Refresh", varargs...) ret0, _ := ret[0].(*authenticate.Session) ret1, _ := ret[1].(error) return ret0, ret1 } // Refresh indicates an expected call of Refresh func (mr *MockAuthenticatorClientMockRecorder) Refresh(ctx, in interface{}, opts ...interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() varargs := append([]interface{}{ctx, in}, opts...) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Refresh", reflect.TypeOf((*MockAuthenticatorClient)(nil).Refresh), varargs...) } // MockAuthenticatorServer is a mock of AuthenticatorServer interface type MockAuthenticatorServer struct { ctrl *gomock.Controller recorder *MockAuthenticatorServerMockRecorder } // MockAuthenticatorServerMockRecorder is the mock recorder for MockAuthenticatorServer type MockAuthenticatorServerMockRecorder struct { mock *MockAuthenticatorServer } // NewMockAuthenticatorServer creates a new mock instance func NewMockAuthenticatorServer(ctrl *gomock.Controller) *MockAuthenticatorServer { mock := &MockAuthenticatorServer{ctrl: ctrl} mock.recorder = &MockAuthenticatorServerMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use func (m *MockAuthenticatorServer) EXPECT() *MockAuthenticatorServerMockRecorder { return m.recorder } // Authenticate mocks base method func (m *MockAuthenticatorServer) Authenticate(arg0 context.Context, arg1 *authenticate.AuthenticateRequest) (*authenticate.Session, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Authenticate", arg0, arg1) ret0, _ := ret[0].(*authenticate.Session) ret1, _ := ret[1].(error) return ret0, ret1 } // Authenticate indicates an expected call of Authenticate func (mr *MockAuthenticatorServerMockRecorder) Authenticate(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Authenticate", reflect.TypeOf((*MockAuthenticatorServer)(nil).Authenticate), arg0, arg1) } // Validate mocks base method func (m *MockAuthenticatorServer) Validate(arg0 context.Context, arg1 *authenticate.ValidateRequest) (*authenticate.ValidateReply, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Validate", arg0, arg1) ret0, _ := ret[0].(*authenticate.ValidateReply) ret1, _ := ret[1].(error) return ret0, ret1 } // Validate indicates an expected call of Validate func (mr *MockAuthenticatorServerMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Validate", reflect.TypeOf((*MockAuthenticatorServer)(nil).Validate), arg0, arg1) } // Refresh mocks base method func (m *MockAuthenticatorServer) Refresh(arg0 context.Context, arg1 *authenticate.Session) (*authenticate.Session, error) { m.ctrl.T.Helper() ret := m.ctrl.Call(m, "Refresh", arg0, arg1) ret0, _ := ret[0].(*authenticate.Session) ret1, _ := ret[1].(error) return ret0, ret1 } // Refresh indicates an expected call of Refresh func (mr *MockAuthenticatorServerMockRecorder) Refresh(arg0, arg1 interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Refresh", reflect.TypeOf((*MockAuthenticatorServer)(nil).Refresh), arg0, arg1) }