diff options
Diffstat (limited to 'fuzz/usb_tcpm_v2_fuzz.c')
-rw-r--r-- | fuzz/usb_tcpm_v2_fuzz.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/fuzz/usb_tcpm_v2_fuzz.c b/fuzz/usb_tcpm_v2_fuzz.c new file mode 100644 index 0000000000..71ac1fe62b --- /dev/null +++ b/fuzz/usb_tcpm_v2_fuzz.c @@ -0,0 +1,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. + * + * Stubs needed for fuzz testing the USB TCPMv2 state machines. + */ + +#define HIDE_EC_STDLIB +#include "usb_pd.h" +#include "charge_manager.h" + +const struct svdm_response svdm_rsp = { + .identity = NULL, + .svids = NULL, + .modes = NULL, +}; + +int pd_check_vconn_swap(int port) +{ + return 1; +} + +void charge_manager_set_ceil(int port, enum ceil_requestor requestor, int ceil) +{ +} |