github.com/prysmaticlabs/prysm@v1.4.4/shared/mock/keymanager_mock.go (about)

     1  // Code generated by MockGen. DO NOT EDIT.
     2  // Source: github.com/prysmaticlabs/prysm/proto/validator/accounts/v2 (interfaces: RemoteSignerClient)
     3  
     4  // Package mock is a generated GoMock package.
     5  package mock
     6  
     7  import (
     8  	context "context"
     9  	reflect "reflect"
    10  
    11  	gomock "github.com/golang/mock/gomock"
    12  	v2 "github.com/prysmaticlabs/prysm/proto/validator/accounts/v2"
    13  	grpc "google.golang.org/grpc"
    14  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    15  )
    16  
    17  // MockRemoteSignerClient is a mock of RemoteSignerClient interface
    18  type MockRemoteSignerClient struct {
    19  	ctrl     *gomock.Controller
    20  	recorder *MockRemoteSignerClientMockRecorder
    21  }
    22  
    23  // MockRemoteSignerClientMockRecorder is the mock recorder for MockRemoteSignerClient
    24  type MockRemoteSignerClientMockRecorder struct {
    25  	mock *MockRemoteSignerClient
    26  }
    27  
    28  // NewMockRemoteSignerClient creates a new mock instance
    29  func NewMockRemoteSignerClient(ctrl *gomock.Controller) *MockRemoteSignerClient {
    30  	mock := &MockRemoteSignerClient{ctrl: ctrl}
    31  	mock.recorder = &MockRemoteSignerClientMockRecorder{mock}
    32  	return mock
    33  }
    34  
    35  // EXPECT returns an object that allows the caller to indicate expected use
    36  func (m *MockRemoteSignerClient) EXPECT() *MockRemoteSignerClientMockRecorder {
    37  	return m.recorder
    38  }
    39  
    40  // ListValidatingPublicKeys mocks base method
    41  func (m *MockRemoteSignerClient) ListValidatingPublicKeys(arg0 context.Context, arg1 *emptypb.Empty, arg2 ...grpc.CallOption) (*v2.ListPublicKeysResponse, error) {
    42  	m.ctrl.T.Helper()
    43  	varargs := []interface{}{arg0, arg1}
    44  	for _, a := range arg2 {
    45  		varargs = append(varargs, a)
    46  	}
    47  	ret := m.ctrl.Call(m, "ListValidatingPublicKeys", varargs...)
    48  	ret0, _ := ret[0].(*v2.ListPublicKeysResponse)
    49  	ret1, _ := ret[1].(error)
    50  	return ret0, ret1
    51  }
    52  
    53  // ListValidatingPublicKeys indicates an expected call of ListValidatingPublicKeys
    54  func (mr *MockRemoteSignerClientMockRecorder) ListValidatingPublicKeys(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
    55  	mr.mock.ctrl.T.Helper()
    56  	varargs := append([]interface{}{arg0, arg1}, arg2...)
    57  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ListValidatingPublicKeys", reflect.TypeOf((*MockRemoteSignerClient)(nil).ListValidatingPublicKeys), varargs...)
    58  }
    59  
    60  // Sign mocks base method
    61  func (m *MockRemoteSignerClient) Sign(arg0 context.Context, arg1 *v2.SignRequest, arg2 ...grpc.CallOption) (*v2.SignResponse, error) {
    62  	m.ctrl.T.Helper()
    63  	varargs := []interface{}{arg0, arg1}
    64  	for _, a := range arg2 {
    65  		varargs = append(varargs, a)
    66  	}
    67  	ret := m.ctrl.Call(m, "Sign", varargs...)
    68  	ret0, _ := ret[0].(*v2.SignResponse)
    69  	ret1, _ := ret[1].(error)
    70  	return ret0, ret1
    71  }
    72  
    73  // Sign indicates an expected call of Sign
    74  func (mr *MockRemoteSignerClientMockRecorder) Sign(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call {
    75  	mr.mock.ctrl.T.Helper()
    76  	varargs := append([]interface{}{arg0, arg1}, arg2...)
    77  	return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockRemoteSignerClient)(nil).Sign), varargs...)
    78  }