khenaidoo | 2672188 | 2021-08-11 17:42:52 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2021-present Open Networking Foundation |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | // Code generated by MockGen. DO NOT EDIT. |
| 17 | // Source: ./adapter_services.pb.go |
| 18 | |
| 19 | package grpc |
| 20 | |
| 21 | import ( |
| 22 | context "context" |
| 23 | reflect "reflect" |
| 24 | |
| 25 | gomock "github.com/golang/mock/gomock" |
| 26 | empty "github.com/golang/protobuf/ptypes/empty" |
| 27 | common "github.com/opencord/voltha-protos/v5/go/common" |
| 28 | extension "github.com/opencord/voltha-protos/v5/go/extension" |
| 29 | inter_container "github.com/opencord/voltha-protos/v5/go/inter_container" |
| 30 | voltha "github.com/opencord/voltha-protos/v5/go/voltha" |
| 31 | grpc "google.golang.org/grpc" |
| 32 | ) |
| 33 | |
| 34 | // MockAdapterServiceClient is a mock of AdapterServiceClient interface. |
| 35 | type MockAdapterServiceClient struct { |
| 36 | ctrl *gomock.Controller |
| 37 | recorder *MockAdapterServiceClientMockRecorder |
| 38 | } |
| 39 | |
| 40 | // MockAdapterServiceClientMockRecorder is the mock recorder for MockAdapterServiceClient. |
| 41 | type MockAdapterServiceClientMockRecorder struct { |
| 42 | mock *MockAdapterServiceClient |
| 43 | } |
| 44 | |
| 45 | // NewMockAdapterServiceClient creates a new mock instance. |
| 46 | func NewMockAdapterServiceClient(ctrl *gomock.Controller) *MockAdapterServiceClient { |
| 47 | mock := &MockAdapterServiceClient{ctrl: ctrl} |
| 48 | mock.recorder = &MockAdapterServiceClientMockRecorder{mock} |
| 49 | return mock |
| 50 | } |
| 51 | |
| 52 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 53 | func (m *MockAdapterServiceClient) EXPECT() *MockAdapterServiceClientMockRecorder { |
| 54 | return m.recorder |
| 55 | } |
| 56 | |
| 57 | // AbortOnuImageUpgrade mocks base method. |
| 58 | func (m *MockAdapterServiceClient) AbortOnuImageUpgrade(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) { |
| 59 | m.ctrl.T.Helper() |
| 60 | varargs := []interface{}{ctx, in} |
| 61 | for _, a := range opts { |
| 62 | varargs = append(varargs, a) |
| 63 | } |
| 64 | ret := m.ctrl.Call(m, "AbortOnuImageUpgrade", varargs...) |
| 65 | ret0, _ := ret[0].(*voltha.DeviceImageResponse) |
| 66 | ret1, _ := ret[1].(error) |
| 67 | return ret0, ret1 |
| 68 | } |
| 69 | |
| 70 | // AbortOnuImageUpgrade indicates an expected call of AbortOnuImageUpgrade. |
| 71 | func (mr *MockAdapterServiceClientMockRecorder) AbortOnuImageUpgrade(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 72 | mr.mock.ctrl.T.Helper() |
| 73 | varargs := append([]interface{}{ctx, in}, opts...) |
| 74 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbortOnuImageUpgrade", reflect.TypeOf((*MockAdapterServiceClient)(nil).AbortOnuImageUpgrade), varargs...) |
| 75 | } |
| 76 | |
| 77 | // ActivateImageUpdate mocks base method. |
| 78 | func (m *MockAdapterServiceClient) ActivateImageUpdate(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| 79 | m.ctrl.T.Helper() |
| 80 | varargs := []interface{}{ctx, in} |
| 81 | for _, a := range opts { |
| 82 | varargs = append(varargs, a) |
| 83 | } |
| 84 | ret := m.ctrl.Call(m, "ActivateImageUpdate", varargs...) |
| 85 | ret0, _ := ret[0].(*voltha.ImageDownload) |
| 86 | ret1, _ := ret[1].(error) |
| 87 | return ret0, ret1 |
| 88 | } |
| 89 | |
| 90 | // ActivateImageUpdate indicates an expected call of ActivateImageUpdate. |
| 91 | func (mr *MockAdapterServiceClientMockRecorder) ActivateImageUpdate(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 92 | mr.mock.ctrl.T.Helper() |
| 93 | varargs := append([]interface{}{ctx, in}, opts...) |
| 94 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateImageUpdate", reflect.TypeOf((*MockAdapterServiceClient)(nil).ActivateImageUpdate), varargs...) |
| 95 | } |
| 96 | |
| 97 | // ActivateOnuImage mocks base method. |
| 98 | func (m *MockAdapterServiceClient) ActivateOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) { |
| 99 | m.ctrl.T.Helper() |
| 100 | varargs := []interface{}{ctx, in} |
| 101 | for _, a := range opts { |
| 102 | varargs = append(varargs, a) |
| 103 | } |
| 104 | ret := m.ctrl.Call(m, "ActivateOnuImage", varargs...) |
| 105 | ret0, _ := ret[0].(*voltha.DeviceImageResponse) |
| 106 | ret1, _ := ret[1].(error) |
| 107 | return ret0, ret1 |
| 108 | } |
| 109 | |
| 110 | // ActivateOnuImage indicates an expected call of ActivateOnuImage. |
| 111 | func (mr *MockAdapterServiceClientMockRecorder) ActivateOnuImage(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 112 | mr.mock.ctrl.T.Helper() |
| 113 | varargs := append([]interface{}{ctx, in}, opts...) |
| 114 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateOnuImage", reflect.TypeOf((*MockAdapterServiceClient)(nil).ActivateOnuImage), varargs...) |
| 115 | } |
| 116 | |
| 117 | // AdoptDevice mocks base method. |
| 118 | func (m *MockAdapterServiceClient) AdoptDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 119 | m.ctrl.T.Helper() |
| 120 | varargs := []interface{}{ctx, in} |
| 121 | for _, a := range opts { |
| 122 | varargs = append(varargs, a) |
| 123 | } |
| 124 | ret := m.ctrl.Call(m, "AdoptDevice", varargs...) |
| 125 | ret0, _ := ret[0].(*empty.Empty) |
| 126 | ret1, _ := ret[1].(error) |
| 127 | return ret0, ret1 |
| 128 | } |
| 129 | |
| 130 | // AdoptDevice indicates an expected call of AdoptDevice. |
| 131 | func (mr *MockAdapterServiceClientMockRecorder) AdoptDevice(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 132 | mr.mock.ctrl.T.Helper() |
| 133 | varargs := append([]interface{}{ctx, in}, opts...) |
| 134 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdoptDevice", reflect.TypeOf((*MockAdapterServiceClient)(nil).AdoptDevice), varargs...) |
| 135 | } |
| 136 | |
| 137 | // CancelImageDownload mocks base method. |
| 138 | func (m *MockAdapterServiceClient) CancelImageDownload(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| 139 | m.ctrl.T.Helper() |
| 140 | varargs := []interface{}{ctx, in} |
| 141 | for _, a := range opts { |
| 142 | varargs = append(varargs, a) |
| 143 | } |
| 144 | ret := m.ctrl.Call(m, "CancelImageDownload", varargs...) |
| 145 | ret0, _ := ret[0].(*voltha.ImageDownload) |
| 146 | ret1, _ := ret[1].(error) |
| 147 | return ret0, ret1 |
| 148 | } |
| 149 | |
| 150 | // CancelImageDownload indicates an expected call of CancelImageDownload. |
| 151 | func (mr *MockAdapterServiceClientMockRecorder) CancelImageDownload(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 152 | mr.mock.ctrl.T.Helper() |
| 153 | varargs := append([]interface{}{ctx, in}, opts...) |
| 154 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelImageDownload", reflect.TypeOf((*MockAdapterServiceClient)(nil).CancelImageDownload), varargs...) |
| 155 | } |
| 156 | |
| 157 | // ChildDeviceLost mocks base method. |
| 158 | func (m *MockAdapterServiceClient) ChildDeviceLost(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 159 | m.ctrl.T.Helper() |
| 160 | varargs := []interface{}{ctx, in} |
| 161 | for _, a := range opts { |
| 162 | varargs = append(varargs, a) |
| 163 | } |
| 164 | ret := m.ctrl.Call(m, "ChildDeviceLost", varargs...) |
| 165 | ret0, _ := ret[0].(*empty.Empty) |
| 166 | ret1, _ := ret[1].(error) |
| 167 | return ret0, ret1 |
| 168 | } |
| 169 | |
| 170 | // ChildDeviceLost indicates an expected call of ChildDeviceLost. |
| 171 | func (mr *MockAdapterServiceClientMockRecorder) ChildDeviceLost(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 172 | mr.mock.ctrl.T.Helper() |
| 173 | varargs := append([]interface{}{ctx, in}, opts...) |
| 174 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChildDeviceLost", reflect.TypeOf((*MockAdapterServiceClient)(nil).ChildDeviceLost), varargs...) |
| 175 | } |
| 176 | |
| 177 | // CommitOnuImage mocks base method. |
| 178 | func (m *MockAdapterServiceClient) CommitOnuImage(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) { |
| 179 | m.ctrl.T.Helper() |
| 180 | varargs := []interface{}{ctx, in} |
| 181 | for _, a := range opts { |
| 182 | varargs = append(varargs, a) |
| 183 | } |
| 184 | ret := m.ctrl.Call(m, "CommitOnuImage", varargs...) |
| 185 | ret0, _ := ret[0].(*voltha.DeviceImageResponse) |
| 186 | ret1, _ := ret[1].(error) |
| 187 | return ret0, ret1 |
| 188 | } |
| 189 | |
| 190 | // CommitOnuImage indicates an expected call of CommitOnuImage. |
| 191 | func (mr *MockAdapterServiceClientMockRecorder) CommitOnuImage(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 192 | mr.mock.ctrl.T.Helper() |
| 193 | varargs := append([]interface{}{ctx, in}, opts...) |
| 194 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitOnuImage", reflect.TypeOf((*MockAdapterServiceClient)(nil).CommitOnuImage), varargs...) |
| 195 | } |
| 196 | |
| 197 | // DeleteDevice mocks base method. |
| 198 | func (m *MockAdapterServiceClient) DeleteDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 199 | m.ctrl.T.Helper() |
| 200 | varargs := []interface{}{ctx, in} |
| 201 | for _, a := range opts { |
| 202 | varargs = append(varargs, a) |
| 203 | } |
| 204 | ret := m.ctrl.Call(m, "DeleteDevice", varargs...) |
| 205 | ret0, _ := ret[0].(*empty.Empty) |
| 206 | ret1, _ := ret[1].(error) |
| 207 | return ret0, ret1 |
| 208 | } |
| 209 | |
| 210 | // DeleteDevice indicates an expected call of DeleteDevice. |
| 211 | func (mr *MockAdapterServiceClientMockRecorder) DeleteDevice(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 212 | mr.mock.ctrl.T.Helper() |
| 213 | varargs := append([]interface{}{ctx, in}, opts...) |
| 214 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDevice", reflect.TypeOf((*MockAdapterServiceClient)(nil).DeleteDevice), varargs...) |
| 215 | } |
| 216 | |
| 217 | // DisableDevice mocks base method. |
| 218 | func (m *MockAdapterServiceClient) DisableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 219 | m.ctrl.T.Helper() |
| 220 | varargs := []interface{}{ctx, in} |
| 221 | for _, a := range opts { |
| 222 | varargs = append(varargs, a) |
| 223 | } |
| 224 | ret := m.ctrl.Call(m, "DisableDevice", varargs...) |
| 225 | ret0, _ := ret[0].(*empty.Empty) |
| 226 | ret1, _ := ret[1].(error) |
| 227 | return ret0, ret1 |
| 228 | } |
| 229 | |
| 230 | // DisableDevice indicates an expected call of DisableDevice. |
| 231 | func (mr *MockAdapterServiceClientMockRecorder) DisableDevice(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 232 | mr.mock.ctrl.T.Helper() |
| 233 | varargs := append([]interface{}{ctx, in}, opts...) |
| 234 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableDevice", reflect.TypeOf((*MockAdapterServiceClient)(nil).DisableDevice), varargs...) |
| 235 | } |
| 236 | |
| 237 | // DisablePort mocks base method. |
| 238 | func (m *MockAdapterServiceClient) DisablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 239 | m.ctrl.T.Helper() |
| 240 | varargs := []interface{}{ctx, in} |
| 241 | for _, a := range opts { |
| 242 | varargs = append(varargs, a) |
| 243 | } |
| 244 | ret := m.ctrl.Call(m, "DisablePort", varargs...) |
| 245 | ret0, _ := ret[0].(*empty.Empty) |
| 246 | ret1, _ := ret[1].(error) |
| 247 | return ret0, ret1 |
| 248 | } |
| 249 | |
| 250 | // DisablePort indicates an expected call of DisablePort. |
| 251 | func (mr *MockAdapterServiceClientMockRecorder) DisablePort(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 252 | mr.mock.ctrl.T.Helper() |
| 253 | varargs := append([]interface{}{ctx, in}, opts...) |
| 254 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisablePort", reflect.TypeOf((*MockAdapterServiceClient)(nil).DisablePort), varargs...) |
| 255 | } |
| 256 | |
| 257 | // DownloadImage mocks base method. |
| 258 | func (m *MockAdapterServiceClient) DownloadImage(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| 259 | m.ctrl.T.Helper() |
| 260 | varargs := []interface{}{ctx, in} |
| 261 | for _, a := range opts { |
| 262 | varargs = append(varargs, a) |
| 263 | } |
| 264 | ret := m.ctrl.Call(m, "DownloadImage", varargs...) |
| 265 | ret0, _ := ret[0].(*voltha.ImageDownload) |
| 266 | ret1, _ := ret[1].(error) |
| 267 | return ret0, ret1 |
| 268 | } |
| 269 | |
| 270 | // DownloadImage indicates an expected call of DownloadImage. |
| 271 | func (mr *MockAdapterServiceClientMockRecorder) DownloadImage(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 272 | mr.mock.ctrl.T.Helper() |
| 273 | varargs := append([]interface{}{ctx, in}, opts...) |
| 274 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadImage", reflect.TypeOf((*MockAdapterServiceClient)(nil).DownloadImage), varargs...) |
| 275 | } |
| 276 | |
| 277 | // DownloadOnuImage mocks base method. |
| 278 | func (m *MockAdapterServiceClient) DownloadOnuImage(ctx context.Context, in *voltha.DeviceImageDownloadRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) { |
| 279 | m.ctrl.T.Helper() |
| 280 | varargs := []interface{}{ctx, in} |
| 281 | for _, a := range opts { |
| 282 | varargs = append(varargs, a) |
| 283 | } |
| 284 | ret := m.ctrl.Call(m, "DownloadOnuImage", varargs...) |
| 285 | ret0, _ := ret[0].(*voltha.DeviceImageResponse) |
| 286 | ret1, _ := ret[1].(error) |
| 287 | return ret0, ret1 |
| 288 | } |
| 289 | |
| 290 | // DownloadOnuImage indicates an expected call of DownloadOnuImage. |
| 291 | func (mr *MockAdapterServiceClientMockRecorder) DownloadOnuImage(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 292 | mr.mock.ctrl.T.Helper() |
| 293 | varargs := append([]interface{}{ctx, in}, opts...) |
| 294 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadOnuImage", reflect.TypeOf((*MockAdapterServiceClient)(nil).DownloadOnuImage), varargs...) |
| 295 | } |
| 296 | |
| 297 | // EnablePort mocks base method. |
| 298 | func (m *MockAdapterServiceClient) EnablePort(ctx context.Context, in *voltha.Port, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 299 | m.ctrl.T.Helper() |
| 300 | varargs := []interface{}{ctx, in} |
| 301 | for _, a := range opts { |
| 302 | varargs = append(varargs, a) |
| 303 | } |
| 304 | ret := m.ctrl.Call(m, "EnablePort", varargs...) |
| 305 | ret0, _ := ret[0].(*empty.Empty) |
| 306 | ret1, _ := ret[1].(error) |
| 307 | return ret0, ret1 |
| 308 | } |
| 309 | |
| 310 | // EnablePort indicates an expected call of EnablePort. |
| 311 | func (mr *MockAdapterServiceClientMockRecorder) EnablePort(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 312 | mr.mock.ctrl.T.Helper() |
| 313 | varargs := append([]interface{}{ctx, in}, opts...) |
| 314 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnablePort", reflect.TypeOf((*MockAdapterServiceClient)(nil).EnablePort), varargs...) |
| 315 | } |
| 316 | |
| 317 | // GetExtValue mocks base method. |
| 318 | func (m *MockAdapterServiceClient) GetExtValue(ctx context.Context, in *inter_container.GetExtValueMessage, opts ...grpc.CallOption) (*common.ReturnValues, error) { |
| 319 | m.ctrl.T.Helper() |
| 320 | varargs := []interface{}{ctx, in} |
| 321 | for _, a := range opts { |
| 322 | varargs = append(varargs, a) |
| 323 | } |
| 324 | ret := m.ctrl.Call(m, "GetExtValue", varargs...) |
| 325 | ret0, _ := ret[0].(*common.ReturnValues) |
| 326 | ret1, _ := ret[1].(error) |
| 327 | return ret0, ret1 |
| 328 | } |
| 329 | |
| 330 | // GetExtValue indicates an expected call of GetExtValue. |
| 331 | func (mr *MockAdapterServiceClientMockRecorder) GetExtValue(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 332 | mr.mock.ctrl.T.Helper() |
| 333 | varargs := append([]interface{}{ctx, in}, opts...) |
| 334 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExtValue", reflect.TypeOf((*MockAdapterServiceClient)(nil).GetExtValue), varargs...) |
| 335 | } |
| 336 | |
| 337 | // GetHealthStatus mocks base method. |
| 338 | func (m *MockAdapterServiceClient) GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*voltha.HealthStatus, error) { |
| 339 | m.ctrl.T.Helper() |
| 340 | varargs := []interface{}{ctx, in} |
| 341 | for _, a := range opts { |
| 342 | varargs = append(varargs, a) |
| 343 | } |
| 344 | ret := m.ctrl.Call(m, "GetHealthStatus", varargs...) |
| 345 | ret0, _ := ret[0].(*voltha.HealthStatus) |
| 346 | ret1, _ := ret[1].(error) |
| 347 | return ret0, ret1 |
| 348 | } |
| 349 | |
| 350 | // GetHealthStatus indicates an expected call of GetHealthStatus. |
| 351 | func (mr *MockAdapterServiceClientMockRecorder) GetHealthStatus(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 352 | mr.mock.ctrl.T.Helper() |
| 353 | varargs := append([]interface{}{ctx, in}, opts...) |
| 354 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthStatus", reflect.TypeOf((*MockAdapterServiceClient)(nil).GetHealthStatus), varargs...) |
| 355 | } |
| 356 | |
| 357 | // GetImageDownloadStatus mocks base method. |
| 358 | func (m *MockAdapterServiceClient) GetImageDownloadStatus(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| 359 | m.ctrl.T.Helper() |
| 360 | varargs := []interface{}{ctx, in} |
| 361 | for _, a := range opts { |
| 362 | varargs = append(varargs, a) |
| 363 | } |
| 364 | ret := m.ctrl.Call(m, "GetImageDownloadStatus", varargs...) |
| 365 | ret0, _ := ret[0].(*voltha.ImageDownload) |
| 366 | ret1, _ := ret[1].(error) |
| 367 | return ret0, ret1 |
| 368 | } |
| 369 | |
| 370 | // GetImageDownloadStatus indicates an expected call of GetImageDownloadStatus. |
| 371 | func (mr *MockAdapterServiceClientMockRecorder) GetImageDownloadStatus(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 372 | mr.mock.ctrl.T.Helper() |
| 373 | varargs := append([]interface{}{ctx, in}, opts...) |
| 374 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetImageDownloadStatus", reflect.TypeOf((*MockAdapterServiceClient)(nil).GetImageDownloadStatus), varargs...) |
| 375 | } |
| 376 | |
| 377 | // GetOfpDeviceInfo mocks base method. |
| 378 | func (m *MockAdapterServiceClient) GetOfpDeviceInfo(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*inter_container.SwitchCapability, error) { |
| 379 | m.ctrl.T.Helper() |
| 380 | varargs := []interface{}{ctx, in} |
| 381 | for _, a := range opts { |
| 382 | varargs = append(varargs, a) |
| 383 | } |
| 384 | ret := m.ctrl.Call(m, "GetOfpDeviceInfo", varargs...) |
| 385 | ret0, _ := ret[0].(*inter_container.SwitchCapability) |
| 386 | ret1, _ := ret[1].(error) |
| 387 | return ret0, ret1 |
| 388 | } |
| 389 | |
| 390 | // GetOfpDeviceInfo indicates an expected call of GetOfpDeviceInfo. |
| 391 | func (mr *MockAdapterServiceClientMockRecorder) GetOfpDeviceInfo(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 392 | mr.mock.ctrl.T.Helper() |
| 393 | varargs := append([]interface{}{ctx, in}, opts...) |
| 394 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOfpDeviceInfo", reflect.TypeOf((*MockAdapterServiceClient)(nil).GetOfpDeviceInfo), varargs...) |
| 395 | } |
| 396 | |
| 397 | // GetOnuImageStatus mocks base method. |
| 398 | func (m *MockAdapterServiceClient) GetOnuImageStatus(ctx context.Context, in *voltha.DeviceImageRequest, opts ...grpc.CallOption) (*voltha.DeviceImageResponse, error) { |
| 399 | m.ctrl.T.Helper() |
| 400 | varargs := []interface{}{ctx, in} |
| 401 | for _, a := range opts { |
| 402 | varargs = append(varargs, a) |
| 403 | } |
| 404 | ret := m.ctrl.Call(m, "GetOnuImageStatus", varargs...) |
| 405 | ret0, _ := ret[0].(*voltha.DeviceImageResponse) |
| 406 | ret1, _ := ret[1].(error) |
| 407 | return ret0, ret1 |
| 408 | } |
| 409 | |
| 410 | // GetOnuImageStatus indicates an expected call of GetOnuImageStatus. |
| 411 | func (mr *MockAdapterServiceClientMockRecorder) GetOnuImageStatus(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 412 | mr.mock.ctrl.T.Helper() |
| 413 | varargs := append([]interface{}{ctx, in}, opts...) |
| 414 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOnuImageStatus", reflect.TypeOf((*MockAdapterServiceClient)(nil).GetOnuImageStatus), varargs...) |
| 415 | } |
| 416 | |
| 417 | // GetOnuImages mocks base method. |
| 418 | func (m *MockAdapterServiceClient) GetOnuImages(ctx context.Context, in *common.ID, opts ...grpc.CallOption) (*voltha.OnuImages, error) { |
| 419 | m.ctrl.T.Helper() |
| 420 | varargs := []interface{}{ctx, in} |
| 421 | for _, a := range opts { |
| 422 | varargs = append(varargs, a) |
| 423 | } |
| 424 | ret := m.ctrl.Call(m, "GetOnuImages", varargs...) |
| 425 | ret0, _ := ret[0].(*voltha.OnuImages) |
| 426 | ret1, _ := ret[1].(error) |
| 427 | return ret0, ret1 |
| 428 | } |
| 429 | |
| 430 | // GetOnuImages indicates an expected call of GetOnuImages. |
| 431 | func (mr *MockAdapterServiceClientMockRecorder) GetOnuImages(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 432 | mr.mock.ctrl.T.Helper() |
| 433 | varargs := append([]interface{}{ctx, in}, opts...) |
| 434 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOnuImages", reflect.TypeOf((*MockAdapterServiceClient)(nil).GetOnuImages), varargs...) |
| 435 | } |
| 436 | |
| 437 | // GetSingleValue mocks base method. |
| 438 | func (m *MockAdapterServiceClient) GetSingleValue(ctx context.Context, in *extension.SingleGetValueRequest, opts ...grpc.CallOption) (*extension.SingleGetValueResponse, error) { |
| 439 | m.ctrl.T.Helper() |
| 440 | varargs := []interface{}{ctx, in} |
| 441 | for _, a := range opts { |
| 442 | varargs = append(varargs, a) |
| 443 | } |
| 444 | ret := m.ctrl.Call(m, "GetSingleValue", varargs...) |
| 445 | ret0, _ := ret[0].(*extension.SingleGetValueResponse) |
| 446 | ret1, _ := ret[1].(error) |
| 447 | return ret0, ret1 |
| 448 | } |
| 449 | |
| 450 | // GetSingleValue indicates an expected call of GetSingleValue. |
| 451 | func (mr *MockAdapterServiceClientMockRecorder) GetSingleValue(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 452 | mr.mock.ctrl.T.Helper() |
| 453 | varargs := append([]interface{}{ctx, in}, opts...) |
| 454 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSingleValue", reflect.TypeOf((*MockAdapterServiceClient)(nil).GetSingleValue), varargs...) |
| 455 | } |
| 456 | |
| 457 | // ReEnableDevice mocks base method. |
| 458 | func (m *MockAdapterServiceClient) ReEnableDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 459 | m.ctrl.T.Helper() |
| 460 | varargs := []interface{}{ctx, in} |
| 461 | for _, a := range opts { |
| 462 | varargs = append(varargs, a) |
| 463 | } |
| 464 | ret := m.ctrl.Call(m, "ReEnableDevice", varargs...) |
| 465 | ret0, _ := ret[0].(*empty.Empty) |
| 466 | ret1, _ := ret[1].(error) |
| 467 | return ret0, ret1 |
| 468 | } |
| 469 | |
| 470 | // ReEnableDevice indicates an expected call of ReEnableDevice. |
| 471 | func (mr *MockAdapterServiceClientMockRecorder) ReEnableDevice(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 472 | mr.mock.ctrl.T.Helper() |
| 473 | varargs := append([]interface{}{ctx, in}, opts...) |
| 474 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReEnableDevice", reflect.TypeOf((*MockAdapterServiceClient)(nil).ReEnableDevice), varargs...) |
| 475 | } |
| 476 | |
| 477 | // RebootDevice mocks base method. |
| 478 | func (m *MockAdapterServiceClient) RebootDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 479 | m.ctrl.T.Helper() |
| 480 | varargs := []interface{}{ctx, in} |
| 481 | for _, a := range opts { |
| 482 | varargs = append(varargs, a) |
| 483 | } |
| 484 | ret := m.ctrl.Call(m, "RebootDevice", varargs...) |
| 485 | ret0, _ := ret[0].(*empty.Empty) |
| 486 | ret1, _ := ret[1].(error) |
| 487 | return ret0, ret1 |
| 488 | } |
| 489 | |
| 490 | // RebootDevice indicates an expected call of RebootDevice. |
| 491 | func (mr *MockAdapterServiceClientMockRecorder) RebootDevice(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 492 | mr.mock.ctrl.T.Helper() |
| 493 | varargs := append([]interface{}{ctx, in}, opts...) |
| 494 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RebootDevice", reflect.TypeOf((*MockAdapterServiceClient)(nil).RebootDevice), varargs...) |
| 495 | } |
| 496 | |
| 497 | // ReconcileDevice mocks base method. |
| 498 | func (m *MockAdapterServiceClient) ReconcileDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 499 | m.ctrl.T.Helper() |
| 500 | varargs := []interface{}{ctx, in} |
| 501 | for _, a := range opts { |
| 502 | varargs = append(varargs, a) |
| 503 | } |
| 504 | ret := m.ctrl.Call(m, "ReconcileDevice", varargs...) |
| 505 | ret0, _ := ret[0].(*empty.Empty) |
| 506 | ret1, _ := ret[1].(error) |
| 507 | return ret0, ret1 |
| 508 | } |
| 509 | |
| 510 | // ReconcileDevice indicates an expected call of ReconcileDevice. |
| 511 | func (mr *MockAdapterServiceClientMockRecorder) ReconcileDevice(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 512 | mr.mock.ctrl.T.Helper() |
| 513 | varargs := append([]interface{}{ctx, in}, opts...) |
| 514 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileDevice", reflect.TypeOf((*MockAdapterServiceClient)(nil).ReconcileDevice), varargs...) |
| 515 | } |
| 516 | |
| 517 | // RevertImageUpdate mocks base method. |
| 518 | func (m *MockAdapterServiceClient) RevertImageUpdate(ctx context.Context, in *inter_container.ImageDownloadMessage, opts ...grpc.CallOption) (*voltha.ImageDownload, error) { |
| 519 | m.ctrl.T.Helper() |
| 520 | varargs := []interface{}{ctx, in} |
| 521 | for _, a := range opts { |
| 522 | varargs = append(varargs, a) |
| 523 | } |
| 524 | ret := m.ctrl.Call(m, "RevertImageUpdate", varargs...) |
| 525 | ret0, _ := ret[0].(*voltha.ImageDownload) |
| 526 | ret1, _ := ret[1].(error) |
| 527 | return ret0, ret1 |
| 528 | } |
| 529 | |
| 530 | // RevertImageUpdate indicates an expected call of RevertImageUpdate. |
| 531 | func (mr *MockAdapterServiceClientMockRecorder) RevertImageUpdate(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 532 | mr.mock.ctrl.T.Helper() |
| 533 | varargs := append([]interface{}{ctx, in}, opts...) |
| 534 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevertImageUpdate", reflect.TypeOf((*MockAdapterServiceClient)(nil).RevertImageUpdate), varargs...) |
| 535 | } |
| 536 | |
| 537 | // SelfTestDevice mocks base method. |
| 538 | func (m *MockAdapterServiceClient) SelfTestDevice(ctx context.Context, in *voltha.Device, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 539 | m.ctrl.T.Helper() |
| 540 | varargs := []interface{}{ctx, in} |
| 541 | for _, a := range opts { |
| 542 | varargs = append(varargs, a) |
| 543 | } |
| 544 | ret := m.ctrl.Call(m, "SelfTestDevice", varargs...) |
| 545 | ret0, _ := ret[0].(*empty.Empty) |
| 546 | ret1, _ := ret[1].(error) |
| 547 | return ret0, ret1 |
| 548 | } |
| 549 | |
| 550 | // SelfTestDevice indicates an expected call of SelfTestDevice. |
| 551 | func (mr *MockAdapterServiceClientMockRecorder) SelfTestDevice(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 552 | mr.mock.ctrl.T.Helper() |
| 553 | varargs := append([]interface{}{ctx, in}, opts...) |
| 554 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfTestDevice", reflect.TypeOf((*MockAdapterServiceClient)(nil).SelfTestDevice), varargs...) |
| 555 | } |
| 556 | |
| 557 | // SendPacketOut mocks base method. |
| 558 | func (m *MockAdapterServiceClient) SendPacketOut(ctx context.Context, in *inter_container.PacketOut, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 559 | m.ctrl.T.Helper() |
| 560 | varargs := []interface{}{ctx, in} |
| 561 | for _, a := range opts { |
| 562 | varargs = append(varargs, a) |
| 563 | } |
| 564 | ret := m.ctrl.Call(m, "SendPacketOut", varargs...) |
| 565 | ret0, _ := ret[0].(*empty.Empty) |
| 566 | ret1, _ := ret[1].(error) |
| 567 | return ret0, ret1 |
| 568 | } |
| 569 | |
| 570 | // SendPacketOut indicates an expected call of SendPacketOut. |
| 571 | func (mr *MockAdapterServiceClientMockRecorder) SendPacketOut(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 572 | mr.mock.ctrl.T.Helper() |
| 573 | varargs := append([]interface{}{ctx, in}, opts...) |
| 574 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendPacketOut", reflect.TypeOf((*MockAdapterServiceClient)(nil).SendPacketOut), varargs...) |
| 575 | } |
| 576 | |
| 577 | // SetExtValue mocks base method. |
| 578 | func (m *MockAdapterServiceClient) SetExtValue(ctx context.Context, in *inter_container.SetExtValueMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 579 | m.ctrl.T.Helper() |
| 580 | varargs := []interface{}{ctx, in} |
| 581 | for _, a := range opts { |
| 582 | varargs = append(varargs, a) |
| 583 | } |
| 584 | ret := m.ctrl.Call(m, "SetExtValue", varargs...) |
| 585 | ret0, _ := ret[0].(*empty.Empty) |
| 586 | ret1, _ := ret[1].(error) |
| 587 | return ret0, ret1 |
| 588 | } |
| 589 | |
| 590 | // SetExtValue indicates an expected call of SetExtValue. |
| 591 | func (mr *MockAdapterServiceClientMockRecorder) SetExtValue(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 592 | mr.mock.ctrl.T.Helper() |
| 593 | varargs := append([]interface{}{ctx, in}, opts...) |
| 594 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetExtValue", reflect.TypeOf((*MockAdapterServiceClient)(nil).SetExtValue), varargs...) |
| 595 | } |
| 596 | |
| 597 | // SetSingleValue mocks base method. |
| 598 | func (m *MockAdapterServiceClient) SetSingleValue(ctx context.Context, in *extension.SingleSetValueRequest, opts ...grpc.CallOption) (*extension.SingleSetValueResponse, error) { |
| 599 | m.ctrl.T.Helper() |
| 600 | varargs := []interface{}{ctx, in} |
| 601 | for _, a := range opts { |
| 602 | varargs = append(varargs, a) |
| 603 | } |
| 604 | ret := m.ctrl.Call(m, "SetSingleValue", varargs...) |
| 605 | ret0, _ := ret[0].(*extension.SingleSetValueResponse) |
| 606 | ret1, _ := ret[1].(error) |
| 607 | return ret0, ret1 |
| 608 | } |
| 609 | |
| 610 | // SetSingleValue indicates an expected call of SetSingleValue. |
| 611 | func (mr *MockAdapterServiceClientMockRecorder) SetSingleValue(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 612 | mr.mock.ctrl.T.Helper() |
| 613 | varargs := append([]interface{}{ctx, in}, opts...) |
| 614 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSingleValue", reflect.TypeOf((*MockAdapterServiceClient)(nil).SetSingleValue), varargs...) |
| 615 | } |
| 616 | |
| 617 | // SimulateAlarm mocks base method. |
| 618 | func (m *MockAdapterServiceClient) SimulateAlarm(ctx context.Context, in *inter_container.SimulateAlarmMessage, opts ...grpc.CallOption) (*common.OperationResp, error) { |
| 619 | m.ctrl.T.Helper() |
| 620 | varargs := []interface{}{ctx, in} |
| 621 | for _, a := range opts { |
| 622 | varargs = append(varargs, a) |
| 623 | } |
| 624 | ret := m.ctrl.Call(m, "SimulateAlarm", varargs...) |
| 625 | ret0, _ := ret[0].(*common.OperationResp) |
| 626 | ret1, _ := ret[1].(error) |
| 627 | return ret0, ret1 |
| 628 | } |
| 629 | |
| 630 | // SimulateAlarm indicates an expected call of SimulateAlarm. |
| 631 | func (mr *MockAdapterServiceClientMockRecorder) SimulateAlarm(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 632 | mr.mock.ctrl.T.Helper() |
| 633 | varargs := append([]interface{}{ctx, in}, opts...) |
| 634 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulateAlarm", reflect.TypeOf((*MockAdapterServiceClient)(nil).SimulateAlarm), varargs...) |
| 635 | } |
| 636 | |
| 637 | // StartOmciTest mocks base method. |
| 638 | func (m *MockAdapterServiceClient) StartOmciTest(ctx context.Context, in *inter_container.OMCITest, opts ...grpc.CallOption) (*voltha.TestResponse, error) { |
| 639 | m.ctrl.T.Helper() |
| 640 | varargs := []interface{}{ctx, in} |
| 641 | for _, a := range opts { |
| 642 | varargs = append(varargs, a) |
| 643 | } |
| 644 | ret := m.ctrl.Call(m, "StartOmciTest", varargs...) |
| 645 | ret0, _ := ret[0].(*voltha.TestResponse) |
| 646 | ret1, _ := ret[1].(error) |
| 647 | return ret0, ret1 |
| 648 | } |
| 649 | |
| 650 | // StartOmciTest indicates an expected call of StartOmciTest. |
| 651 | func (mr *MockAdapterServiceClientMockRecorder) StartOmciTest(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 652 | mr.mock.ctrl.T.Helper() |
| 653 | varargs := append([]interface{}{ctx, in}, opts...) |
| 654 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartOmciTest", reflect.TypeOf((*MockAdapterServiceClient)(nil).StartOmciTest), varargs...) |
| 655 | } |
| 656 | |
| 657 | // SuppressEvent mocks base method. |
| 658 | func (m *MockAdapterServiceClient) SuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 659 | m.ctrl.T.Helper() |
| 660 | varargs := []interface{}{ctx, in} |
| 661 | for _, a := range opts { |
| 662 | varargs = append(varargs, a) |
| 663 | } |
| 664 | ret := m.ctrl.Call(m, "SuppressEvent", varargs...) |
| 665 | ret0, _ := ret[0].(*empty.Empty) |
| 666 | ret1, _ := ret[1].(error) |
| 667 | return ret0, ret1 |
| 668 | } |
| 669 | |
| 670 | // SuppressEvent indicates an expected call of SuppressEvent. |
| 671 | func (mr *MockAdapterServiceClientMockRecorder) SuppressEvent(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 672 | mr.mock.ctrl.T.Helper() |
| 673 | varargs := append([]interface{}{ctx, in}, opts...) |
| 674 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SuppressEvent", reflect.TypeOf((*MockAdapterServiceClient)(nil).SuppressEvent), varargs...) |
| 675 | } |
| 676 | |
| 677 | // UnSuppressEvent mocks base method. |
| 678 | func (m *MockAdapterServiceClient) UnSuppressEvent(ctx context.Context, in *voltha.EventFilter, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 679 | m.ctrl.T.Helper() |
| 680 | varargs := []interface{}{ctx, in} |
| 681 | for _, a := range opts { |
| 682 | varargs = append(varargs, a) |
| 683 | } |
| 684 | ret := m.ctrl.Call(m, "UnSuppressEvent", varargs...) |
| 685 | ret0, _ := ret[0].(*empty.Empty) |
| 686 | ret1, _ := ret[1].(error) |
| 687 | return ret0, ret1 |
| 688 | } |
| 689 | |
| 690 | // UnSuppressEvent indicates an expected call of UnSuppressEvent. |
| 691 | func (mr *MockAdapterServiceClientMockRecorder) UnSuppressEvent(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 692 | mr.mock.ctrl.T.Helper() |
| 693 | varargs := append([]interface{}{ctx, in}, opts...) |
| 694 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnSuppressEvent", reflect.TypeOf((*MockAdapterServiceClient)(nil).UnSuppressEvent), varargs...) |
| 695 | } |
| 696 | |
| 697 | // UpdateFlowsBulk mocks base method. |
| 698 | func (m *MockAdapterServiceClient) UpdateFlowsBulk(ctx context.Context, in *inter_container.BulkFlows, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 699 | m.ctrl.T.Helper() |
| 700 | varargs := []interface{}{ctx, in} |
| 701 | for _, a := range opts { |
| 702 | varargs = append(varargs, a) |
| 703 | } |
| 704 | ret := m.ctrl.Call(m, "UpdateFlowsBulk", varargs...) |
| 705 | ret0, _ := ret[0].(*empty.Empty) |
| 706 | ret1, _ := ret[1].(error) |
| 707 | return ret0, ret1 |
| 708 | } |
| 709 | |
| 710 | // UpdateFlowsBulk indicates an expected call of UpdateFlowsBulk. |
| 711 | func (mr *MockAdapterServiceClientMockRecorder) UpdateFlowsBulk(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 712 | mr.mock.ctrl.T.Helper() |
| 713 | varargs := append([]interface{}{ctx, in}, opts...) |
| 714 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFlowsBulk", reflect.TypeOf((*MockAdapterServiceClient)(nil).UpdateFlowsBulk), varargs...) |
| 715 | } |
| 716 | |
| 717 | // UpdateFlowsIncrementally mocks base method. |
| 718 | func (m *MockAdapterServiceClient) UpdateFlowsIncrementally(ctx context.Context, in *inter_container.IncrementalFlows, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 719 | m.ctrl.T.Helper() |
| 720 | varargs := []interface{}{ctx, in} |
| 721 | for _, a := range opts { |
| 722 | varargs = append(varargs, a) |
| 723 | } |
| 724 | ret := m.ctrl.Call(m, "UpdateFlowsIncrementally", varargs...) |
| 725 | ret0, _ := ret[0].(*empty.Empty) |
| 726 | ret1, _ := ret[1].(error) |
| 727 | return ret0, ret1 |
| 728 | } |
| 729 | |
| 730 | // UpdateFlowsIncrementally indicates an expected call of UpdateFlowsIncrementally. |
| 731 | func (mr *MockAdapterServiceClientMockRecorder) UpdateFlowsIncrementally(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 732 | mr.mock.ctrl.T.Helper() |
| 733 | varargs := append([]interface{}{ctx, in}, opts...) |
| 734 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFlowsIncrementally", reflect.TypeOf((*MockAdapterServiceClient)(nil).UpdateFlowsIncrementally), varargs...) |
| 735 | } |
| 736 | |
| 737 | // UpdatePmConfig mocks base method. |
| 738 | func (m *MockAdapterServiceClient) UpdatePmConfig(ctx context.Context, in *inter_container.PmConfigsInfo, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 739 | m.ctrl.T.Helper() |
| 740 | varargs := []interface{}{ctx, in} |
| 741 | for _, a := range opts { |
| 742 | varargs = append(varargs, a) |
| 743 | } |
| 744 | ret := m.ctrl.Call(m, "UpdatePmConfig", varargs...) |
| 745 | ret0, _ := ret[0].(*empty.Empty) |
| 746 | ret1, _ := ret[1].(error) |
| 747 | return ret0, ret1 |
| 748 | } |
| 749 | |
| 750 | // UpdatePmConfig indicates an expected call of UpdatePmConfig. |
| 751 | func (mr *MockAdapterServiceClientMockRecorder) UpdatePmConfig(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 752 | mr.mock.ctrl.T.Helper() |
| 753 | varargs := append([]interface{}{ctx, in}, opts...) |
| 754 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePmConfig", reflect.TypeOf((*MockAdapterServiceClient)(nil).UpdatePmConfig), varargs...) |
| 755 | } |
| 756 | |
| 757 | // MockAdapterServiceServer is a mock of AdapterServiceServer interface. |
| 758 | type MockAdapterServiceServer struct { |
| 759 | ctrl *gomock.Controller |
| 760 | recorder *MockAdapterServiceServerMockRecorder |
| 761 | } |
| 762 | |
| 763 | // MockAdapterServiceServerMockRecorder is the mock recorder for MockAdapterServiceServer. |
| 764 | type MockAdapterServiceServerMockRecorder struct { |
| 765 | mock *MockAdapterServiceServer |
| 766 | } |
| 767 | |
| 768 | // NewMockAdapterServiceServer creates a new mock instance. |
| 769 | func NewMockAdapterServiceServer(ctrl *gomock.Controller) *MockAdapterServiceServer { |
| 770 | mock := &MockAdapterServiceServer{ctrl: ctrl} |
| 771 | mock.recorder = &MockAdapterServiceServerMockRecorder{mock} |
| 772 | return mock |
| 773 | } |
| 774 | |
| 775 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 776 | func (m *MockAdapterServiceServer) EXPECT() *MockAdapterServiceServerMockRecorder { |
| 777 | return m.recorder |
| 778 | } |
| 779 | |
| 780 | // AbortOnuImageUpgrade mocks base method. |
| 781 | func (m *MockAdapterServiceServer) AbortOnuImageUpgrade(arg0 context.Context, arg1 *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) { |
| 782 | m.ctrl.T.Helper() |
| 783 | ret := m.ctrl.Call(m, "AbortOnuImageUpgrade", arg0, arg1) |
| 784 | ret0, _ := ret[0].(*voltha.DeviceImageResponse) |
| 785 | ret1, _ := ret[1].(error) |
| 786 | return ret0, ret1 |
| 787 | } |
| 788 | |
| 789 | // AbortOnuImageUpgrade indicates an expected call of AbortOnuImageUpgrade. |
| 790 | func (mr *MockAdapterServiceServerMockRecorder) AbortOnuImageUpgrade(arg0, arg1 interface{}) *gomock.Call { |
| 791 | mr.mock.ctrl.T.Helper() |
| 792 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AbortOnuImageUpgrade", reflect.TypeOf((*MockAdapterServiceServer)(nil).AbortOnuImageUpgrade), arg0, arg1) |
| 793 | } |
| 794 | |
| 795 | // ActivateImageUpdate mocks base method. |
| 796 | func (m *MockAdapterServiceServer) ActivateImageUpdate(arg0 context.Context, arg1 *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| 797 | m.ctrl.T.Helper() |
| 798 | ret := m.ctrl.Call(m, "ActivateImageUpdate", arg0, arg1) |
| 799 | ret0, _ := ret[0].(*voltha.ImageDownload) |
| 800 | ret1, _ := ret[1].(error) |
| 801 | return ret0, ret1 |
| 802 | } |
| 803 | |
| 804 | // ActivateImageUpdate indicates an expected call of ActivateImageUpdate. |
| 805 | func (mr *MockAdapterServiceServerMockRecorder) ActivateImageUpdate(arg0, arg1 interface{}) *gomock.Call { |
| 806 | mr.mock.ctrl.T.Helper() |
| 807 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateImageUpdate", reflect.TypeOf((*MockAdapterServiceServer)(nil).ActivateImageUpdate), arg0, arg1) |
| 808 | } |
| 809 | |
| 810 | // ActivateOnuImage mocks base method. |
| 811 | func (m *MockAdapterServiceServer) ActivateOnuImage(arg0 context.Context, arg1 *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) { |
| 812 | m.ctrl.T.Helper() |
| 813 | ret := m.ctrl.Call(m, "ActivateOnuImage", arg0, arg1) |
| 814 | ret0, _ := ret[0].(*voltha.DeviceImageResponse) |
| 815 | ret1, _ := ret[1].(error) |
| 816 | return ret0, ret1 |
| 817 | } |
| 818 | |
| 819 | // ActivateOnuImage indicates an expected call of ActivateOnuImage. |
| 820 | func (mr *MockAdapterServiceServerMockRecorder) ActivateOnuImage(arg0, arg1 interface{}) *gomock.Call { |
| 821 | mr.mock.ctrl.T.Helper() |
| 822 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ActivateOnuImage", reflect.TypeOf((*MockAdapterServiceServer)(nil).ActivateOnuImage), arg0, arg1) |
| 823 | } |
| 824 | |
| 825 | // AdoptDevice mocks base method. |
| 826 | func (m *MockAdapterServiceServer) AdoptDevice(arg0 context.Context, arg1 *voltha.Device) (*empty.Empty, error) { |
| 827 | m.ctrl.T.Helper() |
| 828 | ret := m.ctrl.Call(m, "AdoptDevice", arg0, arg1) |
| 829 | ret0, _ := ret[0].(*empty.Empty) |
| 830 | ret1, _ := ret[1].(error) |
| 831 | return ret0, ret1 |
| 832 | } |
| 833 | |
| 834 | // AdoptDevice indicates an expected call of AdoptDevice. |
| 835 | func (mr *MockAdapterServiceServerMockRecorder) AdoptDevice(arg0, arg1 interface{}) *gomock.Call { |
| 836 | mr.mock.ctrl.T.Helper() |
| 837 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "AdoptDevice", reflect.TypeOf((*MockAdapterServiceServer)(nil).AdoptDevice), arg0, arg1) |
| 838 | } |
| 839 | |
| 840 | // CancelImageDownload mocks base method. |
| 841 | func (m *MockAdapterServiceServer) CancelImageDownload(arg0 context.Context, arg1 *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| 842 | m.ctrl.T.Helper() |
| 843 | ret := m.ctrl.Call(m, "CancelImageDownload", arg0, arg1) |
| 844 | ret0, _ := ret[0].(*voltha.ImageDownload) |
| 845 | ret1, _ := ret[1].(error) |
| 846 | return ret0, ret1 |
| 847 | } |
| 848 | |
| 849 | // CancelImageDownload indicates an expected call of CancelImageDownload. |
| 850 | func (mr *MockAdapterServiceServerMockRecorder) CancelImageDownload(arg0, arg1 interface{}) *gomock.Call { |
| 851 | mr.mock.ctrl.T.Helper() |
| 852 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CancelImageDownload", reflect.TypeOf((*MockAdapterServiceServer)(nil).CancelImageDownload), arg0, arg1) |
| 853 | } |
| 854 | |
| 855 | // ChildDeviceLost mocks base method. |
| 856 | func (m *MockAdapterServiceServer) ChildDeviceLost(arg0 context.Context, arg1 *voltha.Device) (*empty.Empty, error) { |
| 857 | m.ctrl.T.Helper() |
| 858 | ret := m.ctrl.Call(m, "ChildDeviceLost", arg0, arg1) |
| 859 | ret0, _ := ret[0].(*empty.Empty) |
| 860 | ret1, _ := ret[1].(error) |
| 861 | return ret0, ret1 |
| 862 | } |
| 863 | |
| 864 | // ChildDeviceLost indicates an expected call of ChildDeviceLost. |
| 865 | func (mr *MockAdapterServiceServerMockRecorder) ChildDeviceLost(arg0, arg1 interface{}) *gomock.Call { |
| 866 | mr.mock.ctrl.T.Helper() |
| 867 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ChildDeviceLost", reflect.TypeOf((*MockAdapterServiceServer)(nil).ChildDeviceLost), arg0, arg1) |
| 868 | } |
| 869 | |
| 870 | // CommitOnuImage mocks base method. |
| 871 | func (m *MockAdapterServiceServer) CommitOnuImage(arg0 context.Context, arg1 *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) { |
| 872 | m.ctrl.T.Helper() |
| 873 | ret := m.ctrl.Call(m, "CommitOnuImage", arg0, arg1) |
| 874 | ret0, _ := ret[0].(*voltha.DeviceImageResponse) |
| 875 | ret1, _ := ret[1].(error) |
| 876 | return ret0, ret1 |
| 877 | } |
| 878 | |
| 879 | // CommitOnuImage indicates an expected call of CommitOnuImage. |
| 880 | func (mr *MockAdapterServiceServerMockRecorder) CommitOnuImage(arg0, arg1 interface{}) *gomock.Call { |
| 881 | mr.mock.ctrl.T.Helper() |
| 882 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "CommitOnuImage", reflect.TypeOf((*MockAdapterServiceServer)(nil).CommitOnuImage), arg0, arg1) |
| 883 | } |
| 884 | |
| 885 | // DeleteDevice mocks base method. |
| 886 | func (m *MockAdapterServiceServer) DeleteDevice(arg0 context.Context, arg1 *voltha.Device) (*empty.Empty, error) { |
| 887 | m.ctrl.T.Helper() |
| 888 | ret := m.ctrl.Call(m, "DeleteDevice", arg0, arg1) |
| 889 | ret0, _ := ret[0].(*empty.Empty) |
| 890 | ret1, _ := ret[1].(error) |
| 891 | return ret0, ret1 |
| 892 | } |
| 893 | |
| 894 | // DeleteDevice indicates an expected call of DeleteDevice. |
| 895 | func (mr *MockAdapterServiceServerMockRecorder) DeleteDevice(arg0, arg1 interface{}) *gomock.Call { |
| 896 | mr.mock.ctrl.T.Helper() |
| 897 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteDevice", reflect.TypeOf((*MockAdapterServiceServer)(nil).DeleteDevice), arg0, arg1) |
| 898 | } |
| 899 | |
| 900 | // DisableDevice mocks base method. |
| 901 | func (m *MockAdapterServiceServer) DisableDevice(arg0 context.Context, arg1 *voltha.Device) (*empty.Empty, error) { |
| 902 | m.ctrl.T.Helper() |
| 903 | ret := m.ctrl.Call(m, "DisableDevice", arg0, arg1) |
| 904 | ret0, _ := ret[0].(*empty.Empty) |
| 905 | ret1, _ := ret[1].(error) |
| 906 | return ret0, ret1 |
| 907 | } |
| 908 | |
| 909 | // DisableDevice indicates an expected call of DisableDevice. |
| 910 | func (mr *MockAdapterServiceServerMockRecorder) DisableDevice(arg0, arg1 interface{}) *gomock.Call { |
| 911 | mr.mock.ctrl.T.Helper() |
| 912 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisableDevice", reflect.TypeOf((*MockAdapterServiceServer)(nil).DisableDevice), arg0, arg1) |
| 913 | } |
| 914 | |
| 915 | // DisablePort mocks base method. |
| 916 | func (m *MockAdapterServiceServer) DisablePort(arg0 context.Context, arg1 *voltha.Port) (*empty.Empty, error) { |
| 917 | m.ctrl.T.Helper() |
| 918 | ret := m.ctrl.Call(m, "DisablePort", arg0, arg1) |
| 919 | ret0, _ := ret[0].(*empty.Empty) |
| 920 | ret1, _ := ret[1].(error) |
| 921 | return ret0, ret1 |
| 922 | } |
| 923 | |
| 924 | // DisablePort indicates an expected call of DisablePort. |
| 925 | func (mr *MockAdapterServiceServerMockRecorder) DisablePort(arg0, arg1 interface{}) *gomock.Call { |
| 926 | mr.mock.ctrl.T.Helper() |
| 927 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DisablePort", reflect.TypeOf((*MockAdapterServiceServer)(nil).DisablePort), arg0, arg1) |
| 928 | } |
| 929 | |
| 930 | // DownloadImage mocks base method. |
| 931 | func (m *MockAdapterServiceServer) DownloadImage(arg0 context.Context, arg1 *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| 932 | m.ctrl.T.Helper() |
| 933 | ret := m.ctrl.Call(m, "DownloadImage", arg0, arg1) |
| 934 | ret0, _ := ret[0].(*voltha.ImageDownload) |
| 935 | ret1, _ := ret[1].(error) |
| 936 | return ret0, ret1 |
| 937 | } |
| 938 | |
| 939 | // DownloadImage indicates an expected call of DownloadImage. |
| 940 | func (mr *MockAdapterServiceServerMockRecorder) DownloadImage(arg0, arg1 interface{}) *gomock.Call { |
| 941 | mr.mock.ctrl.T.Helper() |
| 942 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadImage", reflect.TypeOf((*MockAdapterServiceServer)(nil).DownloadImage), arg0, arg1) |
| 943 | } |
| 944 | |
| 945 | // DownloadOnuImage mocks base method. |
| 946 | func (m *MockAdapterServiceServer) DownloadOnuImage(arg0 context.Context, arg1 *voltha.DeviceImageDownloadRequest) (*voltha.DeviceImageResponse, error) { |
| 947 | m.ctrl.T.Helper() |
| 948 | ret := m.ctrl.Call(m, "DownloadOnuImage", arg0, arg1) |
| 949 | ret0, _ := ret[0].(*voltha.DeviceImageResponse) |
| 950 | ret1, _ := ret[1].(error) |
| 951 | return ret0, ret1 |
| 952 | } |
| 953 | |
| 954 | // DownloadOnuImage indicates an expected call of DownloadOnuImage. |
| 955 | func (mr *MockAdapterServiceServerMockRecorder) DownloadOnuImage(arg0, arg1 interface{}) *gomock.Call { |
| 956 | mr.mock.ctrl.T.Helper() |
| 957 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadOnuImage", reflect.TypeOf((*MockAdapterServiceServer)(nil).DownloadOnuImage), arg0, arg1) |
| 958 | } |
| 959 | |
| 960 | // EnablePort mocks base method. |
| 961 | func (m *MockAdapterServiceServer) EnablePort(arg0 context.Context, arg1 *voltha.Port) (*empty.Empty, error) { |
| 962 | m.ctrl.T.Helper() |
| 963 | ret := m.ctrl.Call(m, "EnablePort", arg0, arg1) |
| 964 | ret0, _ := ret[0].(*empty.Empty) |
| 965 | ret1, _ := ret[1].(error) |
| 966 | return ret0, ret1 |
| 967 | } |
| 968 | |
| 969 | // EnablePort indicates an expected call of EnablePort. |
| 970 | func (mr *MockAdapterServiceServerMockRecorder) EnablePort(arg0, arg1 interface{}) *gomock.Call { |
| 971 | mr.mock.ctrl.T.Helper() |
| 972 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "EnablePort", reflect.TypeOf((*MockAdapterServiceServer)(nil).EnablePort), arg0, arg1) |
| 973 | } |
| 974 | |
| 975 | // GetExtValue mocks base method. |
| 976 | func (m *MockAdapterServiceServer) GetExtValue(arg0 context.Context, arg1 *inter_container.GetExtValueMessage) (*common.ReturnValues, error) { |
| 977 | m.ctrl.T.Helper() |
| 978 | ret := m.ctrl.Call(m, "GetExtValue", arg0, arg1) |
| 979 | ret0, _ := ret[0].(*common.ReturnValues) |
| 980 | ret1, _ := ret[1].(error) |
| 981 | return ret0, ret1 |
| 982 | } |
| 983 | |
| 984 | // GetExtValue indicates an expected call of GetExtValue. |
| 985 | func (mr *MockAdapterServiceServerMockRecorder) GetExtValue(arg0, arg1 interface{}) *gomock.Call { |
| 986 | mr.mock.ctrl.T.Helper() |
| 987 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetExtValue", reflect.TypeOf((*MockAdapterServiceServer)(nil).GetExtValue), arg0, arg1) |
| 988 | } |
| 989 | |
| 990 | // GetHealthStatus mocks base method. |
| 991 | func (m *MockAdapterServiceServer) GetHealthStatus(arg0 context.Context, arg1 *empty.Empty) (*voltha.HealthStatus, error) { |
| 992 | m.ctrl.T.Helper() |
| 993 | ret := m.ctrl.Call(m, "GetHealthStatus", arg0, arg1) |
| 994 | ret0, _ := ret[0].(*voltha.HealthStatus) |
| 995 | ret1, _ := ret[1].(error) |
| 996 | return ret0, ret1 |
| 997 | } |
| 998 | |
| 999 | // GetHealthStatus indicates an expected call of GetHealthStatus. |
| 1000 | func (mr *MockAdapterServiceServerMockRecorder) GetHealthStatus(arg0, arg1 interface{}) *gomock.Call { |
| 1001 | mr.mock.ctrl.T.Helper() |
| 1002 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthStatus", reflect.TypeOf((*MockAdapterServiceServer)(nil).GetHealthStatus), arg0, arg1) |
| 1003 | } |
| 1004 | |
| 1005 | // GetImageDownloadStatus mocks base method. |
| 1006 | func (m *MockAdapterServiceServer) GetImageDownloadStatus(arg0 context.Context, arg1 *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| 1007 | m.ctrl.T.Helper() |
| 1008 | ret := m.ctrl.Call(m, "GetImageDownloadStatus", arg0, arg1) |
| 1009 | ret0, _ := ret[0].(*voltha.ImageDownload) |
| 1010 | ret1, _ := ret[1].(error) |
| 1011 | return ret0, ret1 |
| 1012 | } |
| 1013 | |
| 1014 | // GetImageDownloadStatus indicates an expected call of GetImageDownloadStatus. |
| 1015 | func (mr *MockAdapterServiceServerMockRecorder) GetImageDownloadStatus(arg0, arg1 interface{}) *gomock.Call { |
| 1016 | mr.mock.ctrl.T.Helper() |
| 1017 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetImageDownloadStatus", reflect.TypeOf((*MockAdapterServiceServer)(nil).GetImageDownloadStatus), arg0, arg1) |
| 1018 | } |
| 1019 | |
| 1020 | // GetOfpDeviceInfo mocks base method. |
| 1021 | func (m *MockAdapterServiceServer) GetOfpDeviceInfo(arg0 context.Context, arg1 *voltha.Device) (*inter_container.SwitchCapability, error) { |
| 1022 | m.ctrl.T.Helper() |
| 1023 | ret := m.ctrl.Call(m, "GetOfpDeviceInfo", arg0, arg1) |
| 1024 | ret0, _ := ret[0].(*inter_container.SwitchCapability) |
| 1025 | ret1, _ := ret[1].(error) |
| 1026 | return ret0, ret1 |
| 1027 | } |
| 1028 | |
| 1029 | // GetOfpDeviceInfo indicates an expected call of GetOfpDeviceInfo. |
| 1030 | func (mr *MockAdapterServiceServerMockRecorder) GetOfpDeviceInfo(arg0, arg1 interface{}) *gomock.Call { |
| 1031 | mr.mock.ctrl.T.Helper() |
| 1032 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOfpDeviceInfo", reflect.TypeOf((*MockAdapterServiceServer)(nil).GetOfpDeviceInfo), arg0, arg1) |
| 1033 | } |
| 1034 | |
| 1035 | // GetOnuImageStatus mocks base method. |
| 1036 | func (m *MockAdapterServiceServer) GetOnuImageStatus(arg0 context.Context, arg1 *voltha.DeviceImageRequest) (*voltha.DeviceImageResponse, error) { |
| 1037 | m.ctrl.T.Helper() |
| 1038 | ret := m.ctrl.Call(m, "GetOnuImageStatus", arg0, arg1) |
| 1039 | ret0, _ := ret[0].(*voltha.DeviceImageResponse) |
| 1040 | ret1, _ := ret[1].(error) |
| 1041 | return ret0, ret1 |
| 1042 | } |
| 1043 | |
| 1044 | // GetOnuImageStatus indicates an expected call of GetOnuImageStatus. |
| 1045 | func (mr *MockAdapterServiceServerMockRecorder) GetOnuImageStatus(arg0, arg1 interface{}) *gomock.Call { |
| 1046 | mr.mock.ctrl.T.Helper() |
| 1047 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOnuImageStatus", reflect.TypeOf((*MockAdapterServiceServer)(nil).GetOnuImageStatus), arg0, arg1) |
| 1048 | } |
| 1049 | |
| 1050 | // GetOnuImages mocks base method. |
| 1051 | func (m *MockAdapterServiceServer) GetOnuImages(arg0 context.Context, arg1 *common.ID) (*voltha.OnuImages, error) { |
| 1052 | m.ctrl.T.Helper() |
| 1053 | ret := m.ctrl.Call(m, "GetOnuImages", arg0, arg1) |
| 1054 | ret0, _ := ret[0].(*voltha.OnuImages) |
| 1055 | ret1, _ := ret[1].(error) |
| 1056 | return ret0, ret1 |
| 1057 | } |
| 1058 | |
| 1059 | // GetOnuImages indicates an expected call of GetOnuImages. |
| 1060 | func (mr *MockAdapterServiceServerMockRecorder) GetOnuImages(arg0, arg1 interface{}) *gomock.Call { |
| 1061 | mr.mock.ctrl.T.Helper() |
| 1062 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOnuImages", reflect.TypeOf((*MockAdapterServiceServer)(nil).GetOnuImages), arg0, arg1) |
| 1063 | } |
| 1064 | |
| 1065 | // GetSingleValue mocks base method. |
| 1066 | func (m *MockAdapterServiceServer) GetSingleValue(arg0 context.Context, arg1 *extension.SingleGetValueRequest) (*extension.SingleGetValueResponse, error) { |
| 1067 | m.ctrl.T.Helper() |
| 1068 | ret := m.ctrl.Call(m, "GetSingleValue", arg0, arg1) |
| 1069 | ret0, _ := ret[0].(*extension.SingleGetValueResponse) |
| 1070 | ret1, _ := ret[1].(error) |
| 1071 | return ret0, ret1 |
| 1072 | } |
| 1073 | |
| 1074 | // GetSingleValue indicates an expected call of GetSingleValue. |
| 1075 | func (mr *MockAdapterServiceServerMockRecorder) GetSingleValue(arg0, arg1 interface{}) *gomock.Call { |
| 1076 | mr.mock.ctrl.T.Helper() |
| 1077 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetSingleValue", reflect.TypeOf((*MockAdapterServiceServer)(nil).GetSingleValue), arg0, arg1) |
| 1078 | } |
| 1079 | |
| 1080 | // ReEnableDevice mocks base method. |
| 1081 | func (m *MockAdapterServiceServer) ReEnableDevice(arg0 context.Context, arg1 *voltha.Device) (*empty.Empty, error) { |
| 1082 | m.ctrl.T.Helper() |
| 1083 | ret := m.ctrl.Call(m, "ReEnableDevice", arg0, arg1) |
| 1084 | ret0, _ := ret[0].(*empty.Empty) |
| 1085 | ret1, _ := ret[1].(error) |
| 1086 | return ret0, ret1 |
| 1087 | } |
| 1088 | |
| 1089 | // ReEnableDevice indicates an expected call of ReEnableDevice. |
| 1090 | func (mr *MockAdapterServiceServerMockRecorder) ReEnableDevice(arg0, arg1 interface{}) *gomock.Call { |
| 1091 | mr.mock.ctrl.T.Helper() |
| 1092 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReEnableDevice", reflect.TypeOf((*MockAdapterServiceServer)(nil).ReEnableDevice), arg0, arg1) |
| 1093 | } |
| 1094 | |
| 1095 | // RebootDevice mocks base method. |
| 1096 | func (m *MockAdapterServiceServer) RebootDevice(arg0 context.Context, arg1 *voltha.Device) (*empty.Empty, error) { |
| 1097 | m.ctrl.T.Helper() |
| 1098 | ret := m.ctrl.Call(m, "RebootDevice", arg0, arg1) |
| 1099 | ret0, _ := ret[0].(*empty.Empty) |
| 1100 | ret1, _ := ret[1].(error) |
| 1101 | return ret0, ret1 |
| 1102 | } |
| 1103 | |
| 1104 | // RebootDevice indicates an expected call of RebootDevice. |
| 1105 | func (mr *MockAdapterServiceServerMockRecorder) RebootDevice(arg0, arg1 interface{}) *gomock.Call { |
| 1106 | mr.mock.ctrl.T.Helper() |
| 1107 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RebootDevice", reflect.TypeOf((*MockAdapterServiceServer)(nil).RebootDevice), arg0, arg1) |
| 1108 | } |
| 1109 | |
| 1110 | // ReconcileDevice mocks base method. |
| 1111 | func (m *MockAdapterServiceServer) ReconcileDevice(arg0 context.Context, arg1 *voltha.Device) (*empty.Empty, error) { |
| 1112 | m.ctrl.T.Helper() |
| 1113 | ret := m.ctrl.Call(m, "ReconcileDevice", arg0, arg1) |
| 1114 | ret0, _ := ret[0].(*empty.Empty) |
| 1115 | ret1, _ := ret[1].(error) |
| 1116 | return ret0, ret1 |
| 1117 | } |
| 1118 | |
| 1119 | // ReconcileDevice indicates an expected call of ReconcileDevice. |
| 1120 | func (mr *MockAdapterServiceServerMockRecorder) ReconcileDevice(arg0, arg1 interface{}) *gomock.Call { |
| 1121 | mr.mock.ctrl.T.Helper() |
| 1122 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReconcileDevice", reflect.TypeOf((*MockAdapterServiceServer)(nil).ReconcileDevice), arg0, arg1) |
| 1123 | } |
| 1124 | |
| 1125 | // RevertImageUpdate mocks base method. |
| 1126 | func (m *MockAdapterServiceServer) RevertImageUpdate(arg0 context.Context, arg1 *inter_container.ImageDownloadMessage) (*voltha.ImageDownload, error) { |
| 1127 | m.ctrl.T.Helper() |
| 1128 | ret := m.ctrl.Call(m, "RevertImageUpdate", arg0, arg1) |
| 1129 | ret0, _ := ret[0].(*voltha.ImageDownload) |
| 1130 | ret1, _ := ret[1].(error) |
| 1131 | return ret0, ret1 |
| 1132 | } |
| 1133 | |
| 1134 | // RevertImageUpdate indicates an expected call of RevertImageUpdate. |
| 1135 | func (mr *MockAdapterServiceServerMockRecorder) RevertImageUpdate(arg0, arg1 interface{}) *gomock.Call { |
| 1136 | mr.mock.ctrl.T.Helper() |
| 1137 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RevertImageUpdate", reflect.TypeOf((*MockAdapterServiceServer)(nil).RevertImageUpdate), arg0, arg1) |
| 1138 | } |
| 1139 | |
| 1140 | // SelfTestDevice mocks base method. |
| 1141 | func (m *MockAdapterServiceServer) SelfTestDevice(arg0 context.Context, arg1 *voltha.Device) (*empty.Empty, error) { |
| 1142 | m.ctrl.T.Helper() |
| 1143 | ret := m.ctrl.Call(m, "SelfTestDevice", arg0, arg1) |
| 1144 | ret0, _ := ret[0].(*empty.Empty) |
| 1145 | ret1, _ := ret[1].(error) |
| 1146 | return ret0, ret1 |
| 1147 | } |
| 1148 | |
| 1149 | // SelfTestDevice indicates an expected call of SelfTestDevice. |
| 1150 | func (mr *MockAdapterServiceServerMockRecorder) SelfTestDevice(arg0, arg1 interface{}) *gomock.Call { |
| 1151 | mr.mock.ctrl.T.Helper() |
| 1152 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SelfTestDevice", reflect.TypeOf((*MockAdapterServiceServer)(nil).SelfTestDevice), arg0, arg1) |
| 1153 | } |
| 1154 | |
| 1155 | // SendPacketOut mocks base method. |
| 1156 | func (m *MockAdapterServiceServer) SendPacketOut(arg0 context.Context, arg1 *inter_container.PacketOut) (*empty.Empty, error) { |
| 1157 | m.ctrl.T.Helper() |
| 1158 | ret := m.ctrl.Call(m, "SendPacketOut", arg0, arg1) |
| 1159 | ret0, _ := ret[0].(*empty.Empty) |
| 1160 | ret1, _ := ret[1].(error) |
| 1161 | return ret0, ret1 |
| 1162 | } |
| 1163 | |
| 1164 | // SendPacketOut indicates an expected call of SendPacketOut. |
| 1165 | func (mr *MockAdapterServiceServerMockRecorder) SendPacketOut(arg0, arg1 interface{}) *gomock.Call { |
| 1166 | mr.mock.ctrl.T.Helper() |
| 1167 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendPacketOut", reflect.TypeOf((*MockAdapterServiceServer)(nil).SendPacketOut), arg0, arg1) |
| 1168 | } |
| 1169 | |
| 1170 | // SetExtValue mocks base method. |
| 1171 | func (m *MockAdapterServiceServer) SetExtValue(arg0 context.Context, arg1 *inter_container.SetExtValueMessage) (*empty.Empty, error) { |
| 1172 | m.ctrl.T.Helper() |
| 1173 | ret := m.ctrl.Call(m, "SetExtValue", arg0, arg1) |
| 1174 | ret0, _ := ret[0].(*empty.Empty) |
| 1175 | ret1, _ := ret[1].(error) |
| 1176 | return ret0, ret1 |
| 1177 | } |
| 1178 | |
| 1179 | // SetExtValue indicates an expected call of SetExtValue. |
| 1180 | func (mr *MockAdapterServiceServerMockRecorder) SetExtValue(arg0, arg1 interface{}) *gomock.Call { |
| 1181 | mr.mock.ctrl.T.Helper() |
| 1182 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetExtValue", reflect.TypeOf((*MockAdapterServiceServer)(nil).SetExtValue), arg0, arg1) |
| 1183 | } |
| 1184 | |
| 1185 | // SetSingleValue mocks base method. |
| 1186 | func (m *MockAdapterServiceServer) SetSingleValue(arg0 context.Context, arg1 *extension.SingleSetValueRequest) (*extension.SingleSetValueResponse, error) { |
| 1187 | m.ctrl.T.Helper() |
| 1188 | ret := m.ctrl.Call(m, "SetSingleValue", arg0, arg1) |
| 1189 | ret0, _ := ret[0].(*extension.SingleSetValueResponse) |
| 1190 | ret1, _ := ret[1].(error) |
| 1191 | return ret0, ret1 |
| 1192 | } |
| 1193 | |
| 1194 | // SetSingleValue indicates an expected call of SetSingleValue. |
| 1195 | func (mr *MockAdapterServiceServerMockRecorder) SetSingleValue(arg0, arg1 interface{}) *gomock.Call { |
| 1196 | mr.mock.ctrl.T.Helper() |
| 1197 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetSingleValue", reflect.TypeOf((*MockAdapterServiceServer)(nil).SetSingleValue), arg0, arg1) |
| 1198 | } |
| 1199 | |
| 1200 | // SimulateAlarm mocks base method. |
| 1201 | func (m *MockAdapterServiceServer) SimulateAlarm(arg0 context.Context, arg1 *inter_container.SimulateAlarmMessage) (*common.OperationResp, error) { |
| 1202 | m.ctrl.T.Helper() |
| 1203 | ret := m.ctrl.Call(m, "SimulateAlarm", arg0, arg1) |
| 1204 | ret0, _ := ret[0].(*common.OperationResp) |
| 1205 | ret1, _ := ret[1].(error) |
| 1206 | return ret0, ret1 |
| 1207 | } |
| 1208 | |
| 1209 | // SimulateAlarm indicates an expected call of SimulateAlarm. |
| 1210 | func (mr *MockAdapterServiceServerMockRecorder) SimulateAlarm(arg0, arg1 interface{}) *gomock.Call { |
| 1211 | mr.mock.ctrl.T.Helper() |
| 1212 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SimulateAlarm", reflect.TypeOf((*MockAdapterServiceServer)(nil).SimulateAlarm), arg0, arg1) |
| 1213 | } |
| 1214 | |
| 1215 | // StartOmciTest mocks base method. |
| 1216 | func (m *MockAdapterServiceServer) StartOmciTest(arg0 context.Context, arg1 *inter_container.OMCITest) (*voltha.TestResponse, error) { |
| 1217 | m.ctrl.T.Helper() |
| 1218 | ret := m.ctrl.Call(m, "StartOmciTest", arg0, arg1) |
| 1219 | ret0, _ := ret[0].(*voltha.TestResponse) |
| 1220 | ret1, _ := ret[1].(error) |
| 1221 | return ret0, ret1 |
| 1222 | } |
| 1223 | |
| 1224 | // StartOmciTest indicates an expected call of StartOmciTest. |
| 1225 | func (mr *MockAdapterServiceServerMockRecorder) StartOmciTest(arg0, arg1 interface{}) *gomock.Call { |
| 1226 | mr.mock.ctrl.T.Helper() |
| 1227 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "StartOmciTest", reflect.TypeOf((*MockAdapterServiceServer)(nil).StartOmciTest), arg0, arg1) |
| 1228 | } |
| 1229 | |
| 1230 | // SuppressEvent mocks base method. |
| 1231 | func (m *MockAdapterServiceServer) SuppressEvent(arg0 context.Context, arg1 *voltha.EventFilter) (*empty.Empty, error) { |
| 1232 | m.ctrl.T.Helper() |
| 1233 | ret := m.ctrl.Call(m, "SuppressEvent", arg0, arg1) |
| 1234 | ret0, _ := ret[0].(*empty.Empty) |
| 1235 | ret1, _ := ret[1].(error) |
| 1236 | return ret0, ret1 |
| 1237 | } |
| 1238 | |
| 1239 | // SuppressEvent indicates an expected call of SuppressEvent. |
| 1240 | func (mr *MockAdapterServiceServerMockRecorder) SuppressEvent(arg0, arg1 interface{}) *gomock.Call { |
| 1241 | mr.mock.ctrl.T.Helper() |
| 1242 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SuppressEvent", reflect.TypeOf((*MockAdapterServiceServer)(nil).SuppressEvent), arg0, arg1) |
| 1243 | } |
| 1244 | |
| 1245 | // UnSuppressEvent mocks base method. |
| 1246 | func (m *MockAdapterServiceServer) UnSuppressEvent(arg0 context.Context, arg1 *voltha.EventFilter) (*empty.Empty, error) { |
| 1247 | m.ctrl.T.Helper() |
| 1248 | ret := m.ctrl.Call(m, "UnSuppressEvent", arg0, arg1) |
| 1249 | ret0, _ := ret[0].(*empty.Empty) |
| 1250 | ret1, _ := ret[1].(error) |
| 1251 | return ret0, ret1 |
| 1252 | } |
| 1253 | |
| 1254 | // UnSuppressEvent indicates an expected call of UnSuppressEvent. |
| 1255 | func (mr *MockAdapterServiceServerMockRecorder) UnSuppressEvent(arg0, arg1 interface{}) *gomock.Call { |
| 1256 | mr.mock.ctrl.T.Helper() |
| 1257 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UnSuppressEvent", reflect.TypeOf((*MockAdapterServiceServer)(nil).UnSuppressEvent), arg0, arg1) |
| 1258 | } |
| 1259 | |
| 1260 | // UpdateFlowsBulk mocks base method. |
| 1261 | func (m *MockAdapterServiceServer) UpdateFlowsBulk(arg0 context.Context, arg1 *inter_container.BulkFlows) (*empty.Empty, error) { |
| 1262 | m.ctrl.T.Helper() |
| 1263 | ret := m.ctrl.Call(m, "UpdateFlowsBulk", arg0, arg1) |
| 1264 | ret0, _ := ret[0].(*empty.Empty) |
| 1265 | ret1, _ := ret[1].(error) |
| 1266 | return ret0, ret1 |
| 1267 | } |
| 1268 | |
| 1269 | // UpdateFlowsBulk indicates an expected call of UpdateFlowsBulk. |
| 1270 | func (mr *MockAdapterServiceServerMockRecorder) UpdateFlowsBulk(arg0, arg1 interface{}) *gomock.Call { |
| 1271 | mr.mock.ctrl.T.Helper() |
| 1272 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFlowsBulk", reflect.TypeOf((*MockAdapterServiceServer)(nil).UpdateFlowsBulk), arg0, arg1) |
| 1273 | } |
| 1274 | |
| 1275 | // UpdateFlowsIncrementally mocks base method. |
| 1276 | func (m *MockAdapterServiceServer) UpdateFlowsIncrementally(arg0 context.Context, arg1 *inter_container.IncrementalFlows) (*empty.Empty, error) { |
| 1277 | m.ctrl.T.Helper() |
| 1278 | ret := m.ctrl.Call(m, "UpdateFlowsIncrementally", arg0, arg1) |
| 1279 | ret0, _ := ret[0].(*empty.Empty) |
| 1280 | ret1, _ := ret[1].(error) |
| 1281 | return ret0, ret1 |
| 1282 | } |
| 1283 | |
| 1284 | // UpdateFlowsIncrementally indicates an expected call of UpdateFlowsIncrementally. |
| 1285 | func (mr *MockAdapterServiceServerMockRecorder) UpdateFlowsIncrementally(arg0, arg1 interface{}) *gomock.Call { |
| 1286 | mr.mock.ctrl.T.Helper() |
| 1287 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdateFlowsIncrementally", reflect.TypeOf((*MockAdapterServiceServer)(nil).UpdateFlowsIncrementally), arg0, arg1) |
| 1288 | } |
| 1289 | |
| 1290 | // UpdatePmConfig mocks base method. |
| 1291 | func (m *MockAdapterServiceServer) UpdatePmConfig(arg0 context.Context, arg1 *inter_container.PmConfigsInfo) (*empty.Empty, error) { |
| 1292 | m.ctrl.T.Helper() |
| 1293 | ret := m.ctrl.Call(m, "UpdatePmConfig", arg0, arg1) |
| 1294 | ret0, _ := ret[0].(*empty.Empty) |
| 1295 | ret1, _ := ret[1].(error) |
| 1296 | return ret0, ret1 |
| 1297 | } |
| 1298 | |
| 1299 | // UpdatePmConfig indicates an expected call of UpdatePmConfig. |
| 1300 | func (mr *MockAdapterServiceServerMockRecorder) UpdatePmConfig(arg0, arg1 interface{}) *gomock.Call { |
| 1301 | mr.mock.ctrl.T.Helper() |
| 1302 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "UpdatePmConfig", reflect.TypeOf((*MockAdapterServiceServer)(nil).UpdatePmConfig), arg0, arg1) |
| 1303 | } |
| 1304 | |
| 1305 | // MockOnuInterAdapterServiceClient is a mock of OnuInterAdapterServiceClient interface. |
| 1306 | type MockOnuInterAdapterServiceClient struct { |
| 1307 | ctrl *gomock.Controller |
| 1308 | recorder *MockOnuInterAdapterServiceClientMockRecorder |
| 1309 | } |
| 1310 | |
| 1311 | // MockOnuInterAdapterServiceClientMockRecorder is the mock recorder for MockOnuInterAdapterServiceClient. |
| 1312 | type MockOnuInterAdapterServiceClientMockRecorder struct { |
| 1313 | mock *MockOnuInterAdapterServiceClient |
| 1314 | } |
| 1315 | |
| 1316 | // NewMockOnuInterAdapterServiceClient creates a new mock instance. |
| 1317 | func NewMockOnuInterAdapterServiceClient(ctrl *gomock.Controller) *MockOnuInterAdapterServiceClient { |
| 1318 | mock := &MockOnuInterAdapterServiceClient{ctrl: ctrl} |
| 1319 | mock.recorder = &MockOnuInterAdapterServiceClientMockRecorder{mock} |
| 1320 | return mock |
| 1321 | } |
| 1322 | |
| 1323 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 1324 | func (m *MockOnuInterAdapterServiceClient) EXPECT() *MockOnuInterAdapterServiceClientMockRecorder { |
| 1325 | return m.recorder |
| 1326 | } |
| 1327 | |
| 1328 | // DeleteGemPort mocks base method. |
| 1329 | func (m *MockOnuInterAdapterServiceClient) DeleteGemPort(ctx context.Context, in *inter_container.DeleteGemPortMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 1330 | m.ctrl.T.Helper() |
| 1331 | varargs := []interface{}{ctx, in} |
| 1332 | for _, a := range opts { |
| 1333 | varargs = append(varargs, a) |
| 1334 | } |
| 1335 | ret := m.ctrl.Call(m, "DeleteGemPort", varargs...) |
| 1336 | ret0, _ := ret[0].(*empty.Empty) |
| 1337 | ret1, _ := ret[1].(error) |
| 1338 | return ret0, ret1 |
| 1339 | } |
| 1340 | |
| 1341 | // DeleteGemPort indicates an expected call of DeleteGemPort. |
| 1342 | func (mr *MockOnuInterAdapterServiceClientMockRecorder) DeleteGemPort(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 1343 | mr.mock.ctrl.T.Helper() |
| 1344 | varargs := append([]interface{}{ctx, in}, opts...) |
| 1345 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGemPort", reflect.TypeOf((*MockOnuInterAdapterServiceClient)(nil).DeleteGemPort), varargs...) |
| 1346 | } |
| 1347 | |
| 1348 | // DeleteTCont mocks base method. |
| 1349 | func (m *MockOnuInterAdapterServiceClient) DeleteTCont(ctx context.Context, in *inter_container.DeleteTcontMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 1350 | m.ctrl.T.Helper() |
| 1351 | varargs := []interface{}{ctx, in} |
| 1352 | for _, a := range opts { |
| 1353 | varargs = append(varargs, a) |
| 1354 | } |
| 1355 | ret := m.ctrl.Call(m, "DeleteTCont", varargs...) |
| 1356 | ret0, _ := ret[0].(*empty.Empty) |
| 1357 | ret1, _ := ret[1].(error) |
| 1358 | return ret0, ret1 |
| 1359 | } |
| 1360 | |
| 1361 | // DeleteTCont indicates an expected call of DeleteTCont. |
| 1362 | func (mr *MockOnuInterAdapterServiceClientMockRecorder) DeleteTCont(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 1363 | mr.mock.ctrl.T.Helper() |
| 1364 | varargs := append([]interface{}{ctx, in}, opts...) |
| 1365 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTCont", reflect.TypeOf((*MockOnuInterAdapterServiceClient)(nil).DeleteTCont), varargs...) |
| 1366 | } |
| 1367 | |
| 1368 | // DownloadTechProfile mocks base method. |
| 1369 | func (m *MockOnuInterAdapterServiceClient) DownloadTechProfile(ctx context.Context, in *inter_container.TechProfileDownloadMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 1370 | m.ctrl.T.Helper() |
| 1371 | varargs := []interface{}{ctx, in} |
| 1372 | for _, a := range opts { |
| 1373 | varargs = append(varargs, a) |
| 1374 | } |
| 1375 | ret := m.ctrl.Call(m, "DownloadTechProfile", varargs...) |
| 1376 | ret0, _ := ret[0].(*empty.Empty) |
| 1377 | ret1, _ := ret[1].(error) |
| 1378 | return ret0, ret1 |
| 1379 | } |
| 1380 | |
| 1381 | // DownloadTechProfile indicates an expected call of DownloadTechProfile. |
| 1382 | func (mr *MockOnuInterAdapterServiceClientMockRecorder) DownloadTechProfile(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 1383 | mr.mock.ctrl.T.Helper() |
| 1384 | varargs := append([]interface{}{ctx, in}, opts...) |
| 1385 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadTechProfile", reflect.TypeOf((*MockOnuInterAdapterServiceClient)(nil).DownloadTechProfile), varargs...) |
| 1386 | } |
| 1387 | |
| 1388 | // GetHealthStatus mocks base method. |
| 1389 | func (m *MockOnuInterAdapterServiceClient) GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*voltha.HealthStatus, error) { |
| 1390 | m.ctrl.T.Helper() |
| 1391 | varargs := []interface{}{ctx, in} |
| 1392 | for _, a := range opts { |
| 1393 | varargs = append(varargs, a) |
| 1394 | } |
| 1395 | ret := m.ctrl.Call(m, "GetHealthStatus", varargs...) |
| 1396 | ret0, _ := ret[0].(*voltha.HealthStatus) |
| 1397 | ret1, _ := ret[1].(error) |
| 1398 | return ret0, ret1 |
| 1399 | } |
| 1400 | |
| 1401 | // GetHealthStatus indicates an expected call of GetHealthStatus. |
| 1402 | func (mr *MockOnuInterAdapterServiceClientMockRecorder) GetHealthStatus(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 1403 | mr.mock.ctrl.T.Helper() |
| 1404 | varargs := append([]interface{}{ctx, in}, opts...) |
| 1405 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthStatus", reflect.TypeOf((*MockOnuInterAdapterServiceClient)(nil).GetHealthStatus), varargs...) |
| 1406 | } |
| 1407 | |
| 1408 | // OmciResponse mocks base method. |
| 1409 | func (m *MockOnuInterAdapterServiceClient) OmciResponse(ctx context.Context, in *inter_container.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 1410 | m.ctrl.T.Helper() |
| 1411 | varargs := []interface{}{ctx, in} |
| 1412 | for _, a := range opts { |
| 1413 | varargs = append(varargs, a) |
| 1414 | } |
| 1415 | ret := m.ctrl.Call(m, "OmciResponse", varargs...) |
| 1416 | ret0, _ := ret[0].(*empty.Empty) |
| 1417 | ret1, _ := ret[1].(error) |
| 1418 | return ret0, ret1 |
| 1419 | } |
| 1420 | |
| 1421 | // OmciResponse indicates an expected call of OmciResponse. |
| 1422 | func (mr *MockOnuInterAdapterServiceClientMockRecorder) OmciResponse(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 1423 | mr.mock.ctrl.T.Helper() |
| 1424 | varargs := append([]interface{}{ctx, in}, opts...) |
| 1425 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OmciResponse", reflect.TypeOf((*MockOnuInterAdapterServiceClient)(nil).OmciResponse), varargs...) |
| 1426 | } |
| 1427 | |
| 1428 | // OnuIndication mocks base method. |
| 1429 | func (m *MockOnuInterAdapterServiceClient) OnuIndication(ctx context.Context, in *inter_container.OnuIndicationMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 1430 | m.ctrl.T.Helper() |
| 1431 | varargs := []interface{}{ctx, in} |
| 1432 | for _, a := range opts { |
| 1433 | varargs = append(varargs, a) |
| 1434 | } |
| 1435 | ret := m.ctrl.Call(m, "OnuIndication", varargs...) |
| 1436 | ret0, _ := ret[0].(*empty.Empty) |
| 1437 | ret1, _ := ret[1].(error) |
| 1438 | return ret0, ret1 |
| 1439 | } |
| 1440 | |
| 1441 | // OnuIndication indicates an expected call of OnuIndication. |
| 1442 | func (mr *MockOnuInterAdapterServiceClientMockRecorder) OnuIndication(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 1443 | mr.mock.ctrl.T.Helper() |
| 1444 | varargs := append([]interface{}{ctx, in}, opts...) |
| 1445 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnuIndication", reflect.TypeOf((*MockOnuInterAdapterServiceClient)(nil).OnuIndication), varargs...) |
| 1446 | } |
| 1447 | |
| 1448 | // MockOnuInterAdapterServiceServer is a mock of OnuInterAdapterServiceServer interface. |
| 1449 | type MockOnuInterAdapterServiceServer struct { |
| 1450 | ctrl *gomock.Controller |
| 1451 | recorder *MockOnuInterAdapterServiceServerMockRecorder |
| 1452 | } |
| 1453 | |
| 1454 | // MockOnuInterAdapterServiceServerMockRecorder is the mock recorder for MockOnuInterAdapterServiceServer. |
| 1455 | type MockOnuInterAdapterServiceServerMockRecorder struct { |
| 1456 | mock *MockOnuInterAdapterServiceServer |
| 1457 | } |
| 1458 | |
| 1459 | // NewMockOnuInterAdapterServiceServer creates a new mock instance. |
| 1460 | func NewMockOnuInterAdapterServiceServer(ctrl *gomock.Controller) *MockOnuInterAdapterServiceServer { |
| 1461 | mock := &MockOnuInterAdapterServiceServer{ctrl: ctrl} |
| 1462 | mock.recorder = &MockOnuInterAdapterServiceServerMockRecorder{mock} |
| 1463 | return mock |
| 1464 | } |
| 1465 | |
| 1466 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 1467 | func (m *MockOnuInterAdapterServiceServer) EXPECT() *MockOnuInterAdapterServiceServerMockRecorder { |
| 1468 | return m.recorder |
| 1469 | } |
| 1470 | |
| 1471 | // DeleteGemPort mocks base method. |
| 1472 | func (m *MockOnuInterAdapterServiceServer) DeleteGemPort(arg0 context.Context, arg1 *inter_container.DeleteGemPortMessage) (*empty.Empty, error) { |
| 1473 | m.ctrl.T.Helper() |
| 1474 | ret := m.ctrl.Call(m, "DeleteGemPort", arg0, arg1) |
| 1475 | ret0, _ := ret[0].(*empty.Empty) |
| 1476 | ret1, _ := ret[1].(error) |
| 1477 | return ret0, ret1 |
| 1478 | } |
| 1479 | |
| 1480 | // DeleteGemPort indicates an expected call of DeleteGemPort. |
| 1481 | func (mr *MockOnuInterAdapterServiceServerMockRecorder) DeleteGemPort(arg0, arg1 interface{}) *gomock.Call { |
| 1482 | mr.mock.ctrl.T.Helper() |
| 1483 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteGemPort", reflect.TypeOf((*MockOnuInterAdapterServiceServer)(nil).DeleteGemPort), arg0, arg1) |
| 1484 | } |
| 1485 | |
| 1486 | // DeleteTCont mocks base method. |
| 1487 | func (m *MockOnuInterAdapterServiceServer) DeleteTCont(arg0 context.Context, arg1 *inter_container.DeleteTcontMessage) (*empty.Empty, error) { |
| 1488 | m.ctrl.T.Helper() |
| 1489 | ret := m.ctrl.Call(m, "DeleteTCont", arg0, arg1) |
| 1490 | ret0, _ := ret[0].(*empty.Empty) |
| 1491 | ret1, _ := ret[1].(error) |
| 1492 | return ret0, ret1 |
| 1493 | } |
| 1494 | |
| 1495 | // DeleteTCont indicates an expected call of DeleteTCont. |
| 1496 | func (mr *MockOnuInterAdapterServiceServerMockRecorder) DeleteTCont(arg0, arg1 interface{}) *gomock.Call { |
| 1497 | mr.mock.ctrl.T.Helper() |
| 1498 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DeleteTCont", reflect.TypeOf((*MockOnuInterAdapterServiceServer)(nil).DeleteTCont), arg0, arg1) |
| 1499 | } |
| 1500 | |
| 1501 | // DownloadTechProfile mocks base method. |
| 1502 | func (m *MockOnuInterAdapterServiceServer) DownloadTechProfile(arg0 context.Context, arg1 *inter_container.TechProfileDownloadMessage) (*empty.Empty, error) { |
| 1503 | m.ctrl.T.Helper() |
| 1504 | ret := m.ctrl.Call(m, "DownloadTechProfile", arg0, arg1) |
| 1505 | ret0, _ := ret[0].(*empty.Empty) |
| 1506 | ret1, _ := ret[1].(error) |
| 1507 | return ret0, ret1 |
| 1508 | } |
| 1509 | |
| 1510 | // DownloadTechProfile indicates an expected call of DownloadTechProfile. |
| 1511 | func (mr *MockOnuInterAdapterServiceServerMockRecorder) DownloadTechProfile(arg0, arg1 interface{}) *gomock.Call { |
| 1512 | mr.mock.ctrl.T.Helper() |
| 1513 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "DownloadTechProfile", reflect.TypeOf((*MockOnuInterAdapterServiceServer)(nil).DownloadTechProfile), arg0, arg1) |
| 1514 | } |
| 1515 | |
| 1516 | // GetHealthStatus mocks base method. |
| 1517 | func (m *MockOnuInterAdapterServiceServer) GetHealthStatus(arg0 context.Context, arg1 *empty.Empty) (*voltha.HealthStatus, error) { |
| 1518 | m.ctrl.T.Helper() |
| 1519 | ret := m.ctrl.Call(m, "GetHealthStatus", arg0, arg1) |
| 1520 | ret0, _ := ret[0].(*voltha.HealthStatus) |
| 1521 | ret1, _ := ret[1].(error) |
| 1522 | return ret0, ret1 |
| 1523 | } |
| 1524 | |
| 1525 | // GetHealthStatus indicates an expected call of GetHealthStatus. |
| 1526 | func (mr *MockOnuInterAdapterServiceServerMockRecorder) GetHealthStatus(arg0, arg1 interface{}) *gomock.Call { |
| 1527 | mr.mock.ctrl.T.Helper() |
| 1528 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthStatus", reflect.TypeOf((*MockOnuInterAdapterServiceServer)(nil).GetHealthStatus), arg0, arg1) |
| 1529 | } |
| 1530 | |
| 1531 | // OmciResponse mocks base method. |
| 1532 | func (m *MockOnuInterAdapterServiceServer) OmciResponse(arg0 context.Context, arg1 *inter_container.OmciMessage) (*empty.Empty, error) { |
| 1533 | m.ctrl.T.Helper() |
| 1534 | ret := m.ctrl.Call(m, "OmciResponse", arg0, arg1) |
| 1535 | ret0, _ := ret[0].(*empty.Empty) |
| 1536 | ret1, _ := ret[1].(error) |
| 1537 | return ret0, ret1 |
| 1538 | } |
| 1539 | |
| 1540 | // OmciResponse indicates an expected call of OmciResponse. |
| 1541 | func (mr *MockOnuInterAdapterServiceServerMockRecorder) OmciResponse(arg0, arg1 interface{}) *gomock.Call { |
| 1542 | mr.mock.ctrl.T.Helper() |
| 1543 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OmciResponse", reflect.TypeOf((*MockOnuInterAdapterServiceServer)(nil).OmciResponse), arg0, arg1) |
| 1544 | } |
| 1545 | |
| 1546 | // OnuIndication mocks base method. |
| 1547 | func (m *MockOnuInterAdapterServiceServer) OnuIndication(arg0 context.Context, arg1 *inter_container.OnuIndicationMessage) (*empty.Empty, error) { |
| 1548 | m.ctrl.T.Helper() |
| 1549 | ret := m.ctrl.Call(m, "OnuIndication", arg0, arg1) |
| 1550 | ret0, _ := ret[0].(*empty.Empty) |
| 1551 | ret1, _ := ret[1].(error) |
| 1552 | return ret0, ret1 |
| 1553 | } |
| 1554 | |
| 1555 | // OnuIndication indicates an expected call of OnuIndication. |
| 1556 | func (mr *MockOnuInterAdapterServiceServerMockRecorder) OnuIndication(arg0, arg1 interface{}) *gomock.Call { |
| 1557 | mr.mock.ctrl.T.Helper() |
| 1558 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "OnuIndication", reflect.TypeOf((*MockOnuInterAdapterServiceServer)(nil).OnuIndication), arg0, arg1) |
| 1559 | } |
| 1560 | |
| 1561 | // MockOltInterAdapterServiceClient is a mock of OltInterAdapterServiceClient interface. |
| 1562 | type MockOltInterAdapterServiceClient struct { |
| 1563 | ctrl *gomock.Controller |
| 1564 | recorder *MockOltInterAdapterServiceClientMockRecorder |
| 1565 | } |
| 1566 | |
| 1567 | // MockOltInterAdapterServiceClientMockRecorder is the mock recorder for MockOltInterAdapterServiceClient. |
| 1568 | type MockOltInterAdapterServiceClientMockRecorder struct { |
| 1569 | mock *MockOltInterAdapterServiceClient |
| 1570 | } |
| 1571 | |
| 1572 | // NewMockOltInterAdapterServiceClient creates a new mock instance. |
| 1573 | func NewMockOltInterAdapterServiceClient(ctrl *gomock.Controller) *MockOltInterAdapterServiceClient { |
| 1574 | mock := &MockOltInterAdapterServiceClient{ctrl: ctrl} |
| 1575 | mock.recorder = &MockOltInterAdapterServiceClientMockRecorder{mock} |
| 1576 | return mock |
| 1577 | } |
| 1578 | |
| 1579 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 1580 | func (m *MockOltInterAdapterServiceClient) EXPECT() *MockOltInterAdapterServiceClientMockRecorder { |
| 1581 | return m.recorder |
| 1582 | } |
| 1583 | |
| 1584 | // GetHealthStatus mocks base method. |
| 1585 | func (m *MockOltInterAdapterServiceClient) GetHealthStatus(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*voltha.HealthStatus, error) { |
| 1586 | m.ctrl.T.Helper() |
| 1587 | varargs := []interface{}{ctx, in} |
| 1588 | for _, a := range opts { |
| 1589 | varargs = append(varargs, a) |
| 1590 | } |
| 1591 | ret := m.ctrl.Call(m, "GetHealthStatus", varargs...) |
| 1592 | ret0, _ := ret[0].(*voltha.HealthStatus) |
| 1593 | ret1, _ := ret[1].(error) |
| 1594 | return ret0, ret1 |
| 1595 | } |
| 1596 | |
| 1597 | // GetHealthStatus indicates an expected call of GetHealthStatus. |
| 1598 | func (mr *MockOltInterAdapterServiceClientMockRecorder) GetHealthStatus(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 1599 | mr.mock.ctrl.T.Helper() |
| 1600 | varargs := append([]interface{}{ctx, in}, opts...) |
| 1601 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthStatus", reflect.TypeOf((*MockOltInterAdapterServiceClient)(nil).GetHealthStatus), varargs...) |
| 1602 | } |
| 1603 | |
| 1604 | // GetTechProfileInstance mocks base method. |
| 1605 | func (m *MockOltInterAdapterServiceClient) GetTechProfileInstance(ctx context.Context, in *inter_container.TechProfileInstanceRequestMessage, opts ...grpc.CallOption) (*inter_container.TechProfileDownloadMessage, error) { |
| 1606 | m.ctrl.T.Helper() |
| 1607 | varargs := []interface{}{ctx, in} |
| 1608 | for _, a := range opts { |
| 1609 | varargs = append(varargs, a) |
| 1610 | } |
| 1611 | ret := m.ctrl.Call(m, "GetTechProfileInstance", varargs...) |
| 1612 | ret0, _ := ret[0].(*inter_container.TechProfileDownloadMessage) |
| 1613 | ret1, _ := ret[1].(error) |
| 1614 | return ret0, ret1 |
| 1615 | } |
| 1616 | |
| 1617 | // GetTechProfileInstance indicates an expected call of GetTechProfileInstance. |
| 1618 | func (mr *MockOltInterAdapterServiceClientMockRecorder) GetTechProfileInstance(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 1619 | mr.mock.ctrl.T.Helper() |
| 1620 | varargs := append([]interface{}{ctx, in}, opts...) |
| 1621 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTechProfileInstance", reflect.TypeOf((*MockOltInterAdapterServiceClient)(nil).GetTechProfileInstance), varargs...) |
| 1622 | } |
| 1623 | |
| 1624 | // ProxyOmciRequest mocks base method. |
| 1625 | func (m *MockOltInterAdapterServiceClient) ProxyOmciRequest(ctx context.Context, in *inter_container.OmciMessage, opts ...grpc.CallOption) (*empty.Empty, error) { |
| 1626 | m.ctrl.T.Helper() |
| 1627 | varargs := []interface{}{ctx, in} |
| 1628 | for _, a := range opts { |
| 1629 | varargs = append(varargs, a) |
| 1630 | } |
| 1631 | ret := m.ctrl.Call(m, "ProxyOmciRequest", varargs...) |
| 1632 | ret0, _ := ret[0].(*empty.Empty) |
| 1633 | ret1, _ := ret[1].(error) |
| 1634 | return ret0, ret1 |
| 1635 | } |
| 1636 | |
| 1637 | // ProxyOmciRequest indicates an expected call of ProxyOmciRequest. |
| 1638 | func (mr *MockOltInterAdapterServiceClientMockRecorder) ProxyOmciRequest(ctx, in interface{}, opts ...interface{}) *gomock.Call { |
| 1639 | mr.mock.ctrl.T.Helper() |
| 1640 | varargs := append([]interface{}{ctx, in}, opts...) |
| 1641 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProxyOmciRequest", reflect.TypeOf((*MockOltInterAdapterServiceClient)(nil).ProxyOmciRequest), varargs...) |
| 1642 | } |
| 1643 | |
| 1644 | // MockOltInterAdapterServiceServer is a mock of OltInterAdapterServiceServer interface. |
| 1645 | type MockOltInterAdapterServiceServer struct { |
| 1646 | ctrl *gomock.Controller |
| 1647 | recorder *MockOltInterAdapterServiceServerMockRecorder |
| 1648 | } |
| 1649 | |
| 1650 | // MockOltInterAdapterServiceServerMockRecorder is the mock recorder for MockOltInterAdapterServiceServer. |
| 1651 | type MockOltInterAdapterServiceServerMockRecorder struct { |
| 1652 | mock *MockOltInterAdapterServiceServer |
| 1653 | } |
| 1654 | |
| 1655 | // NewMockOltInterAdapterServiceServer creates a new mock instance. |
| 1656 | func NewMockOltInterAdapterServiceServer(ctrl *gomock.Controller) *MockOltInterAdapterServiceServer { |
| 1657 | mock := &MockOltInterAdapterServiceServer{ctrl: ctrl} |
| 1658 | mock.recorder = &MockOltInterAdapterServiceServerMockRecorder{mock} |
| 1659 | return mock |
| 1660 | } |
| 1661 | |
| 1662 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 1663 | func (m *MockOltInterAdapterServiceServer) EXPECT() *MockOltInterAdapterServiceServerMockRecorder { |
| 1664 | return m.recorder |
| 1665 | } |
| 1666 | |
| 1667 | // GetHealthStatus mocks base method. |
| 1668 | func (m *MockOltInterAdapterServiceServer) GetHealthStatus(arg0 context.Context, arg1 *empty.Empty) (*voltha.HealthStatus, error) { |
| 1669 | m.ctrl.T.Helper() |
| 1670 | ret := m.ctrl.Call(m, "GetHealthStatus", arg0, arg1) |
| 1671 | ret0, _ := ret[0].(*voltha.HealthStatus) |
| 1672 | ret1, _ := ret[1].(error) |
| 1673 | return ret0, ret1 |
| 1674 | } |
| 1675 | |
| 1676 | // GetHealthStatus indicates an expected call of GetHealthStatus. |
| 1677 | func (mr *MockOltInterAdapterServiceServerMockRecorder) GetHealthStatus(arg0, arg1 interface{}) *gomock.Call { |
| 1678 | mr.mock.ctrl.T.Helper() |
| 1679 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetHealthStatus", reflect.TypeOf((*MockOltInterAdapterServiceServer)(nil).GetHealthStatus), arg0, arg1) |
| 1680 | } |
| 1681 | |
| 1682 | // GetTechProfileInstance mocks base method. |
| 1683 | func (m *MockOltInterAdapterServiceServer) GetTechProfileInstance(arg0 context.Context, arg1 *inter_container.TechProfileInstanceRequestMessage) (*inter_container.TechProfileDownloadMessage, error) { |
| 1684 | m.ctrl.T.Helper() |
| 1685 | ret := m.ctrl.Call(m, "GetTechProfileInstance", arg0, arg1) |
| 1686 | ret0, _ := ret[0].(*inter_container.TechProfileDownloadMessage) |
| 1687 | ret1, _ := ret[1].(error) |
| 1688 | return ret0, ret1 |
| 1689 | } |
| 1690 | |
| 1691 | // GetTechProfileInstance indicates an expected call of GetTechProfileInstance. |
| 1692 | func (mr *MockOltInterAdapterServiceServerMockRecorder) GetTechProfileInstance(arg0, arg1 interface{}) *gomock.Call { |
| 1693 | mr.mock.ctrl.T.Helper() |
| 1694 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetTechProfileInstance", reflect.TypeOf((*MockOltInterAdapterServiceServer)(nil).GetTechProfileInstance), arg0, arg1) |
| 1695 | } |
| 1696 | |
| 1697 | // ProxyOmciRequest mocks base method. |
| 1698 | func (m *MockOltInterAdapterServiceServer) ProxyOmciRequest(arg0 context.Context, arg1 *inter_container.OmciMessage) (*empty.Empty, error) { |
| 1699 | m.ctrl.T.Helper() |
| 1700 | ret := m.ctrl.Call(m, "ProxyOmciRequest", arg0, arg1) |
| 1701 | ret0, _ := ret[0].(*empty.Empty) |
| 1702 | ret1, _ := ret[1].(error) |
| 1703 | return ret0, ret1 |
| 1704 | } |
| 1705 | |
| 1706 | // ProxyOmciRequest indicates an expected call of ProxyOmciRequest. |
| 1707 | func (mr *MockOltInterAdapterServiceServerMockRecorder) ProxyOmciRequest(arg0, arg1 interface{}) *gomock.Call { |
| 1708 | mr.mock.ctrl.T.Helper() |
| 1709 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ProxyOmciRequest", reflect.TypeOf((*MockOltInterAdapterServiceServer)(nil).ProxyOmciRequest), arg0, arg1) |
| 1710 | } |