vinokuma | 02fbfd0 | 2023-07-05 15:23:33 +0530 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2022-present Open Networking Foundation |
| 3 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | * you may not use this file except in compliance with the License. |
| 5 | * You may obtain a copy of the License at |
| 6 | * |
| 7 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | * |
| 9 | * Unless required by applicable law or agreed to in writing, software |
| 10 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | * See the License for the specific language governing permissions and |
| 13 | * limitations under the License. |
| 14 | */ |
| 15 | |
| 16 | // Code generated by MockGen. DO NOT EDIT. |
| 17 | // Source: /home/vinod/go/src/gerrit.opencord.org/voltha-go-controller/vendor/github.com/google/gopacket/packet.go |
| 18 | |
| 19 | // Package mock_gopacket is a generated GoMock package. |
| 20 | package mocks |
| 21 | |
| 22 | import ( |
| 23 | reflect "reflect" |
| 24 | |
| 25 | gomock "github.com/golang/mock/gomock" |
| 26 | gopacket "github.com/google/gopacket" |
| 27 | ) |
| 28 | |
| 29 | // MockPacket is a mock of Packet interface. |
| 30 | type MockPacket struct { |
| 31 | ctrl *gomock.Controller |
| 32 | recorder *MockPacketMockRecorder |
| 33 | } |
| 34 | |
| 35 | // MockPacketMockRecorder is the mock recorder for MockPacket. |
| 36 | type MockPacketMockRecorder struct { |
| 37 | mock *MockPacket |
| 38 | } |
| 39 | |
| 40 | // NewMockPacket creates a new mock instance. |
| 41 | func NewMockPacket(ctrl *gomock.Controller) *MockPacket { |
| 42 | mock := &MockPacket{ctrl: ctrl} |
| 43 | mock.recorder = &MockPacketMockRecorder{mock} |
| 44 | return mock |
| 45 | } |
| 46 | |
| 47 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 48 | func (m *MockPacket) EXPECT() *MockPacketMockRecorder { |
| 49 | return m.recorder |
| 50 | } |
| 51 | |
| 52 | // ApplicationLayer mocks base method. |
| 53 | func (m *MockPacket) ApplicationLayer() gopacket.ApplicationLayer { |
| 54 | m.ctrl.T.Helper() |
| 55 | ret := m.ctrl.Call(m, "ApplicationLayer") |
| 56 | ret0, _ := ret[0].(gopacket.ApplicationLayer) |
| 57 | return ret0 |
| 58 | } |
| 59 | |
| 60 | // ApplicationLayer indicates an expected call of ApplicationLayer. |
| 61 | func (mr *MockPacketMockRecorder) ApplicationLayer() *gomock.Call { |
| 62 | mr.mock.ctrl.T.Helper() |
| 63 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ApplicationLayer", reflect.TypeOf((*MockPacket)(nil).ApplicationLayer)) |
| 64 | } |
| 65 | |
| 66 | // Data mocks base method. |
| 67 | func (m *MockPacket) Data() []byte { |
| 68 | m.ctrl.T.Helper() |
| 69 | ret := m.ctrl.Call(m, "Data") |
| 70 | ret0, _ := ret[0].([]byte) |
| 71 | return ret0 |
| 72 | } |
| 73 | |
| 74 | // Data indicates an expected call of Data. |
| 75 | func (mr *MockPacketMockRecorder) Data() *gomock.Call { |
| 76 | mr.mock.ctrl.T.Helper() |
| 77 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Data", reflect.TypeOf((*MockPacket)(nil).Data)) |
| 78 | } |
| 79 | |
| 80 | // Dump mocks base method. |
| 81 | func (m *MockPacket) Dump() string { |
| 82 | m.ctrl.T.Helper() |
| 83 | ret := m.ctrl.Call(m, "Dump") |
| 84 | ret0, _ := ret[0].(string) |
| 85 | return ret0 |
| 86 | } |
| 87 | |
| 88 | // Dump indicates an expected call of Dump. |
| 89 | func (mr *MockPacketMockRecorder) Dump() *gomock.Call { |
| 90 | mr.mock.ctrl.T.Helper() |
| 91 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Dump", reflect.TypeOf((*MockPacket)(nil).Dump)) |
| 92 | } |
| 93 | |
| 94 | // ErrorLayer mocks base method. |
| 95 | func (m *MockPacket) ErrorLayer() gopacket.ErrorLayer { |
| 96 | m.ctrl.T.Helper() |
| 97 | ret := m.ctrl.Call(m, "ErrorLayer") |
| 98 | ret0, _ := ret[0].(gopacket.ErrorLayer) |
| 99 | return ret0 |
| 100 | } |
| 101 | |
| 102 | // ErrorLayer indicates an expected call of ErrorLayer. |
| 103 | func (mr *MockPacketMockRecorder) ErrorLayer() *gomock.Call { |
| 104 | mr.mock.ctrl.T.Helper() |
| 105 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ErrorLayer", reflect.TypeOf((*MockPacket)(nil).ErrorLayer)) |
| 106 | } |
| 107 | |
| 108 | // Layer mocks base method. |
| 109 | func (m *MockPacket) Layer(arg0 gopacket.LayerType) gopacket.Layer { |
| 110 | m.ctrl.T.Helper() |
| 111 | ret := m.ctrl.Call(m, "Layer", arg0) |
| 112 | ret0, _ := ret[0].(gopacket.Layer) |
| 113 | return ret0 |
| 114 | } |
| 115 | |
| 116 | // Layer indicates an expected call of Layer. |
| 117 | func (mr *MockPacketMockRecorder) Layer(arg0 interface{}) *gomock.Call { |
| 118 | mr.mock.ctrl.T.Helper() |
| 119 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Layer", reflect.TypeOf((*MockPacket)(nil).Layer), arg0) |
| 120 | } |
| 121 | |
| 122 | // LayerClass mocks base method. |
| 123 | func (m *MockPacket) LayerClass(arg0 gopacket.LayerClass) gopacket.Layer { |
| 124 | m.ctrl.T.Helper() |
| 125 | ret := m.ctrl.Call(m, "LayerClass", arg0) |
| 126 | ret0, _ := ret[0].(gopacket.Layer) |
| 127 | return ret0 |
| 128 | } |
| 129 | |
| 130 | // LayerClass indicates an expected call of LayerClass. |
| 131 | func (mr *MockPacketMockRecorder) LayerClass(arg0 interface{}) *gomock.Call { |
| 132 | mr.mock.ctrl.T.Helper() |
| 133 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LayerClass", reflect.TypeOf((*MockPacket)(nil).LayerClass), arg0) |
| 134 | } |
| 135 | |
| 136 | // Layers mocks base method. |
| 137 | func (m *MockPacket) Layers() []gopacket.Layer { |
| 138 | m.ctrl.T.Helper() |
| 139 | ret := m.ctrl.Call(m, "Layers") |
| 140 | ret0, _ := ret[0].([]gopacket.Layer) |
| 141 | return ret0 |
| 142 | } |
| 143 | |
| 144 | // Layers indicates an expected call of Layers. |
| 145 | func (mr *MockPacketMockRecorder) Layers() *gomock.Call { |
| 146 | mr.mock.ctrl.T.Helper() |
| 147 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Layers", reflect.TypeOf((*MockPacket)(nil).Layers)) |
| 148 | } |
| 149 | |
| 150 | // LinkLayer mocks base method. |
| 151 | func (m *MockPacket) LinkLayer() gopacket.LinkLayer { |
| 152 | m.ctrl.T.Helper() |
| 153 | ret := m.ctrl.Call(m, "LinkLayer") |
| 154 | ret0, _ := ret[0].(gopacket.LinkLayer) |
| 155 | return ret0 |
| 156 | } |
| 157 | |
| 158 | // LinkLayer indicates an expected call of LinkLayer. |
| 159 | func (mr *MockPacketMockRecorder) LinkLayer() *gomock.Call { |
| 160 | mr.mock.ctrl.T.Helper() |
| 161 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "LinkLayer", reflect.TypeOf((*MockPacket)(nil).LinkLayer)) |
| 162 | } |
| 163 | |
| 164 | // Metadata mocks base method. |
| 165 | func (m *MockPacket) Metadata() *gopacket.PacketMetadata { |
| 166 | m.ctrl.T.Helper() |
| 167 | ret := m.ctrl.Call(m, "Metadata") |
| 168 | ret0, _ := ret[0].(*gopacket.PacketMetadata) |
| 169 | return ret0 |
| 170 | } |
| 171 | |
| 172 | // Metadata indicates an expected call of Metadata. |
| 173 | func (mr *MockPacketMockRecorder) Metadata() *gomock.Call { |
| 174 | mr.mock.ctrl.T.Helper() |
| 175 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Metadata", reflect.TypeOf((*MockPacket)(nil).Metadata)) |
| 176 | } |
| 177 | |
| 178 | // NetworkLayer mocks base method. |
| 179 | func (m *MockPacket) NetworkLayer() gopacket.NetworkLayer { |
| 180 | m.ctrl.T.Helper() |
| 181 | ret := m.ctrl.Call(m, "NetworkLayer") |
| 182 | ret0, _ := ret[0].(gopacket.NetworkLayer) |
| 183 | return ret0 |
| 184 | } |
| 185 | |
| 186 | // NetworkLayer indicates an expected call of NetworkLayer. |
| 187 | func (mr *MockPacketMockRecorder) NetworkLayer() *gomock.Call { |
| 188 | mr.mock.ctrl.T.Helper() |
| 189 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "NetworkLayer", reflect.TypeOf((*MockPacket)(nil).NetworkLayer)) |
| 190 | } |
| 191 | |
| 192 | // String mocks base method. |
| 193 | func (m *MockPacket) String() string { |
| 194 | m.ctrl.T.Helper() |
| 195 | ret := m.ctrl.Call(m, "String") |
| 196 | ret0, _ := ret[0].(string) |
| 197 | return ret0 |
| 198 | } |
| 199 | |
| 200 | // String indicates an expected call of String. |
| 201 | func (mr *MockPacketMockRecorder) String() *gomock.Call { |
| 202 | mr.mock.ctrl.T.Helper() |
| 203 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "String", reflect.TypeOf((*MockPacket)(nil).String)) |
| 204 | } |
| 205 | |
| 206 | // TransportLayer mocks base method. |
| 207 | func (m *MockPacket) TransportLayer() gopacket.TransportLayer { |
| 208 | m.ctrl.T.Helper() |
| 209 | ret := m.ctrl.Call(m, "TransportLayer") |
| 210 | ret0, _ := ret[0].(gopacket.TransportLayer) |
| 211 | return ret0 |
| 212 | } |
| 213 | |
| 214 | // TransportLayer indicates an expected call of TransportLayer. |
| 215 | func (mr *MockPacketMockRecorder) TransportLayer() *gomock.Call { |
| 216 | mr.mock.ctrl.T.Helper() |
| 217 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TransportLayer", reflect.TypeOf((*MockPacket)(nil).TransportLayer)) |
| 218 | } |
| 219 | |
| 220 | // MockDumper is a mock of Dumper interface. |
| 221 | type MockDumper struct { |
| 222 | ctrl *gomock.Controller |
| 223 | recorder *MockDumperMockRecorder |
| 224 | } |
| 225 | |
| 226 | // MockDumperMockRecorder is the mock recorder for MockDumper. |
| 227 | type MockDumperMockRecorder struct { |
| 228 | mock *MockDumper |
| 229 | } |
| 230 | |
| 231 | // NewMockDumper creates a new mock instance. |
| 232 | func NewMockDumper(ctrl *gomock.Controller) *MockDumper { |
| 233 | mock := &MockDumper{ctrl: ctrl} |
| 234 | mock.recorder = &MockDumperMockRecorder{mock} |
| 235 | return mock |
| 236 | } |
| 237 | |
| 238 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 239 | func (m *MockDumper) EXPECT() *MockDumperMockRecorder { |
| 240 | return m.recorder |
| 241 | } |
| 242 | |
| 243 | // Dump mocks base method. |
| 244 | func (m *MockDumper) Dump() string { |
| 245 | m.ctrl.T.Helper() |
| 246 | ret := m.ctrl.Call(m, "Dump") |
| 247 | ret0, _ := ret[0].(string) |
| 248 | return ret0 |
| 249 | } |
| 250 | |
| 251 | // Dump indicates an expected call of Dump. |
| 252 | func (mr *MockDumperMockRecorder) Dump() *gomock.Call { |
| 253 | mr.mock.ctrl.T.Helper() |
| 254 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Dump", reflect.TypeOf((*MockDumper)(nil).Dump)) |
| 255 | } |
| 256 | |
| 257 | // MockPacketDataSource is a mock of PacketDataSource interface. |
| 258 | type MockPacketDataSource struct { |
| 259 | ctrl *gomock.Controller |
| 260 | recorder *MockPacketDataSourceMockRecorder |
| 261 | } |
| 262 | |
| 263 | // MockPacketDataSourceMockRecorder is the mock recorder for MockPacketDataSource. |
| 264 | type MockPacketDataSourceMockRecorder struct { |
| 265 | mock *MockPacketDataSource |
| 266 | } |
| 267 | |
| 268 | // NewMockPacketDataSource creates a new mock instance. |
| 269 | func NewMockPacketDataSource(ctrl *gomock.Controller) *MockPacketDataSource { |
| 270 | mock := &MockPacketDataSource{ctrl: ctrl} |
| 271 | mock.recorder = &MockPacketDataSourceMockRecorder{mock} |
| 272 | return mock |
| 273 | } |
| 274 | |
| 275 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 276 | func (m *MockPacketDataSource) EXPECT() *MockPacketDataSourceMockRecorder { |
| 277 | return m.recorder |
| 278 | } |
| 279 | |
| 280 | // ReadPacketData mocks base method. |
| 281 | func (m *MockPacketDataSource) ReadPacketData() ([]byte, gopacket.CaptureInfo, error) { |
| 282 | m.ctrl.T.Helper() |
| 283 | ret := m.ctrl.Call(m, "ReadPacketData") |
| 284 | ret0, _ := ret[0].([]byte) |
| 285 | ret1, _ := ret[1].(gopacket.CaptureInfo) |
| 286 | ret2, _ := ret[2].(error) |
| 287 | return ret0, ret1, ret2 |
| 288 | } |
| 289 | |
| 290 | // ReadPacketData indicates an expected call of ReadPacketData. |
| 291 | func (mr *MockPacketDataSourceMockRecorder) ReadPacketData() *gomock.Call { |
| 292 | mr.mock.ctrl.T.Helper() |
| 293 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadPacketData", reflect.TypeOf((*MockPacketDataSource)(nil).ReadPacketData)) |
| 294 | } |
| 295 | |
| 296 | // MockZeroCopyPacketDataSource is a mock of ZeroCopyPacketDataSource interface. |
| 297 | type MockZeroCopyPacketDataSource struct { |
| 298 | ctrl *gomock.Controller |
| 299 | recorder *MockZeroCopyPacketDataSourceMockRecorder |
| 300 | } |
| 301 | |
| 302 | // MockZeroCopyPacketDataSourceMockRecorder is the mock recorder for MockZeroCopyPacketDataSource. |
| 303 | type MockZeroCopyPacketDataSourceMockRecorder struct { |
| 304 | mock *MockZeroCopyPacketDataSource |
| 305 | } |
| 306 | |
| 307 | // NewMockZeroCopyPacketDataSource creates a new mock instance. |
| 308 | func NewMockZeroCopyPacketDataSource(ctrl *gomock.Controller) *MockZeroCopyPacketDataSource { |
| 309 | mock := &MockZeroCopyPacketDataSource{ctrl: ctrl} |
| 310 | mock.recorder = &MockZeroCopyPacketDataSourceMockRecorder{mock} |
| 311 | return mock |
| 312 | } |
| 313 | |
| 314 | // EXPECT returns an object that allows the caller to indicate expected use. |
| 315 | func (m *MockZeroCopyPacketDataSource) EXPECT() *MockZeroCopyPacketDataSourceMockRecorder { |
| 316 | return m.recorder |
| 317 | } |
| 318 | |
| 319 | // ZeroCopyReadPacketData mocks base method. |
| 320 | func (m *MockZeroCopyPacketDataSource) ZeroCopyReadPacketData() ([]byte, gopacket.CaptureInfo, error) { |
| 321 | m.ctrl.T.Helper() |
| 322 | ret := m.ctrl.Call(m, "ZeroCopyReadPacketData") |
| 323 | ret0, _ := ret[0].([]byte) |
| 324 | ret1, _ := ret[1].(gopacket.CaptureInfo) |
| 325 | ret2, _ := ret[2].(error) |
| 326 | return ret0, ret1, ret2 |
| 327 | } |
| 328 | |
| 329 | // ZeroCopyReadPacketData indicates an expected call of ZeroCopyReadPacketData. |
| 330 | func (mr *MockZeroCopyPacketDataSourceMockRecorder) ZeroCopyReadPacketData() *gomock.Call { |
| 331 | mr.mock.ctrl.T.Helper() |
| 332 | return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ZeroCopyReadPacketData", reflect.TypeOf((*MockZeroCopyPacketDataSource)(nil).ZeroCopyReadPacketData)) |
| 333 | } |