github.com/ConsenSys/Quorum@v20.10.0+incompatible/accounts/pluggable/internal/testutils/mock_plugin/mock_plugin.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/ethereum/go-ethereum/plugin/account (interfaces: Service) 3 4 // Package mock_plugin is a generated GoMock package. 5 package mock_plugin 6 7 import ( 8 context "context" 9 reflect "reflect" 10 time "time" 11 12 accounts "github.com/ethereum/go-ethereum/accounts" 13 gomock "github.com/golang/mock/gomock" 14 ) 15 16 // MockService is a mock of Service interface 17 type MockService struct { 18 ctrl *gomock.Controller 19 recorder *MockServiceMockRecorder 20 } 21 22 // MockServiceMockRecorder is the mock recorder for MockService 23 type MockServiceMockRecorder struct { 24 mock *MockService 25 } 26 27 // NewMockService creates a new mock instance 28 func NewMockService(ctrl *gomock.Controller) *MockService { 29 mock := &MockService{ctrl: ctrl} 30 mock.recorder = &MockServiceMockRecorder{mock} 31 return mock 32 } 33 34 // EXPECT returns an object that allows the caller to indicate expected use 35 func (m *MockService) EXPECT() *MockServiceMockRecorder { 36 return m.recorder 37 } 38 39 // Accounts mocks base method 40 func (m *MockService) Accounts(arg0 context.Context) []accounts.Account { 41 m.ctrl.T.Helper() 42 ret := m.ctrl.Call(m, "Accounts", arg0) 43 ret0, _ := ret[0].([]accounts.Account) 44 return ret0 45 } 46 47 // Accounts indicates an expected call of Accounts 48 func (mr *MockServiceMockRecorder) Accounts(arg0 interface{}) *gomock.Call { 49 mr.mock.ctrl.T.Helper() 50 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Accounts", reflect.TypeOf((*MockService)(nil).Accounts), arg0) 51 } 52 53 // Close mocks base method 54 func (m *MockService) Close(arg0 context.Context) error { 55 m.ctrl.T.Helper() 56 ret := m.ctrl.Call(m, "Close", arg0) 57 ret0, _ := ret[0].(error) 58 return ret0 59 } 60 61 // Close indicates an expected call of Close 62 func (mr *MockServiceMockRecorder) Close(arg0 interface{}) *gomock.Call { 63 mr.mock.ctrl.T.Helper() 64 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Close", reflect.TypeOf((*MockService)(nil).Close), arg0) 65 } 66 67 // Contains mocks base method 68 func (m *MockService) Contains(arg0 context.Context, arg1 accounts.Account) bool { 69 m.ctrl.T.Helper() 70 ret := m.ctrl.Call(m, "Contains", arg0, arg1) 71 ret0, _ := ret[0].(bool) 72 return ret0 73 } 74 75 // Contains indicates an expected call of Contains 76 func (mr *MockServiceMockRecorder) Contains(arg0, arg1 interface{}) *gomock.Call { 77 mr.mock.ctrl.T.Helper() 78 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Contains", reflect.TypeOf((*MockService)(nil).Contains), arg0, arg1) 79 } 80 81 // ImportRawKey mocks base method 82 func (m *MockService) ImportRawKey(arg0 context.Context, arg1 string, arg2 interface{}) (accounts.Account, error) { 83 m.ctrl.T.Helper() 84 ret := m.ctrl.Call(m, "ImportRawKey", arg0, arg1, arg2) 85 ret0, _ := ret[0].(accounts.Account) 86 ret1, _ := ret[1].(error) 87 return ret0, ret1 88 } 89 90 // ImportRawKey indicates an expected call of ImportRawKey 91 func (mr *MockServiceMockRecorder) ImportRawKey(arg0, arg1, arg2 interface{}) *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ImportRawKey", reflect.TypeOf((*MockService)(nil).ImportRawKey), arg0, arg1, arg2) 94 } 95 96 // Lock mocks base method 97 func (m *MockService) Lock(arg0 context.Context, arg1 accounts.Account) error { 98 m.ctrl.T.Helper() 99 ret := m.ctrl.Call(m, "Lock", arg0, arg1) 100 ret0, _ := ret[0].(error) 101 return ret0 102 } 103 104 // Lock indicates an expected call of Lock 105 func (mr *MockServiceMockRecorder) Lock(arg0, arg1 interface{}) *gomock.Call { 106 mr.mock.ctrl.T.Helper() 107 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Lock", reflect.TypeOf((*MockService)(nil).Lock), arg0, arg1) 108 } 109 110 // NewAccount mocks base method 111 func (m *MockService) NewAccount(arg0 context.Context, arg1 interface{}) (accounts.Account, error) { 112 m.ctrl.T.Helper() 113 ret := m.ctrl.Call(m, "NewAccount", arg0, arg1) 114 ret0, _ := ret[0].(accounts.Account) 115 ret1, _ := ret[1].(error) 116 return ret0, ret1 117 } 118 119 // NewAccount indicates an expected call of NewAccount 120 func (mr *MockServiceMockRecorder) NewAccount(arg0, arg1 interface{}) *gomock.Call { 121 mr.mock.ctrl.T.Helper() 122 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NewAccount", reflect.TypeOf((*MockService)(nil).NewAccount), arg0, arg1) 123 } 124 125 // Open mocks base method 126 func (m *MockService) Open(arg0 context.Context, arg1 string) error { 127 m.ctrl.T.Helper() 128 ret := m.ctrl.Call(m, "Open", arg0, arg1) 129 ret0, _ := ret[0].(error) 130 return ret0 131 } 132 133 // Open indicates an expected call of Open 134 func (mr *MockServiceMockRecorder) Open(arg0, arg1 interface{}) *gomock.Call { 135 mr.mock.ctrl.T.Helper() 136 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Open", reflect.TypeOf((*MockService)(nil).Open), arg0, arg1) 137 } 138 139 // Sign mocks base method 140 func (m *MockService) Sign(arg0 context.Context, arg1 accounts.Account, arg2 []byte) ([]byte, error) { 141 m.ctrl.T.Helper() 142 ret := m.ctrl.Call(m, "Sign", arg0, arg1, arg2) 143 ret0, _ := ret[0].([]byte) 144 ret1, _ := ret[1].(error) 145 return ret0, ret1 146 } 147 148 // Sign indicates an expected call of Sign 149 func (mr *MockServiceMockRecorder) Sign(arg0, arg1, arg2 interface{}) *gomock.Call { 150 mr.mock.ctrl.T.Helper() 151 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Sign", reflect.TypeOf((*MockService)(nil).Sign), arg0, arg1, arg2) 152 } 153 154 // Status mocks base method 155 func (m *MockService) Status(arg0 context.Context) (string, error) { 156 m.ctrl.T.Helper() 157 ret := m.ctrl.Call(m, "Status", arg0) 158 ret0, _ := ret[0].(string) 159 ret1, _ := ret[1].(error) 160 return ret0, ret1 161 } 162 163 // Status indicates an expected call of Status 164 func (mr *MockServiceMockRecorder) Status(arg0 interface{}) *gomock.Call { 165 mr.mock.ctrl.T.Helper() 166 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Status", reflect.TypeOf((*MockService)(nil).Status), arg0) 167 } 168 169 // TimedUnlock mocks base method 170 func (m *MockService) TimedUnlock(arg0 context.Context, arg1 accounts.Account, arg2 string, arg3 time.Duration) error { 171 m.ctrl.T.Helper() 172 ret := m.ctrl.Call(m, "TimedUnlock", arg0, arg1, arg2, arg3) 173 ret0, _ := ret[0].(error) 174 return ret0 175 } 176 177 // TimedUnlock indicates an expected call of TimedUnlock 178 func (mr *MockServiceMockRecorder) TimedUnlock(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 179 mr.mock.ctrl.T.Helper() 180 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TimedUnlock", reflect.TypeOf((*MockService)(nil).TimedUnlock), arg0, arg1, arg2, arg3) 181 } 182 183 // UnlockAndSign mocks base method 184 func (m *MockService) UnlockAndSign(arg0 context.Context, arg1 accounts.Account, arg2 []byte, arg3 string) ([]byte, error) { 185 m.ctrl.T.Helper() 186 ret := m.ctrl.Call(m, "UnlockAndSign", arg0, arg1, arg2, arg3) 187 ret0, _ := ret[0].([]byte) 188 ret1, _ := ret[1].(error) 189 return ret0, ret1 190 } 191 192 // UnlockAndSign indicates an expected call of UnlockAndSign 193 func (mr *MockServiceMockRecorder) UnlockAndSign(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { 194 mr.mock.ctrl.T.Helper() 195 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnlockAndSign", reflect.TypeOf((*MockService)(nil).UnlockAndSign), arg0, arg1, arg2, arg3) 196 }