github.com/microsoft/moc@v0.17.1/pkg/auth/mock/auth_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/microsoft/moc/pkg/auth (interfaces: Authorizer)
     3  
     4  // Package mock_auth is a generated GoMock package.
     5  package mock_auth
     6  
     7  import (
     8  	reflect "reflect"
     9  
    10  	gomock "github.com/golang/mock/gomock"
    11  	credentials "google.golang.org/grpc/credentials"
    12  )
    13  
    14  // MockAuthorizer is a mock of Authorizer interface.
    15  type MockAuthorizer struct {
    16  	ctrl     *gomock.Controller
    17  	recorder *MockAuthorizerMockRecorder
    18  }
    19  
    20  // MockAuthorizerMockRecorder is the mock recorder for MockAuthorizer.
    21  type MockAuthorizerMockRecorder struct {
    22  	mock *MockAuthorizer
    23  }
    24  
    25  // NewMockAuthorizer creates a new mock instance.
    26  func NewMockAuthorizer(ctrl *gomock.Controller) *MockAuthorizer {
    27  	mock := &MockAuthorizer{ctrl: ctrl}
    28  	mock.recorder = &MockAuthorizerMockRecorder{mock}
    29  	return mock
    30  }
    31  
    32  // EXPECT returns an object that allows the caller to indicate expected use.
    33  func (m *MockAuthorizer) EXPECT() *MockAuthorizerMockRecorder {
    34  	return m.recorder
    35  }
    36  
    37  // WithRPCAuthorization mocks base method.
    38  func (m *MockAuthorizer) WithRPCAuthorization() credentials.PerRPCCredentials {
    39  	m.ctrl.T.Helper()
    40  	ret := m.ctrl.Call(m, "WithRPCAuthorization")
    41  	ret0, _ := ret[0].(credentials.PerRPCCredentials)
    42  	return ret0
    43  }
    44  
    45  // WithRPCAuthorization indicates an expected call of WithRPCAuthorization.
    46  func (mr *MockAuthorizerMockRecorder) WithRPCAuthorization() *gomock.Call {
    47  	mr.mock.ctrl.T.Helper()
    48  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithRPCAuthorization", reflect.TypeOf((*MockAuthorizer)(nil).WithRPCAuthorization))
    49  }
    50  
    51  // WithTransportAuthorization mocks base method.
    52  func (m *MockAuthorizer) WithTransportAuthorization() credentials.TransportCredentials {
    53  	m.ctrl.T.Helper()
    54  	ret := m.ctrl.Call(m, "WithTransportAuthorization")
    55  	ret0, _ := ret[0].(credentials.TransportCredentials)
    56  	return ret0
    57  }
    58  
    59  // WithTransportAuthorization indicates an expected call of WithTransportAuthorization.
    60  func (mr *MockAuthorizerMockRecorder) WithTransportAuthorization() *gomock.Call {
    61  	mr.mock.ctrl.T.Helper()
    62  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "WithTransportAuthorization", reflect.TypeOf((*MockAuthorizer)(nil).WithTransportAuthorization))
    63  }