summaryrefslogtreecommitdiff
path: root/include/mock/mkbp_events_mock.h
blob: 22600e4f96c43565d7063c5150c908bcb58e6de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* Copyright 2019 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

/**
 * @file
 * @brief Controls for the mock MKBP keyboard protocol
 */

#ifndef __MOCK_MKBP_EVENTS_MOCK_H
#define __MOCK_MKBP_EVENTS_MOCK_H

struct mock_ctrl_mkbp_events {
	int mkbp_send_event_return;
};

#define MOCK_CTRL_DEFAULT_MKBP_EVENTS        \
	(struct mock_ctrl_mkbp_events)       \
	{                                    \
		.mkbp_send_event_return = 1, \
	}

extern struct mock_ctrl_mkbp_events mock_ctrl_mkbp_events;

#endif /* __MOCK_MKBP_EVENTS_MOCK_H */