Files
OpenCellular/chip/host/lpc.c
Vic Yang 2475cce9ad Add I8042 keyboard unit test
This tests I8042 scancode and typematic.

BUG=chrome-os-partner:19236
TEST=Pass all tests many times.
BRANCH=None

Change-Id: I8457b7b807b694b0bae32abf1647961f946dc5e1
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/61553
Reviewed-by: Randall Spangler <rspangler@chromium.org>
2013-07-11 22:32:52 -07:00

34 lines
601 B
C

/* Copyright (c) 2013 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.
*/
/* LPC module for Chrome EC emulator */
#include "lpc.h"
test_mockable int lpc_keyboard_has_char(void)
{
return 0;
}
test_mockable int lpc_keyboard_input_pending(void)
{
return 0;
}
test_mockable void lpc_keyboard_put_char(uint8_t chr, int send_irq)
{
/* Do nothing */
}
test_mockable void lpc_keyboard_clear_buffer(void)
{
/* Do nothing */
}
test_mockable void lpc_keyboard_resume_irq(void)
{
/* Do nothing */
}