summaryrefslogtreecommitdiff
path: root/include/mock/mkbp_events_mock.h
blob: 3d686e3618a6884b1cd224657ae99826ce803403 (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
/* Copyright 2019 The Chromium OS Authors. All rights reserved.
 * 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 */