blob: 85bdb22c61e2e566e9c5ca81772a1c163b32d39b [file] [log] [blame]
Girish Gowdrae538dfd2019-09-30 11:07:30 +05301/*
2 Copyright (C) 2018 Open Networking Foundation
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#ifndef __BAL_MOCKER_H__
19#define __BAL_MOCKER_H__
20#include <cmock/cmock.h>
21#include <cstdlib>
Girish Gowdrad18f0d32019-10-11 20:46:15 +053022extern "C" {
23#include <bcmos_system.h>
24#include <bcmolt_api.h>
25#include <bcm_dev_log.h>
Girish Gowdrae538dfd2019-09-30 11:07:30 +053026#include "bcmos_errno.h"
Girish Gowdrae538dfd2019-09-30 11:07:30 +053027#include "bcmolt_system_types_typedefs.h"
28#include "bcmolt_msg.h"
29
Girish Gowdrad18f0d32019-10-11 20:46:15 +053030/** Host subsystem initialization parameters */
31typedef struct bcmolt_host_init_parms
32{
33 int dummy;
34} bcmolt_host_init_parms;
35
36}
37
Girish Gowdrae538dfd2019-09-30 11:07:30 +053038class BalMocker : public CMockMocker<BalMocker>
39{
40public:
41 MOCK_METHOD1(bcmolt_host_init, bcmos_errno(bcmolt_host_init_parms*));
42 MOCK_METHOD2(bcmolt_cfg_get, bcmos_errno(bcmolt_oltid, bcmolt_cfg*));
43 MOCK_METHOD2(bcmolt_oper_submit, bcmos_errno(bcmolt_oltid, bcmolt_oper*));
44};
45#endif