Add VBUS current check for type-C charging test

1. add poll_pd_state for plankton class. The state transition (between
sink and source) will take a short time. If we want to make sure test
checking in stable state, we should poll it.

2. add VBUS current check (same as the metric of factory test). Check
current is around 3A in charging 5V, and others current is over 0A.

3. make plankton object as local since it is only used inside run_once.

BUG=chrome-os-partner:33362
TEST=manual
  test_that --fast -b typec_host_board due_ip_address \
  firmware_TypeCCharging

Change-Id: I9a544b3a0e96a35df916069619895172612333e5
Reviewed-on: https://chromium-review.googlesource.com/262536
Reviewed-by: Wai-Hong Tam <waihong@chromium.org>
Commit-Queue: Pin-chih Lin <johnylin@chromium.org>
Tested-by: Pin-chih Lin <johnylin@chromium.org>
2 files changed