summaryrefslogtreecommitdiff
path: root/test/hooks.c
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-09-02 13:55:02 +0800
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2013-09-05 07:20:56 +0000
commitb448746bace6d021343bfec615d1cf98f7be17bb (patch)
tree839a25cfa03d6114a225d88fa324fe2b51598cda /test/hooks.c
parent6c3be20539a3b336e2c1c83181ea6f9b0c1506d2 (diff)
downloadchrome-ec-b448746bace6d021343bfec615d1cf98f7be17bb.tar.gz
Add boot key test
This checks boot key combination like Power-F3-ESC and Power-F3-Down can be properly detected. BUG=chrome-os-partner:19236 TEST=Pass kb_scan test BRANCH=None Change-Id: I180918977299219a8421798dac2ab9fed84ef9a2 Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/167802
Diffstat (limited to 'test/hooks.c')
-rw-r--r--test/hooks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/hooks.c b/test/hooks.c
index 679cf584d3..e688e610c2 100644
--- a/test/hooks.c
+++ b/test/hooks.c
@@ -61,7 +61,7 @@ static void non_deferred_func(void)
deferred_call_count++;
}
-static int test_init(void)
+static int test_init_hook(void)
{
TEST_ASSERT(init_hook_count == 1);
return EC_SUCCESS;
@@ -133,7 +133,7 @@ void run_test(void)
{
test_reset();
- RUN_TEST(test_init);
+ RUN_TEST(test_init_hook);
RUN_TEST(test_ticks);
RUN_TEST(test_priority);
RUN_TEST(test_deferred);