summaryrefslogtreecommitdiff
path: root/include/mock/usb_pd_dpm_mock.h
blob: 266cad4aeffd46b56fd9b2ef1a3a8fb7584ef8d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* Copyright 2020 The ChromiumOS Authors
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */
/* Mock of Device Policy Manager implementation */

#ifndef __MOCK_USB_PD_DPM_MOCK_H
#define __MOCK_USB_PD_DPM_MOCK_H

#include "common.h"
#include "usb_pd_dpm_sm.h"

/* Defaults should all be 0 values. */
struct mock_dpm_port_t {
	bool mode_entry_done;
	bool mode_exit_request;
};

extern struct mock_dpm_port_t dpm[CONFIG_USB_PD_PORT_MAX_COUNT];

void mock_dpm_reset(void);

#endif /* __MOCK_USB_PD_DPM_MOCK_H */