diff options
author | Vic Yang <victoryang@chromium.org> | 2013-08-07 06:06:44 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-08-18 04:27:27 -0700 |
commit | 0e9d829e913a28f148a191bb2664a91e2888d985 (patch) | |
tree | 6d5bceb2710d6dd72a8897773950e94ef11845aa /include/test_util.h | |
parent | 0ece0dc9556f065f89e67af72847579d1b4ce3cd (diff) | |
download | chrome-ec-0e9d829e913a28f148a191bb2664a91e2888d985.tar.gz |
Add test for console command history
This tests that command history is as expected. Also fix a bug that some
checks in console_edit test are skipped.
BUG=chrome-os-partner:19236
TEST=Pass console_edit test.
BRANCH=None
Change-Id: Ifbd3d1690f25b35bf5efe523e656b013aa534d26
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/64837
Diffstat (limited to 'include/test_util.h')
-rw-r--r-- | include/test_util.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/test_util.h b/include/test_util.h index ae237809c1..160d1cab68 100644 --- a/include/test_util.h +++ b/include/test_util.h @@ -101,4 +101,10 @@ void test_chipset_on(void); /* Simulates chipset power off */ void test_chipset_off(void); +/* Start/stop capturing console output */ +void test_capture_console(int enabled); + +/* Get captured console output */ +const char *test_get_captured_console(void); + #endif /* __CROS_EC_TEST_UTIL_H */ |