blob: 81d6c19e495de98b0b48f3692b85fc725d692ea0 [file] [log] [blame]
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +00001/*
Girish Gowdraa707e7c2019-11-07 11:36:13 +05302 * Copyright 2018-present Open Networking Foundation
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +00003
Girish Gowdraa707e7c2019-11-07 11:36:13 +05304 * 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
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +00007
Girish Gowdraa707e7c2019-11-07 11:36:13 +05308 * http://www.apache.org/licenses/LICENSE-2.0
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +00009
Girish Gowdraa707e7c2019-11-07 11:36:13 +053010 * 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 */
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000016#ifndef __BAL_MOCKER_H__
17#define __BAL_MOCKER_H__
Girish Gowdra489425a2020-02-22 13:07:42 +053018#include <cmock/cmock.h>
Jason Huangbf45ffb2019-10-30 17:29:02 +080019#include <gmock-global/gmock-global.h>
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000020#include <cstdlib>
Jason Huangbf45ffb2019-10-30 17:29:02 +080021#include <grpc++/grpc++.h>
22using grpc::Status;
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000023extern "C" {
24#include <bcmos_system.h>
25#include <bcmolt_api.h>
26#include <bcm_dev_log.h>
27#include "bcmos_errno.h"
28#include "bcmolt_system_types_typedefs.h"
29#include "bcmolt_msg.h"
Girish Gowdrab0337eb2022-03-25 16:44:21 -070030#include "bcmolt_host_api.h"
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000031}
32
33class BalMocker : public CMockMocker<BalMocker>
34{
35public:
36 MOCK_METHOD1(bcmolt_host_init, bcmos_errno(bcmolt_host_init_parms*));
37 MOCK_METHOD2(bcmolt_cfg_get, bcmos_errno(bcmolt_oltid, bcmolt_cfg*));
38 MOCK_METHOD2(bcmolt_oper_submit, bcmos_errno(bcmolt_oltid, bcmolt_oper*));
Chaitrashree G S73e084d2019-11-20 16:18:59 -050039 MOCK_METHOD2(bcmolt_cfg_set, bcmos_errno(bcmolt_oltid, bcmolt_cfg*));
Thiyagarajan Subramani6dc20052019-12-05 09:06:36 -050040 MOCK_METHOD2(bcmolt_cfg_clear, bcmos_errno(bcmolt_oltid, bcmolt_cfg*));
Jason Huang5d9ab1a2020-04-15 16:53:49 +080041 MOCK_METHOD2(bcmolt_stat_cfg_set, bcmos_errno(bcmolt_oltid, bcmolt_stat_cfg*));
Jason Huangbf45ffb2019-10-30 17:29:02 +080042 // Add more here
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000043};
Jason Huangbf45ffb2019-10-30 17:29:02 +080044
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000045#endif