blob: dcf667b28290f191e165d73c888bd2e9691d9ee4 [file] [log] [blame]
Daniele Moro8d630f12021-06-15 20:53:22 +02001/*
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
17package org.onosproject.pipelines.fabric.impl.behaviour.upf;
18
19import org.onosproject.net.pi.model.PiCounterId;
20import org.onosproject.net.pi.model.PiCounterModel;
21import org.onosproject.net.pi.model.PiCounterType;
22import org.onosproject.net.pi.model.PiTableId;
23
24public class MockCounterModel implements PiCounterModel {
25 PiCounterId id;
26 int size;
27
28 public MockCounterModel(PiCounterId id, int size) {
29 this.id = id;
30 this.size = size;
31 }
32
33 @Override
34 public PiCounterId id() {
35 return this.id;
36 }
37
38 @Override
39 public PiCounterType counterType() {
40 return null;
41 }
42
43 @Override
44 public Unit unit() {
45 return null;
46 }
47
48 @Override
49 public PiTableId table() {
50 return null;
51 }
52
53 @Override
54 public long size() {
55 return this.size;
56 }
57}