mock_private.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. // Code generated by MockGen. DO NOT EDIT.
  2. // Source: github.com/ethereum/go-ethereum/private (interfaces: Identifiable,PrivateTransactionManager)
  3. // Package mock_private is a generated GoMock package.
  4. package mock_private
  5. import (
  6. reflect "reflect"
  7. common "github.com/ethereum/go-ethereum/common"
  8. engine "github.com/ethereum/go-ethereum/private/engine"
  9. gomock "github.com/golang/mock/gomock"
  10. )
  11. // MockIdentifiable is a mock of Identifiable interface.
  12. type MockIdentifiable struct {
  13. ctrl *gomock.Controller
  14. recorder *MockIdentifiableMockRecorder
  15. }
  16. // MockIdentifiableMockRecorder is the mock recorder for MockIdentifiable.
  17. type MockIdentifiableMockRecorder struct {
  18. mock *MockIdentifiable
  19. }
  20. // NewMockIdentifiable creates a new mock instance.
  21. func NewMockIdentifiable(ctrl *gomock.Controller) *MockIdentifiable {
  22. mock := &MockIdentifiable{ctrl: ctrl}
  23. mock.recorder = &MockIdentifiableMockRecorder{mock}
  24. return mock
  25. }
  26. // EXPECT returns an object that allows the caller to indicate expected use.
  27. func (m *MockIdentifiable) EXPECT() *MockIdentifiableMockRecorder {
  28. return m.recorder
  29. }
  30. // HasFeature mocks base method.
  31. func (m *MockIdentifiable) HasFeature(arg0 engine.PrivateTransactionManagerFeature) bool {
  32. m.ctrl.T.Helper()
  33. ret := m.ctrl.Call(m, "HasFeature", arg0)
  34. ret0, _ := ret[0].(bool)
  35. return ret0
  36. }
  37. // HasFeature indicates an expected call of HasFeature.
  38. func (mr *MockIdentifiableMockRecorder) HasFeature(arg0 interface{}) *gomock.Call {
  39. mr.mock.ctrl.T.Helper()
  40. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasFeature", reflect.TypeOf((*MockIdentifiable)(nil).HasFeature), arg0)
  41. }
  42. // Name mocks base method.
  43. func (m *MockIdentifiable) Name() string {
  44. m.ctrl.T.Helper()
  45. ret := m.ctrl.Call(m, "Name")
  46. ret0, _ := ret[0].(string)
  47. return ret0
  48. }
  49. // Name indicates an expected call of Name.
  50. func (mr *MockIdentifiableMockRecorder) Name() *gomock.Call {
  51. mr.mock.ctrl.T.Helper()
  52. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockIdentifiable)(nil).Name))
  53. }
  54. // MockPrivateTransactionManager is a mock of PrivateTransactionManager interface.
  55. type MockPrivateTransactionManager struct {
  56. ctrl *gomock.Controller
  57. recorder *MockPrivateTransactionManagerMockRecorder
  58. }
  59. // MockPrivateTransactionManagerMockRecorder is the mock recorder for MockPrivateTransactionManager.
  60. type MockPrivateTransactionManagerMockRecorder struct {
  61. mock *MockPrivateTransactionManager
  62. }
  63. // NewMockPrivateTransactionManager creates a new mock instance.
  64. func NewMockPrivateTransactionManager(ctrl *gomock.Controller) *MockPrivateTransactionManager {
  65. mock := &MockPrivateTransactionManager{ctrl: ctrl}
  66. mock.recorder = &MockPrivateTransactionManagerMockRecorder{mock}
  67. return mock
  68. }
  69. // EXPECT returns an object that allows the caller to indicate expected use.
  70. func (m *MockPrivateTransactionManager) EXPECT() *MockPrivateTransactionManagerMockRecorder {
  71. return m.recorder
  72. }
  73. // DecryptPayload mocks base method.
  74. func (m *MockPrivateTransactionManager) DecryptPayload(arg0 common.DecryptRequest) ([]byte, *engine.ExtraMetadata, error) {
  75. m.ctrl.T.Helper()
  76. ret := m.ctrl.Call(m, "DecryptPayload", arg0)
  77. ret0, _ := ret[0].([]byte)
  78. ret1, _ := ret[1].(*engine.ExtraMetadata)
  79. ret2, _ := ret[2].(error)
  80. return ret0, ret1, ret2
  81. }
  82. // DecryptPayload indicates an expected call of DecryptPayload.
  83. func (mr *MockPrivateTransactionManagerMockRecorder) DecryptPayload(arg0 interface{}) *gomock.Call {
  84. mr.mock.ctrl.T.Helper()
  85. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DecryptPayload", reflect.TypeOf((*MockPrivateTransactionManager)(nil).DecryptPayload), arg0)
  86. }
  87. // EncryptPayload mocks base method.
  88. func (m *MockPrivateTransactionManager) EncryptPayload(arg0 []byte, arg1 string, arg2 []string, arg3 *engine.ExtraMetadata) ([]byte, error) {
  89. m.ctrl.T.Helper()
  90. ret := m.ctrl.Call(m, "EncryptPayload", arg0, arg1, arg2, arg3)
  91. ret0, _ := ret[0].([]byte)
  92. ret1, _ := ret[1].(error)
  93. return ret0, ret1
  94. }
  95. // EncryptPayload indicates an expected call of EncryptPayload.
  96. func (mr *MockPrivateTransactionManagerMockRecorder) EncryptPayload(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
  97. mr.mock.ctrl.T.Helper()
  98. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EncryptPayload", reflect.TypeOf((*MockPrivateTransactionManager)(nil).EncryptPayload), arg0, arg1, arg2, arg3)
  99. }
  100. // GetMandatory mocks base method.
  101. func (m *MockPrivateTransactionManager) GetMandatory(arg0 common.EncryptedPayloadHash) ([]string, error) {
  102. m.ctrl.T.Helper()
  103. ret := m.ctrl.Call(m, "GetMandatory", arg0)
  104. ret0, _ := ret[0].([]string)
  105. ret1, _ := ret[1].(error)
  106. return ret0, ret1
  107. }
  108. // GetMandatory indicates an expected call of GetMandatory.
  109. func (mr *MockPrivateTransactionManagerMockRecorder) GetMandatory(arg0 interface{}) *gomock.Call {
  110. mr.mock.ctrl.T.Helper()
  111. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMandatory", reflect.TypeOf((*MockPrivateTransactionManager)(nil).GetMandatory), arg0)
  112. }
  113. // GetParticipants mocks base method.
  114. func (m *MockPrivateTransactionManager) GetParticipants(arg0 common.EncryptedPayloadHash) ([]string, error) {
  115. m.ctrl.T.Helper()
  116. ret := m.ctrl.Call(m, "GetParticipants", arg0)
  117. ret0, _ := ret[0].([]string)
  118. ret1, _ := ret[1].(error)
  119. return ret0, ret1
  120. }
  121. // GetParticipants indicates an expected call of GetParticipants.
  122. func (mr *MockPrivateTransactionManagerMockRecorder) GetParticipants(arg0 interface{}) *gomock.Call {
  123. mr.mock.ctrl.T.Helper()
  124. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetParticipants", reflect.TypeOf((*MockPrivateTransactionManager)(nil).GetParticipants), arg0)
  125. }
  126. // Groups mocks base method.
  127. func (m *MockPrivateTransactionManager) Groups() ([]engine.PrivacyGroup, error) {
  128. m.ctrl.T.Helper()
  129. ret := m.ctrl.Call(m, "Groups")
  130. ret0, _ := ret[0].([]engine.PrivacyGroup)
  131. ret1, _ := ret[1].(error)
  132. return ret0, ret1
  133. }
  134. // Groups indicates an expected call of Groups.
  135. func (mr *MockPrivateTransactionManagerMockRecorder) Groups() *gomock.Call {
  136. mr.mock.ctrl.T.Helper()
  137. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Groups", reflect.TypeOf((*MockPrivateTransactionManager)(nil).Groups))
  138. }
  139. // HasFeature mocks base method.
  140. func (m *MockPrivateTransactionManager) HasFeature(arg0 engine.PrivateTransactionManagerFeature) bool {
  141. m.ctrl.T.Helper()
  142. ret := m.ctrl.Call(m, "HasFeature", arg0)
  143. ret0, _ := ret[0].(bool)
  144. return ret0
  145. }
  146. // HasFeature indicates an expected call of HasFeature.
  147. func (mr *MockPrivateTransactionManagerMockRecorder) HasFeature(arg0 interface{}) *gomock.Call {
  148. mr.mock.ctrl.T.Helper()
  149. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HasFeature", reflect.TypeOf((*MockPrivateTransactionManager)(nil).HasFeature), arg0)
  150. }
  151. // IsSender mocks base method.
  152. func (m *MockPrivateTransactionManager) IsSender(arg0 common.EncryptedPayloadHash) (bool, error) {
  153. m.ctrl.T.Helper()
  154. ret := m.ctrl.Call(m, "IsSender", arg0)
  155. ret0, _ := ret[0].(bool)
  156. ret1, _ := ret[1].(error)
  157. return ret0, ret1
  158. }
  159. // IsSender indicates an expected call of IsSender.
  160. func (mr *MockPrivateTransactionManagerMockRecorder) IsSender(arg0 interface{}) *gomock.Call {
  161. mr.mock.ctrl.T.Helper()
  162. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsSender", reflect.TypeOf((*MockPrivateTransactionManager)(nil).IsSender), arg0)
  163. }
  164. // Name mocks base method.
  165. func (m *MockPrivateTransactionManager) Name() string {
  166. m.ctrl.T.Helper()
  167. ret := m.ctrl.Call(m, "Name")
  168. ret0, _ := ret[0].(string)
  169. return ret0
  170. }
  171. // Name indicates an expected call of Name.
  172. func (mr *MockPrivateTransactionManagerMockRecorder) Name() *gomock.Call {
  173. mr.mock.ctrl.T.Helper()
  174. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Name", reflect.TypeOf((*MockPrivateTransactionManager)(nil).Name))
  175. }
  176. // Receive mocks base method.
  177. func (m *MockPrivateTransactionManager) Receive(arg0 common.EncryptedPayloadHash) (string, []string, []byte, *engine.ExtraMetadata, error) {
  178. m.ctrl.T.Helper()
  179. ret := m.ctrl.Call(m, "Receive", arg0)
  180. ret0, _ := ret[0].(string)
  181. ret1, _ := ret[1].([]string)
  182. ret2, _ := ret[2].([]byte)
  183. ret3, _ := ret[3].(*engine.ExtraMetadata)
  184. ret4, _ := ret[4].(error)
  185. return ret0, ret1, ret2, ret3, ret4
  186. }
  187. // Receive indicates an expected call of Receive.
  188. func (mr *MockPrivateTransactionManagerMockRecorder) Receive(arg0 interface{}) *gomock.Call {
  189. mr.mock.ctrl.T.Helper()
  190. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Receive", reflect.TypeOf((*MockPrivateTransactionManager)(nil).Receive), arg0)
  191. }
  192. // ReceiveRaw mocks base method.
  193. func (m *MockPrivateTransactionManager) ReceiveRaw(arg0 common.EncryptedPayloadHash) ([]byte, string, *engine.ExtraMetadata, error) {
  194. m.ctrl.T.Helper()
  195. ret := m.ctrl.Call(m, "ReceiveRaw", arg0)
  196. ret0, _ := ret[0].([]byte)
  197. ret1, _ := ret[1].(string)
  198. ret2, _ := ret[2].(*engine.ExtraMetadata)
  199. ret3, _ := ret[3].(error)
  200. return ret0, ret1, ret2, ret3
  201. }
  202. // ReceiveRaw indicates an expected call of ReceiveRaw.
  203. func (mr *MockPrivateTransactionManagerMockRecorder) ReceiveRaw(arg0 interface{}) *gomock.Call {
  204. mr.mock.ctrl.T.Helper()
  205. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReceiveRaw", reflect.TypeOf((*MockPrivateTransactionManager)(nil).ReceiveRaw), arg0)
  206. }
  207. // Send mocks base method.
  208. func (m *MockPrivateTransactionManager) Send(arg0 []byte, arg1 string, arg2 []string, arg3 *engine.ExtraMetadata) (string, []string, common.EncryptedPayloadHash, error) {
  209. m.ctrl.T.Helper()
  210. ret := m.ctrl.Call(m, "Send", arg0, arg1, arg2, arg3)
  211. ret0, _ := ret[0].(string)
  212. ret1, _ := ret[1].([]string)
  213. ret2, _ := ret[2].(common.EncryptedPayloadHash)
  214. ret3, _ := ret[3].(error)
  215. return ret0, ret1, ret2, ret3
  216. }
  217. // Send indicates an expected call of Send.
  218. func (mr *MockPrivateTransactionManagerMockRecorder) Send(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
  219. mr.mock.ctrl.T.Helper()
  220. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Send", reflect.TypeOf((*MockPrivateTransactionManager)(nil).Send), arg0, arg1, arg2, arg3)
  221. }
  222. // SendSignedTx mocks base method.
  223. func (m *MockPrivateTransactionManager) SendSignedTx(arg0 common.EncryptedPayloadHash, arg1 []string, arg2 *engine.ExtraMetadata) (string, []string, []byte, error) {
  224. m.ctrl.T.Helper()
  225. ret := m.ctrl.Call(m, "SendSignedTx", arg0, arg1, arg2)
  226. ret0, _ := ret[0].(string)
  227. ret1, _ := ret[1].([]string)
  228. ret2, _ := ret[2].([]byte)
  229. ret3, _ := ret[3].(error)
  230. return ret0, ret1, ret2, ret3
  231. }
  232. // SendSignedTx indicates an expected call of SendSignedTx.
  233. func (mr *MockPrivateTransactionManagerMockRecorder) SendSignedTx(arg0, arg1, arg2 interface{}) *gomock.Call {
  234. mr.mock.ctrl.T.Helper()
  235. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendSignedTx", reflect.TypeOf((*MockPrivateTransactionManager)(nil).SendSignedTx), arg0, arg1, arg2)
  236. }
  237. // StoreRaw mocks base method.
  238. func (m *MockPrivateTransactionManager) StoreRaw(arg0 []byte, arg1 string) (common.EncryptedPayloadHash, error) {
  239. m.ctrl.T.Helper()
  240. ret := m.ctrl.Call(m, "StoreRaw", arg0, arg1)
  241. ret0, _ := ret[0].(common.EncryptedPayloadHash)
  242. ret1, _ := ret[1].(error)
  243. return ret0, ret1
  244. }
  245. // StoreRaw indicates an expected call of StoreRaw.
  246. func (mr *MockPrivateTransactionManagerMockRecorder) StoreRaw(arg0, arg1 interface{}) *gomock.Call {
  247. mr.mock.ctrl.T.Helper()
  248. return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StoreRaw", reflect.TypeOf((*MockPrivateTransactionManager)(nil).StoreRaw), arg0, arg1)
  249. }