diff options
author | Vic Yang <victoryang@chromium.org> | 2014-08-08 10:59:17 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-08-13 21:36:12 +0000 |
commit | cb7468744d8292590ddc4fb0a0b6ed7752b1490a (patch) | |
tree | b981a899bb85481964568fc33fcfdeee6c5e5f3e /board/host/usb_pd_config.c | |
parent | 589e7f9e102f44863351e0d772403fa7344b66e6 (diff) | |
download | chrome-ec-cb7468744d8292590ddc4fb0a0b6ed7752b1490a.tar.gz |
Add back unit test for usb_pd
Add back the test but only enable USB PD tasks for usb_pd test. This
should ensure that we do not break existing tests.
BUG=chrome-os-partner:31200,chromium:402335
TEST=make buildall
BRANCH=None
Change-Id: I4daa41a96a1067362b2c40a2a09fce733843bdff
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/211923
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Diffstat (limited to 'board/host/usb_pd_config.c')
-rw-r--r-- | board/host/usb_pd_config.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/board/host/usb_pd_config.c b/board/host/usb_pd_config.c new file mode 100644 index 0000000000..aec495a0c9 --- /dev/null +++ b/board/host/usb_pd_config.c @@ -0,0 +1,35 @@ +/* Copyright (c) 2014 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. + */ + +/* USB Power delivery board configuration */ + +#include "test_util.h" + +test_mockable void pd_select_polarity(int port, int polarity) +{ + /* Not implemented */ +} + +test_mockable void pd_tx_init(void) +{ + /* Not implemented */ +} + +test_mockable void pd_set_host_mode(int port, int enable) +{ + /* Not implemented */ +} + +test_mockable int pd_adc_read(int port, int cc) +{ + /* Not implemented */ + return 0; +} + +test_mockable int pd_snk_is_vbus_provided(int port) +{ + /* Not implemented */ + return 1; +} |