Files
OpenCellular/board/host/usb_pd_config.c
Vic Yang f0dc012cf7 Add back unit test for usb_pd"
This is mostly the same as previous commits, but with increased delay.
Previously, we have short delays (e.g. 3ms) which is too short and may
cause instability.

Now that we have slowed down the time when running unit tests and
increased the delay, this shouldn't cause problems anymore.

BUG=chrome-os-partner:31200
TEST=Repeatedly run multiple unit tests in parallel.
BRANCH=Samus

Change-Id: Ib55e3adc5fd27a8e233996b4799dab3cefd62318
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/220734
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
2014-10-04 21:08:48 +00:00

36 lines
664 B
C

/* 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;
}