blob: bcdb83cc6dafd40c0af3a3cacc33d23b4349c112 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* Copyright (c) 2011 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.
*
* Testing code. Running at Linux environment.
*/
#include "cros_ec/include/ec_common.h"
#include "cros_ec/include/core.h"
#include "cros_ec/chip_stub/keyboard.h"
int run_test_cases() {
/* Just a simple test */
SimulateKeyStateChange(2, 3, 1);
/* Expect KeyboardStateChanged() in cros_ec/keyboard.c shows something. */
return 0;
}
int main(int argc, char **argv) {
EcError ret;
/* Call Google EC core initial code. */
ret = CoreMain();
if (ret != EC_SUCCESS)
return 1;
return run_test_cases();
}
|