summaryrefslogtreecommitdiff
path: root/test/charge_ramp.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/charge_ramp.c')
-rw-r--r--test/charge_ramp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/charge_ramp.c b/test/charge_ramp.c
index 01571c8f3a..d239081c1c 100644
--- a/test/charge_ramp.c
+++ b/test/charge_ramp.c
@@ -37,6 +37,11 @@ static int charge_limit_ma;
/* Mock functions */
+__override uint8_t board_get_usb_pd_port_count(void)
+{
+ return CONFIG_USB_PD_PORT_MAX_COUNT;
+}
+
/* Override test_mockable implementations in charge_ramp module */
int chg_ramp_allowed(int port, int supplier)
{