2018-05-03 10:36:56 +00:00
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
|
|
// Source: services/status/service.go
|
|
|
|
|
|
|
|
// Package status is a generated GoMock package.
|
|
|
|
package status
|
|
|
|
|
|
|
|
import (
|
|
|
|
ecdsa "crypto/ecdsa"
|
|
|
|
accounts "github.com/ethereum/go-ethereum/accounts"
|
|
|
|
keystore "github.com/ethereum/go-ethereum/accounts/keystore"
|
|
|
|
gomock "github.com/golang/mock/gomock"
|
2019-01-18 09:01:14 +00:00
|
|
|
account "github.com/status-im/status-go/account"
|
2018-05-03 10:36:56 +00:00
|
|
|
reflect "reflect"
|
|
|
|
)
|
|
|
|
|
2018-05-07 08:22:38 +00:00
|
|
|
// MockWhisperService is a mock of WhisperService interface
|
|
|
|
type MockWhisperService struct {
|
2018-05-03 10:36:56 +00:00
|
|
|
ctrl *gomock.Controller
|
2018-05-07 08:22:38 +00:00
|
|
|
recorder *MockWhisperServiceMockRecorder
|
2018-05-03 10:36:56 +00:00
|
|
|
}
|
|
|
|
|
2018-05-07 08:22:38 +00:00
|
|
|
// MockWhisperServiceMockRecorder is the mock recorder for MockWhisperService
|
|
|
|
type MockWhisperServiceMockRecorder struct {
|
|
|
|
mock *MockWhisperService
|
2018-05-03 10:36:56 +00:00
|
|
|
}
|
|
|
|
|
2018-05-07 08:22:38 +00:00
|
|
|
// NewMockWhisperService creates a new mock instance
|
|
|
|
func NewMockWhisperService(ctrl *gomock.Controller) *MockWhisperService {
|
|
|
|
mock := &MockWhisperService{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockWhisperServiceMockRecorder{mock}
|
2018-05-03 10:36:56 +00:00
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
2018-05-07 08:22:38 +00:00
|
|
|
func (m *MockWhisperService) EXPECT() *MockWhisperServiceMockRecorder {
|
2018-05-03 10:36:56 +00:00
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddKeyPair mocks base method
|
2018-05-07 08:22:38 +00:00
|
|
|
func (m *MockWhisperService) AddKeyPair(key *ecdsa.PrivateKey) (string, error) {
|
2018-12-10 12:53:27 +00:00
|
|
|
m.ctrl.T.Helper()
|
2018-05-03 10:36:56 +00:00
|
|
|
ret := m.ctrl.Call(m, "AddKeyPair", key)
|
|
|
|
ret0, _ := ret[0].(string)
|
|
|
|
ret1, _ := ret[1].(error)
|
|
|
|
return ret0, ret1
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddKeyPair indicates an expected call of AddKeyPair
|
2018-05-07 08:22:38 +00:00
|
|
|
func (mr *MockWhisperServiceMockRecorder) AddKeyPair(key interface{}) *gomock.Call {
|
2018-12-10 12:53:27 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-05-07 08:22:38 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddKeyPair", reflect.TypeOf((*MockWhisperService)(nil).AddKeyPair), key)
|
2018-05-03 10:36:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// MockAccountManager is a mock of AccountManager interface
|
|
|
|
type MockAccountManager struct {
|
|
|
|
ctrl *gomock.Controller
|
|
|
|
recorder *MockAccountManagerMockRecorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// MockAccountManagerMockRecorder is the mock recorder for MockAccountManager
|
|
|
|
type MockAccountManagerMockRecorder struct {
|
|
|
|
mock *MockAccountManager
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewMockAccountManager creates a new mock instance
|
|
|
|
func NewMockAccountManager(ctrl *gomock.Controller) *MockAccountManager {
|
|
|
|
mock := &MockAccountManager{ctrl: ctrl}
|
|
|
|
mock.recorder = &MockAccountManagerMockRecorder{mock}
|
|
|
|
return mock
|
|
|
|
}
|
|
|
|
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use
|
|
|
|
func (m *MockAccountManager) EXPECT() *MockAccountManagerMockRecorder {
|
|
|
|
return m.recorder
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddressToDecryptedAccount mocks base method
|
|
|
|
func (m *MockAccountManager) AddressToDecryptedAccount(arg0, arg1 string) (accounts.Account, *keystore.Key, error) {
|
2018-12-10 12:53:27 +00:00
|
|
|
m.ctrl.T.Helper()
|
2018-05-03 10:36:56 +00:00
|
|
|
ret := m.ctrl.Call(m, "AddressToDecryptedAccount", arg0, arg1)
|
|
|
|
ret0, _ := ret[0].(accounts.Account)
|
|
|
|
ret1, _ := ret[1].(*keystore.Key)
|
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
|
|
|
}
|
|
|
|
|
|
|
|
// AddressToDecryptedAccount indicates an expected call of AddressToDecryptedAccount
|
|
|
|
func (mr *MockAccountManagerMockRecorder) AddressToDecryptedAccount(arg0, arg1 interface{}) *gomock.Call {
|
2018-12-10 12:53:27 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-05-03 10:36:56 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddressToDecryptedAccount", reflect.TypeOf((*MockAccountManager)(nil).AddressToDecryptedAccount), arg0, arg1)
|
|
|
|
}
|
|
|
|
|
|
|
|
// SelectAccount mocks base method
|
2019-07-26 14:45:10 +00:00
|
|
|
func (m *MockAccountManager) SelectAccount(arg0 account.LoginParams) error {
|
2018-12-10 12:53:27 +00:00
|
|
|
m.ctrl.T.Helper()
|
2019-07-26 14:45:10 +00:00
|
|
|
ret := m.ctrl.Call(m, "SelectAccount", arg0)
|
2018-05-03 10:36:56 +00:00
|
|
|
ret0, _ := ret[0].(error)
|
|
|
|
return ret0
|
|
|
|
}
|
|
|
|
|
|
|
|
// SelectAccount indicates an expected call of SelectAccount
|
2019-07-26 14:45:10 +00:00
|
|
|
func (mr *MockAccountManagerMockRecorder) SelectAccount(arg0 interface{}) *gomock.Call {
|
2018-12-10 12:53:27 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2019-07-26 14:45:10 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelectAccount", reflect.TypeOf((*MockAccountManager)(nil).SelectAccount), arg0)
|
2018-05-03 10:36:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreateAccount mocks base method
|
2019-01-18 09:01:14 +00:00
|
|
|
func (m *MockAccountManager) CreateAccount(password string) (account.Info, string, error) {
|
2018-12-10 12:53:27 +00:00
|
|
|
m.ctrl.T.Helper()
|
2018-05-03 10:36:56 +00:00
|
|
|
ret := m.ctrl.Call(m, "CreateAccount", password)
|
2019-01-18 09:01:14 +00:00
|
|
|
ret0, _ := ret[0].(account.Info)
|
2018-05-03 10:36:56 +00:00
|
|
|
ret1, _ := ret[1].(string)
|
2019-01-18 09:01:14 +00:00
|
|
|
ret2, _ := ret[2].(error)
|
|
|
|
return ret0, ret1, ret2
|
2018-05-03 10:36:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CreateAccount indicates an expected call of CreateAccount
|
|
|
|
func (mr *MockAccountManagerMockRecorder) CreateAccount(password interface{}) *gomock.Call {
|
2018-12-10 12:53:27 +00:00
|
|
|
mr.mock.ctrl.T.Helper()
|
2018-05-03 10:36:56 +00:00
|
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CreateAccount", reflect.TypeOf((*MockAccountManager)(nil).CreateAccount), password)
|
|
|
|
}
|