github.com/klaytn/klaytn@v1.12.1/node/cn/protocolmanager_mock_test.go (about) 1 // Code generated by MockGen. DO NOT EDIT. 2 // Source: github.com/klaytn/klaytn/node/cn (interfaces: BackendProtocolManager) 3 4 // Package cn is a generated GoMock package. 5 package cn 6 7 import ( 8 reflect "reflect" 9 10 gomock "github.com/golang/mock/gomock" 11 accounts "github.com/klaytn/klaytn/accounts" 12 types "github.com/klaytn/klaytn/blockchain/types" 13 common "github.com/klaytn/klaytn/common" 14 p2p "github.com/klaytn/klaytn/networks/p2p" 15 ) 16 17 // MockBackendProtocolManager is a mock of BackendProtocolManager interface. 18 type MockBackendProtocolManager struct { 19 ctrl *gomock.Controller 20 recorder *MockBackendProtocolManagerMockRecorder 21 } 22 23 // MockBackendProtocolManagerMockRecorder is the mock recorder for MockBackendProtocolManager. 24 type MockBackendProtocolManagerMockRecorder struct { 25 mock *MockBackendProtocolManager 26 } 27 28 // NewMockBackendProtocolManager creates a new mock instance. 29 func NewMockBackendProtocolManager(ctrl *gomock.Controller) *MockBackendProtocolManager { 30 mock := &MockBackendProtocolManager{ctrl: ctrl} 31 mock.recorder = &MockBackendProtocolManagerMockRecorder{mock} 32 return mock 33 } 34 35 // EXPECT returns an object that allows the caller to indicate expected use. 36 func (m *MockBackendProtocolManager) EXPECT() *MockBackendProtocolManagerMockRecorder { 37 return m.recorder 38 } 39 40 // Downloader mocks base method. 41 func (m *MockBackendProtocolManager) Downloader() ProtocolManagerDownloader { 42 m.ctrl.T.Helper() 43 ret := m.ctrl.Call(m, "Downloader") 44 ret0, _ := ret[0].(ProtocolManagerDownloader) 45 return ret0 46 } 47 48 // Downloader indicates an expected call of Downloader. 49 func (mr *MockBackendProtocolManagerMockRecorder) Downloader() *gomock.Call { 50 mr.mock.ctrl.T.Helper() 51 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Downloader", reflect.TypeOf((*MockBackendProtocolManager)(nil).Downloader)) 52 } 53 54 // GetSubProtocols mocks base method. 55 func (m *MockBackendProtocolManager) GetSubProtocols() []p2p.Protocol { 56 m.ctrl.T.Helper() 57 ret := m.ctrl.Call(m, "GetSubProtocols") 58 ret0, _ := ret[0].([]p2p.Protocol) 59 return ret0 60 } 61 62 // GetSubProtocols indicates an expected call of GetSubProtocols. 63 func (mr *MockBackendProtocolManagerMockRecorder) GetSubProtocols() *gomock.Call { 64 mr.mock.ctrl.T.Helper() 65 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSubProtocols", reflect.TypeOf((*MockBackendProtocolManager)(nil).GetSubProtocols)) 66 } 67 68 // NodeType mocks base method. 69 func (m *MockBackendProtocolManager) NodeType() common.ConnType { 70 m.ctrl.T.Helper() 71 ret := m.ctrl.Call(m, "NodeType") 72 ret0, _ := ret[0].(common.ConnType) 73 return ret0 74 } 75 76 // NodeType indicates an expected call of NodeType. 77 func (mr *MockBackendProtocolManagerMockRecorder) NodeType() *gomock.Call { 78 mr.mock.ctrl.T.Helper() 79 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NodeType", reflect.TypeOf((*MockBackendProtocolManager)(nil).NodeType)) 80 } 81 82 // ProtocolVersion mocks base method. 83 func (m *MockBackendProtocolManager) ProtocolVersion() int { 84 m.ctrl.T.Helper() 85 ret := m.ctrl.Call(m, "ProtocolVersion") 86 ret0, _ := ret[0].(int) 87 return ret0 88 } 89 90 // ProtocolVersion indicates an expected call of ProtocolVersion. 91 func (mr *MockBackendProtocolManagerMockRecorder) ProtocolVersion() *gomock.Call { 92 mr.mock.ctrl.T.Helper() 93 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProtocolVersion", reflect.TypeOf((*MockBackendProtocolManager)(nil).ProtocolVersion)) 94 } 95 96 // ReBroadcastTxs mocks base method. 97 func (m *MockBackendProtocolManager) ReBroadcastTxs(arg0 types.Transactions) { 98 m.ctrl.T.Helper() 99 m.ctrl.Call(m, "ReBroadcastTxs", arg0) 100 } 101 102 // ReBroadcastTxs indicates an expected call of ReBroadcastTxs. 103 func (mr *MockBackendProtocolManagerMockRecorder) ReBroadcastTxs(arg0 interface{}) *gomock.Call { 104 mr.mock.ctrl.T.Helper() 105 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReBroadcastTxs", reflect.TypeOf((*MockBackendProtocolManager)(nil).ReBroadcastTxs), arg0) 106 } 107 108 // SetAcceptTxs mocks base method. 109 func (m *MockBackendProtocolManager) SetAcceptTxs() { 110 m.ctrl.T.Helper() 111 m.ctrl.Call(m, "SetAcceptTxs") 112 } 113 114 // SetAcceptTxs indicates an expected call of SetAcceptTxs. 115 func (mr *MockBackendProtocolManagerMockRecorder) SetAcceptTxs() *gomock.Call { 116 mr.mock.ctrl.T.Helper() 117 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetAcceptTxs", reflect.TypeOf((*MockBackendProtocolManager)(nil).SetAcceptTxs)) 118 } 119 120 // SetRewardbase mocks base method. 121 func (m *MockBackendProtocolManager) SetRewardbase(arg0 common.Address) { 122 m.ctrl.T.Helper() 123 m.ctrl.Call(m, "SetRewardbase", arg0) 124 } 125 126 // SetRewardbase indicates an expected call of SetRewardbase. 127 func (mr *MockBackendProtocolManagerMockRecorder) SetRewardbase(arg0 interface{}) *gomock.Call { 128 mr.mock.ctrl.T.Helper() 129 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRewardbase", reflect.TypeOf((*MockBackendProtocolManager)(nil).SetRewardbase), arg0) 130 } 131 132 // SetRewardbaseWallet mocks base method. 133 func (m *MockBackendProtocolManager) SetRewardbaseWallet(arg0 accounts.Wallet) { 134 m.ctrl.T.Helper() 135 m.ctrl.Call(m, "SetRewardbaseWallet", arg0) 136 } 137 138 // SetRewardbaseWallet indicates an expected call of SetRewardbaseWallet. 139 func (mr *MockBackendProtocolManagerMockRecorder) SetRewardbaseWallet(arg0 interface{}) *gomock.Call { 140 mr.mock.ctrl.T.Helper() 141 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRewardbaseWallet", reflect.TypeOf((*MockBackendProtocolManager)(nil).SetRewardbaseWallet), arg0) 142 } 143 144 // SetTmpStop mocks base method. 145 func (m *MockBackendProtocolManager) SetSyncStop(arg0 bool) { 146 m.ctrl.T.Helper() 147 m.ctrl.Call(m, "SetSyncStop", arg0) 148 } 149 150 // SetTmpStop indicates an expected call of SetTmpStop. 151 func (mr *MockBackendProtocolManagerMockRecorder) SetTmpStop(arg0 interface{}) *gomock.Call { 152 mr.mock.ctrl.T.Helper() 153 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSyncStop", reflect.TypeOf((*MockBackendProtocolManager)(nil).SetSyncStop), arg0) 154 } 155 156 // SetWsEndPoint mocks base method. 157 func (m *MockBackendProtocolManager) SetWsEndPoint(arg0 string) { 158 m.ctrl.T.Helper() 159 m.ctrl.Call(m, "SetWsEndPoint", arg0) 160 } 161 162 // SetWsEndPoint indicates an expected call of SetWsEndPoint. 163 func (mr *MockBackendProtocolManagerMockRecorder) SetWsEndPoint(arg0 interface{}) *gomock.Call { 164 mr.mock.ctrl.T.Helper() 165 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetWsEndPoint", reflect.TypeOf((*MockBackendProtocolManager)(nil).SetWsEndPoint), arg0) 166 } 167 168 // Start mocks base method. 169 func (m *MockBackendProtocolManager) Start(arg0 int) { 170 m.ctrl.T.Helper() 171 m.ctrl.Call(m, "Start", arg0) 172 } 173 174 // Start indicates an expected call of Start. 175 func (mr *MockBackendProtocolManagerMockRecorder) Start(arg0 interface{}) *gomock.Call { 176 mr.mock.ctrl.T.Helper() 177 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockBackendProtocolManager)(nil).Start), arg0) 178 } 179 180 // Stop mocks base method. 181 func (m *MockBackendProtocolManager) Stop() { 182 m.ctrl.T.Helper() 183 m.ctrl.Call(m, "Stop") 184 } 185 186 // Stop indicates an expected call of Stop. 187 func (mr *MockBackendProtocolManagerMockRecorder) Stop() *gomock.Call { 188 mr.mock.ctrl.T.Helper() 189 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Stop", reflect.TypeOf((*MockBackendProtocolManager)(nil).Stop)) 190 }