From a13b494c590bec360e03f2d4d311a707a4c4a03a Mon Sep 17 00:00:00 2001 From: Joursoir Date: Thu, 12 May 2022 12:27:13 +0300 Subject: add the chess board test stubs --- UefiMonitorTest/UefiMonitorTest.c | 4 +++- UefiMonitorTest/UefiMonitorTest.h | 1 + UefiMonitorTest/UefiMonitorTest.inf | 1 + UefiMonitorTest/tests/ChessBoard.c | 43 +++++++++++++++++++++++++++++++++++++ UefiMonitorTest/tests/ChessBoard.h | 33 ++++++++++++++++++++++++++++ 5 files changed, 81 insertions(+), 1 deletion(-) create mode 100644 UefiMonitorTest/tests/ChessBoard.c create mode 100644 UefiMonitorTest/tests/ChessBoard.h diff --git a/UefiMonitorTest/UefiMonitorTest.c b/UefiMonitorTest/UefiMonitorTest.c index 4de0123..52d2c3d 100644 --- a/UefiMonitorTest/UefiMonitorTest.c +++ b/UefiMonitorTest/UefiMonitorTest.c @@ -14,13 +14,15 @@ #include "tests/SolidColors.h" #include #include "tests/Gradients.h" +#include "tests/ChessBoard.h" STATIC CONST UMT_STATE_ACTIONS mStateActions[UMT_STATE_END] = { { MainMenuInit, MainMenuDoit, MainMenuTip, MainMenuChangeParam, MainMenuChangeValue }, { SettingsMenuInit, SettingsMenuDoit, SettingsMenuTip, SettingsChangeParam, SettingsMenuChangeValue }, { SolidColorsTestInit, SolidColorsTestDoit, SolidColorsTestTip, SolidColorsTestChangeParam, SolidColorsTestChangeValue }, { GrayscaleTestInit, GrayscaleTestDoit, GrayscaleTestTip, GrayscaleTestChangeParam, GrayscaleTestChangeValue }, - { GradientsTestInit, GradientsTestDoit, GradientsTestTip, GradientsTestChangeParam, GradientsTestChangeValue } + { GradientsTestInit, GradientsTestDoit, GradientsTestTip, GradientsTestChangeParam, GradientsTestChangeValue }, + { ChessBoardTestInit, ChessBoardTestDoit, ChessBoardTestTip, ChessBoardTestChangeParam, ChessBoardTestChangeValue } }; EFI_HII_HANDLE gUmtHiiHandle = NULL; diff --git a/UefiMonitorTest/UefiMonitorTest.h b/UefiMonitorTest/UefiMonitorTest.h index f1b84e8..34b6d03 100644 --- a/UefiMonitorTest/UefiMonitorTest.h +++ b/UefiMonitorTest/UefiMonitorTest.h @@ -22,6 +22,7 @@ enum UMT_STATE { UMT_STATE_SOLID_COLORS_TEST, UMT_STATE_GRAYSCALE_TEST, UMT_STATE_GRADIENTS_TEST, + UMT_STATE_CHESSBOARD_TEST, UMT_STATE_END }; diff --git a/UefiMonitorTest/UefiMonitorTest.inf b/UefiMonitorTest/UefiMonitorTest.inf index f81f363..d80f83a 100644 --- a/UefiMonitorTest/UefiMonitorTest.inf +++ b/UefiMonitorTest/UefiMonitorTest.inf @@ -15,6 +15,7 @@ tests/SolidColors.c tests/Grayscale.c tests/Gradients.c + tests/ChessBoard.c UefiMonitorTestStrings.uni [Packages] diff --git a/UefiMonitorTest/tests/ChessBoard.c b/UefiMonitorTest/tests/ChessBoard.c new file mode 100644 index 0000000..6b90067 --- /dev/null +++ b/UefiMonitorTest/tests/ChessBoard.c @@ -0,0 +1,43 @@ +#include "tests/ChessBoard.h" + +VOID +ChessBoardTestInit ( + IN UMT_CONTEXT *Ctx + ) +{ + +} + +VOID +ChessBoardTestDoit ( + IN UMT_CONTEXT *Ctx + ) +{ + +} + +VOID +ChessBoardTestTip ( + IN UMT_CONTEXT *Ctx + ) +{ + +} + +VOID +ChessBoardTestChangeParam ( + IN UMT_CONTEXT *Ctx, + IN INT8 ParamStep + ) +{ + +} + +VOID +ChessBoardTestChangeValue ( + IN UMT_CONTEXT *Ctx, + IN INT8 ValueStep + ) +{ + +} diff --git a/UefiMonitorTest/tests/ChessBoard.h b/UefiMonitorTest/tests/ChessBoard.h new file mode 100644 index 0000000..6d16812 --- /dev/null +++ b/UefiMonitorTest/tests/ChessBoard.h @@ -0,0 +1,33 @@ +#ifndef UMT_CHESSBOARD_TEST_H +#define UMT_CHESSBOARD_TEST_H + +#include "UefiMonitorTest.h" + +VOID +ChessBoardTestInit ( + IN UMT_CONTEXT *Ctx + ); + +VOID +ChessBoardTestDoit ( + IN UMT_CONTEXT *Ctx + ); + +VOID +ChessBoardTestTip ( + IN UMT_CONTEXT *Ctx + ); + +VOID +ChessBoardTestChangeParam ( + IN UMT_CONTEXT *Ctx, + IN INT8 ParamStep + ); + +VOID +ChessBoardTestChangeValue ( + IN UMT_CONTEXT *Ctx, + IN INT8 ValueStep + ); + +#endif /* UMT_CHESSBOARD_TEST_H */ -- cgit v1.2.3-18-g5258