blob: 8a8a9fa7cd13481faf104a1aa3d374cef510d443 [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"
30
31/** Host subsystem initialization parameters */
32typedef struct bcmolt_host_init_parms
33{
34 int dummy;
35} bcmolt_host_init_parms;
36
37}
38
39class BalMocker : public CMockMocker<BalMocker>
40{
41public:
42 MOCK_METHOD1(bcmolt_host_init, bcmos_errno(bcmolt_host_init_parms*));
43 MOCK_METHOD2(bcmolt_cfg_get, bcmos_errno(bcmolt_oltid, bcmolt_cfg*));
44 MOCK_METHOD2(bcmolt_oper_submit, bcmos_errno(bcmolt_oltid, bcmolt_oper*));
Chaitrashree G S73e084d2019-11-20 16:18:59 -050045 MOCK_METHOD2(bcmolt_cfg_set, bcmos_errno(bcmolt_oltid, bcmolt_cfg*));
Thiyagarajan Subramani6dc20052019-12-05 09:06:36 -050046 MOCK_METHOD2(bcmolt_cfg_clear, bcmos_errno(bcmolt_oltid, bcmolt_cfg*));
Jason Huang5d9ab1a2020-04-15 16:53:49 +080047 MOCK_METHOD2(bcmolt_stat_cfg_set, bcmos_errno(bcmolt_oltid, bcmolt_stat_cfg*));
Jason Huangbf45ffb2019-10-30 17:29:02 +080048 // Add more here
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000049};
Jason Huangbf45ffb2019-10-30 17:29:02 +080050
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000051#endif