blob: 4c8b7f734d09386e48ad9f75d165201f1a39e4d9 [file] [log] [blame]
vinokumaf7605fc2023-06-02 18:08:01 +05301/*
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.
20package mocks
21
22import (
23 context "context"
24 reflect "reflect"
25 intf "voltha-go-controller/internal/pkg/intf"
Akash Sonief452f12024-12-12 18:20:28 +053026 "voltha-go-controller/internal/pkg/of"
vinokumaf7605fc2023-06-02 18:08:01 +053027
28 gomock "github.com/golang/mock/gomock"
29)
30
31// MockApp is a mock of App interface.
32type MockApp struct {
33 ctrl *gomock.Controller
34 recorder *MockAppMockRecorder
35}
36
37// MockAppMockRecorder is the mock recorder for MockApp.
38type MockAppMockRecorder struct {
39 mock *MockApp
40}
41
42// NewMockApp creates a new mock instance.
43func 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.
50func (m *MockApp) EXPECT() *MockAppMockRecorder {
51 return m.recorder
52}
53
54// AddDevice mocks base method.
55func (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.
61func (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.
67func (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.
73func (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.
79func (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.
85func (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.
91func (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.
97func (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.
103func (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.
109func (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.
115func (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.
121func (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.
127func (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.
133func (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.
139func (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.
145func (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.
151func (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.
157func (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.
163func (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.
169func (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.
175func (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.
181func (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.
187func (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.
193func (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.
199func (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.
205func (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 Ravindra3ec14232024-01-01 19:11:48 +0530210// IsFlowDelThresholdReached mocks base method.
211func (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 Sonief452f12024-12-12 18:20:28 +0530217 // 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 Ravindra3ec14232024-01-01 19:11:48 +0530223// IsFlowDelThresholdReached indicates an expected call of IsFlowDelThresholdReached.
224func (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 Sonief452f12024-12-12 18:20:28 +0530228 // 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 }
vinokumaf7605fc2023-06-02 18:08:01 +0530233// SetRebootFlag mocks base method.
234func (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.
240func (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.
246func (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.
252func (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.
258func (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.
264func (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.
270func (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.
276func (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}