vinokuma | f7605fc | 2023-06-02 18:08:01 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2022-present Open Networking Foundation |
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | * you may not use this file except in compliance with the License. |
| 5 | * You may obtain a copy of the License at |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | */ |
| 15 | |
| 16 | // Code generated by MockGen. DO NOT EDIT. |
| 17 | // Source: /home/vinod/go/src/gerrit.opencord.org/voltha-go-controller/internal/pkg/intf/appif.go |
| 18 | |
| 19 | // Package mock_intf is a generated GoMock package. |
| 20 | package mocks |
| 21 | |
| 22 | import ( |
| 23 | context "context" |
| 24 | reflect "reflect" |
| 25 | intf "voltha-go-controller/internal/pkg/intf" |
Akash Soni | ef452f1 | 2024-12-12 18:20:28 +0530 | [diff] [blame^] | 26 | "voltha-go-controller/internal/pkg/of" |
vinokuma | f7605fc | 2023-06-02 18:08:01 +0530 | [diff] [blame] | 27 | |
| 28 | gomock "github.com/golang/mock/gomock" |
| 29 | ) |
| 30 | |
| 31 | // MockApp is a mock of App interface. |
| 32 | type MockApp struct { |
| 33 | ctrl *gomock.Controller |
| 34 | recorder *MockAppMockRecorder |
| 35 | } |
| 36 | |
| 37 | // MockAppMockRecorder is the mock recorder for MockApp. |
| 38 | type MockAppMockRecorder struct { |
| 39 | mock *MockApp |
| 40 | } |
| 41 | |
| 42 | // NewMockApp creates a new mock instance. |
| 43 | func NewMockApp(ctrl *gomock.Controller) *MockApp { |
| 44 | mock := &MockApp{ctrl: ctrl} |
| 45 | mock.recorder = &MockAppMockRecorder{mock} |
| 46 | return mock |
| 47 | } |
| 48 | |
| 49 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 50 | func (m *MockApp) EXPECT() *MockAppMockRecorder { |
| 51 | return m.recorder |
| 52 | } |
| 53 | |
| 54 | // AddDevice mocks base method. |
| 55 | func (m *MockApp) AddDevice(arg0 context.Context, arg1, arg2, arg3 string) { |
| 56 | m.ctrl.T.Helper() |
| 57 | m.ctrl.Call(m, "AddDevice", arg0, arg1, arg2, arg3) |
| 58 | } |
| 59 | |
| 60 | // AddDevice indicates an expected call of AddDevice. |
| 61 | func (mr *MockAppMockRecorder) AddDevice(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { |
| 62 | mr.mock.ctrl.T.Helper() |
| 63 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AddDevice", reflect.TypeOf((*MockApp)(nil).AddDevice), arg0, arg1, arg2, arg3) |
| 64 | } |
| 65 | |
| 66 | // DelDevice mocks base method. |
| 67 | func (m *MockApp) DelDevice(arg0 context.Context, arg1 string) { |
| 68 | m.ctrl.T.Helper() |
| 69 | m.ctrl.Call(m, "DelDevice", arg0, arg1) |
| 70 | } |
| 71 | |
| 72 | // DelDevice indicates an expected call of DelDevice. |
| 73 | func (mr *MockAppMockRecorder) DelDevice(arg0, arg1 interface{}) *gomock.Call { |
| 74 | mr.mock.ctrl.T.Helper() |
| 75 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DelDevice", reflect.TypeOf((*MockApp)(nil).DelDevice), arg0, arg1) |
| 76 | } |
| 77 | |
| 78 | // DeviceDisableInd mocks base method. |
| 79 | func (m *MockApp) DeviceDisableInd(arg0 context.Context, arg1 string) { |
| 80 | m.ctrl.T.Helper() |
| 81 | m.ctrl.Call(m, "DeviceDisableInd", arg0, arg1) |
| 82 | } |
| 83 | |
| 84 | // DeviceDisableInd indicates an expected call of DeviceDisableInd. |
| 85 | func (mr *MockAppMockRecorder) DeviceDisableInd(arg0, arg1 interface{}) *gomock.Call { |
| 86 | mr.mock.ctrl.T.Helper() |
| 87 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeviceDisableInd", reflect.TypeOf((*MockApp)(nil).DeviceDisableInd), arg0, arg1) |
| 88 | } |
| 89 | |
| 90 | // DeviceDownInd mocks base method. |
| 91 | func (m *MockApp) DeviceDownInd(arg0 string) { |
| 92 | m.ctrl.T.Helper() |
| 93 | m.ctrl.Call(m, "DeviceDownInd", arg0) |
| 94 | } |
| 95 | |
| 96 | // DeviceDownInd indicates an expected call of DeviceDownInd. |
| 97 | func (mr *MockAppMockRecorder) DeviceDownInd(arg0 interface{}) *gomock.Call { |
| 98 | mr.mock.ctrl.T.Helper() |
| 99 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeviceDownInd", reflect.TypeOf((*MockApp)(nil).DeviceDownInd), arg0) |
| 100 | } |
| 101 | |
| 102 | // DeviceRebootInd mocks base method. |
| 103 | func (m *MockApp) DeviceRebootInd(arg0 context.Context, arg1, arg2, arg3 string) { |
| 104 | m.ctrl.T.Helper() |
| 105 | m.ctrl.Call(m, "DeviceRebootInd", arg0, arg1, arg2, arg3) |
| 106 | } |
| 107 | |
| 108 | // DeviceRebootInd indicates an expected call of DeviceRebootInd. |
| 109 | func (mr *MockAppMockRecorder) DeviceRebootInd(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { |
| 110 | mr.mock.ctrl.T.Helper() |
| 111 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeviceRebootInd", reflect.TypeOf((*MockApp)(nil).DeviceRebootInd), arg0, arg1, arg2, arg3) |
| 112 | } |
| 113 | |
| 114 | // DeviceUpInd mocks base method. |
| 115 | func (m *MockApp) DeviceUpInd(arg0 string) { |
| 116 | m.ctrl.T.Helper() |
| 117 | m.ctrl.Call(m, "DeviceUpInd", arg0) |
| 118 | } |
| 119 | |
| 120 | // DeviceUpInd indicates an expected call of DeviceUpInd. |
| 121 | func (mr *MockAppMockRecorder) DeviceUpInd(arg0 interface{}) *gomock.Call { |
| 122 | mr.mock.ctrl.T.Helper() |
| 123 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeviceUpInd", reflect.TypeOf((*MockApp)(nil).DeviceUpInd), arg0) |
| 124 | } |
| 125 | |
| 126 | // PacketInInd mocks base method. |
| 127 | func (m *MockApp) PacketInInd(arg0 context.Context, arg1, arg2 string, arg3 []byte) { |
| 128 | m.ctrl.T.Helper() |
| 129 | m.ctrl.Call(m, "PacketInInd", arg0, arg1, arg2, arg3) |
| 130 | } |
| 131 | |
| 132 | // PacketInInd indicates an expected call of PacketInInd. |
| 133 | func (mr *MockAppMockRecorder) PacketInInd(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { |
| 134 | mr.mock.ctrl.T.Helper() |
| 135 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PacketInInd", reflect.TypeOf((*MockApp)(nil).PacketInInd), arg0, arg1, arg2, arg3) |
| 136 | } |
| 137 | |
| 138 | // PortAddInd mocks base method. |
| 139 | func (m *MockApp) PortAddInd(arg0 context.Context, arg1 string, arg2 uint32, arg3 string) { |
| 140 | m.ctrl.T.Helper() |
| 141 | m.ctrl.Call(m, "PortAddInd", arg0, arg1, arg2, arg3) |
| 142 | } |
| 143 | |
| 144 | // PortAddInd indicates an expected call of PortAddInd. |
| 145 | func (mr *MockAppMockRecorder) PortAddInd(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { |
| 146 | mr.mock.ctrl.T.Helper() |
| 147 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PortAddInd", reflect.TypeOf((*MockApp)(nil).PortAddInd), arg0, arg1, arg2, arg3) |
| 148 | } |
| 149 | |
| 150 | // PortDelInd mocks base method. |
| 151 | func (m *MockApp) PortDelInd(arg0 context.Context, arg1, arg2 string) { |
| 152 | m.ctrl.T.Helper() |
| 153 | m.ctrl.Call(m, "PortDelInd", arg0, arg1, arg2) |
| 154 | } |
| 155 | |
| 156 | // PortDelInd indicates an expected call of PortDelInd. |
| 157 | func (mr *MockAppMockRecorder) PortDelInd(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 158 | mr.mock.ctrl.T.Helper() |
| 159 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PortDelInd", reflect.TypeOf((*MockApp)(nil).PortDelInd), arg0, arg1, arg2) |
| 160 | } |
| 161 | |
| 162 | // PortDownInd mocks base method. |
| 163 | func (m *MockApp) PortDownInd(arg0 context.Context, arg1, arg2 string) { |
| 164 | m.ctrl.T.Helper() |
| 165 | m.ctrl.Call(m, "PortDownInd", arg0, arg1, arg2) |
| 166 | } |
| 167 | |
| 168 | // PortDownInd indicates an expected call of PortDownInd. |
| 169 | func (mr *MockAppMockRecorder) PortDownInd(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 170 | mr.mock.ctrl.T.Helper() |
| 171 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PortDownInd", reflect.TypeOf((*MockApp)(nil).PortDownInd), arg0, arg1, arg2) |
| 172 | } |
| 173 | |
| 174 | // PortUpInd mocks base method. |
| 175 | func (m *MockApp) PortUpInd(arg0 context.Context, arg1, arg2 string) { |
| 176 | m.ctrl.T.Helper() |
| 177 | m.ctrl.Call(m, "PortUpInd", arg0, arg1, arg2) |
| 178 | } |
| 179 | |
| 180 | // PortUpInd indicates an expected call of PortUpInd. |
| 181 | func (mr *MockAppMockRecorder) PortUpInd(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 182 | mr.mock.ctrl.T.Helper() |
| 183 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PortUpInd", reflect.TypeOf((*MockApp)(nil).PortUpInd), arg0, arg1, arg2) |
| 184 | } |
| 185 | |
| 186 | // PortUpdateInd mocks base method. |
| 187 | func (m *MockApp) PortUpdateInd(arg0, arg1 string, arg2 uint32) { |
| 188 | m.ctrl.T.Helper() |
| 189 | m.ctrl.Call(m, "PortUpdateInd", arg0, arg1, arg2) |
| 190 | } |
| 191 | |
| 192 | // PortUpdateInd indicates an expected call of PortUpdateInd. |
| 193 | func (mr *MockAppMockRecorder) PortUpdateInd(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 194 | mr.mock.ctrl.T.Helper() |
| 195 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PortUpdateInd", reflect.TypeOf((*MockApp)(nil).PortUpdateInd), arg0, arg1, arg2) |
| 196 | } |
| 197 | |
| 198 | // ProcessFlowModResultIndication mocks base method. |
| 199 | func (m *MockApp) ProcessFlowModResultIndication(arg0 context.Context, arg1 intf.FlowStatus) { |
| 200 | m.ctrl.T.Helper() |
| 201 | m.ctrl.Call(m, "ProcessFlowModResultIndication", arg0, arg1) |
| 202 | } |
| 203 | |
| 204 | // ProcessFlowModResultIndication indicates an expected call of ProcessFlowModResultIndication. |
| 205 | func (mr *MockAppMockRecorder) ProcessFlowModResultIndication(arg0, arg1 interface{}) *gomock.Call { |
| 206 | mr.mock.ctrl.T.Helper() |
| 207 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProcessFlowModResultIndication", reflect.TypeOf((*MockApp)(nil).ProcessFlowModResultIndication), arg0, arg1) |
| 208 | } |
| 209 | |
Sridhar Ravindra | 3ec1423 | 2024-01-01 19:11:48 +0530 | [diff] [blame] | 210 | // IsFlowDelThresholdReached mocks base method. |
| 211 | func (m *MockApp) IsFlowDelThresholdReached(arg0 context.Context, arg1 string, arg2 string) bool { |
| 212 | m.ctrl.T.Helper() |
| 213 | m.ctrl.Call(m, "IsFlowDelThresholdReached", arg0, arg1, arg2) |
| 214 | return false |
| 215 | } |
| 216 | |
Akash Soni | ef452f1 | 2024-12-12 18:20:28 +0530 | [diff] [blame^] | 217 | // CheckAndDeactivateService mocks base method. |
| 218 | func (m *MockApp) CheckAndDeactivateService(arg0 context.Context, arg1 *of.VoltSubFlow, arg2 string, arg3 string) { |
| 219 | m.ctrl.T.Helper() |
| 220 | m.ctrl.Call(m, "CheckAndDeactivateService", arg0, arg1, arg2, arg3) |
| 221 | } |
| 222 | |
Sridhar Ravindra | 3ec1423 | 2024-01-01 19:11:48 +0530 | [diff] [blame] | 223 | // IsFlowDelThresholdReached indicates an expected call of IsFlowDelThresholdReached. |
| 224 | func (mr *MockAppMockRecorder) IsFlowDelThresholdReached(arg0, arg1, arg2 interface{}) *gomock.Call { |
| 225 | mr.mock.ctrl.T.Helper() |
| 226 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "IsFlowDelThresholdReached", reflect.TypeOf((*MockApp)(nil).IsFlowDelThresholdReached), arg0, arg1, arg2) |
| 227 | } |
Akash Soni | ef452f1 | 2024-12-12 18:20:28 +0530 | [diff] [blame^] | 228 | // CheckAndDeactivateService indicates an expected call of CheckAndDeactivateService. |
| 229 | func (mr *MockAppMockRecorder) CheckAndDeactivateService(arg0, arg1, arg2, arg3 interface{}) *gomock.Call { |
| 230 | mr.mock.ctrl.T.Helper() |
| 231 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CheckAndDeactivateService", reflect.TypeOf((*MockApp)(nil).CheckAndDeactivateService), arg0, arg1, arg2) |
| 232 | } |
vinokuma | f7605fc | 2023-06-02 18:08:01 +0530 | [diff] [blame] | 233 | // SetRebootFlag mocks base method. |
| 234 | func (m *MockApp) SetRebootFlag(arg0 bool) { |
| 235 | m.ctrl.T.Helper() |
| 236 | m.ctrl.Call(m, "SetRebootFlag", arg0) |
| 237 | } |
| 238 | |
| 239 | // SetRebootFlag indicates an expected call of SetRebootFlag. |
| 240 | func (mr *MockAppMockRecorder) SetRebootFlag(arg0 interface{}) *gomock.Call { |
| 241 | mr.mock.ctrl.T.Helper() |
| 242 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetRebootFlag", reflect.TypeOf((*MockApp)(nil).SetRebootFlag), arg0) |
| 243 | } |
| 244 | |
| 245 | // TriggerPendingMigrateServicesReq mocks base method. |
| 246 | func (m *MockApp) TriggerPendingMigrateServicesReq(arg0 context.Context, arg1 string) { |
| 247 | m.ctrl.T.Helper() |
| 248 | m.ctrl.Call(m, "TriggerPendingMigrateServicesReq", arg0, arg1) |
| 249 | } |
| 250 | |
| 251 | // TriggerPendingMigrateServicesReq indicates an expected call of TriggerPendingMigrateServicesReq. |
| 252 | func (mr *MockAppMockRecorder) TriggerPendingMigrateServicesReq(arg0, arg1 interface{}) *gomock.Call { |
| 253 | mr.mock.ctrl.T.Helper() |
| 254 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TriggerPendingMigrateServicesReq", reflect.TypeOf((*MockApp)(nil).TriggerPendingMigrateServicesReq), arg0, arg1) |
| 255 | } |
| 256 | |
| 257 | // TriggerPendingProfileDeleteReq mocks base method. |
| 258 | func (m *MockApp) TriggerPendingProfileDeleteReq(arg0 context.Context, arg1 string) { |
| 259 | m.ctrl.T.Helper() |
| 260 | m.ctrl.Call(m, "TriggerPendingProfileDeleteReq", arg0, arg1) |
| 261 | } |
| 262 | |
| 263 | // TriggerPendingProfileDeleteReq indicates an expected call of TriggerPendingProfileDeleteReq. |
| 264 | func (mr *MockAppMockRecorder) TriggerPendingProfileDeleteReq(arg0, arg1 interface{}) *gomock.Call { |
| 265 | mr.mock.ctrl.T.Helper() |
| 266 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TriggerPendingProfileDeleteReq", reflect.TypeOf((*MockApp)(nil).TriggerPendingProfileDeleteReq), arg0, arg1) |
| 267 | } |
| 268 | |
| 269 | // UpdateMvlanProfilesForDevice mocks base method. |
| 270 | func (m *MockApp) UpdateMvlanProfilesForDevice(arg0 context.Context, arg1 string) { |
| 271 | m.ctrl.T.Helper() |
| 272 | m.ctrl.Call(m, "UpdateMvlanProfilesForDevice", arg0, arg1) |
| 273 | } |
| 274 | |
| 275 | // UpdateMvlanProfilesForDevice indicates an expected call of UpdateMvlanProfilesForDevice. |
| 276 | func (mr *MockAppMockRecorder) UpdateMvlanProfilesForDevice(arg0, arg1 interface{}) *gomock.Call { |
| 277 | mr.mock.ctrl.T.Helper() |
| 278 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateMvlanProfilesForDevice", reflect.TypeOf((*MockApp)(nil).UpdateMvlanProfilesForDevice), arg0, arg1) |
| 279 | } |