summaryrefslogtreecommitdiff
path: root/include/test_util.h
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-06-16 21:36:16 +0800
committerChromeBot <chrome-bot@google.com>2013-06-17 20:27:27 -0700
commit7de03b0f0eba113681a8b41971b4c17dd04bf8fd (patch)
tree26586f92133d099eb48a766897b6ab186c216b56 /include/test_util.h
parentb93658ba02cf381e2a0e20c4d7128814d685e502 (diff)
downloadchrome-ec-7de03b0f0eba113681a8b41971b4c17dd04bf8fd.tar.gz
A method to mock host command
This will be used often, so let's move it to test_util.c. BUG=chrome-os-partner:19235 TEST=Pass flash test. BRANCH=None Change-Id: I2f685f657f8742c2b29e3b9c88ba01daacf982f8 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/58793
Diffstat (limited to 'include/test_util.h')
-rw-r--r--include/test_util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/test_util.h b/include/test_util.h
index 3faccb8c79..d63acfa741 100644
--- a/include/test_util.h
+++ b/include/test_util.h
@@ -76,6 +76,9 @@ void test_print_result(void);
int test_get_error_count(void);
+int test_send_host_command(int command, int version, const void *params,
+ int params_size, void *resp, int resp_size);
+
extern int __test_error_count;
#endif /* __CROS_EC_TEST_UTIL_H */