diff options
author | Stefan Adolfsson <sadolfsson@chromium.org> | 2018-05-25 14:47:38 +0200 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-08-22 08:16:02 -0700 |
commit | e7bff8f8804e23680ff1fe57062c70debe856d21 (patch) | |
tree | 04fc7efd12b0cc5a129a2957a11dbe66f9dbd802 /test/cec.tasklist | |
parent | e8252556d52f897f2ea443e1cdd1bb0ebf7174ab (diff) | |
download | chrome-ec-e7bff8f8804e23680ff1fe57062c70debe856d21.tar.gz |
CEC: Add unit tests for buffer handling
Makes sure that we don't have and that we don't introduce
buffer overflows in the CEC buffer handling.
Signed-off-by: Stefan Adolfsson <sadolfsson@chromium.org>
BUG=b:80288314
BRANCH=none
TEST=make -j runtests
Change-Id: Iad5f79add99e2582e60f0d11ed53a27ac67e8b8c
Reviewed-on: https://chromium-review.googlesource.com/1073415
Commit-Ready: Stefan Adolfsson <sadolfsson@chromium.org>
Tested-by: Stefan Adolfsson <sadolfsson@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Zhongze Hu <frankhu@google.com>
Diffstat (limited to 'test/cec.tasklist')
-rw-r--r-- | test/cec.tasklist | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/cec.tasklist b/test/cec.tasklist new file mode 100644 index 0000000000..7015e106a9 --- /dev/null +++ b/test/cec.tasklist @@ -0,0 +1,19 @@ +/* Copyright 2018 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. + * + * Test the buffer handling of HDMI CEC + */ + +/** + * List of enabled tasks in the priority order + * + * The first one has the lowest priority. + * + * For each task, use the macro TASK_TEST(n, r, d, s) where : + * 'n' in the name of the task + * 'r' in the main routine of the task + * 'd' in an opaque parameter passed to the routine at startup + * 's' is the stack size in bytes; must be a multiple of 8 + */ +#define CONFIG_TEST_TASK_LIST /* No test task */ |