blob: d36d0c78038299fe4780c8655f727148c6c914bb [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__
18#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*));
Jason Huangbf45ffb2019-10-30 17:29:02 +080045 // Add more here
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000046};
Jason Huangbf45ffb2019-10-30 17:29:02 +080047
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000048#endif