aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2022-05-12 12:27:13 +0300
committerJoursoir <chat@joursoir.net>2022-05-12 12:27:13 +0300
commita13b494c590bec360e03f2d4d311a707a4c4a03a (patch)
tree0481fd2b8eb822394dd119fce1a35ed46514d436
parentd5a53200ffac45b1075a17e05f00194b004ea589 (diff)
downloadumt-a13b494c590bec360e03f2d4d311a707a4c4a03a.tar.gz
umt-a13b494c590bec360e03f2d4d311a707a4c4a03a.tar.bz2
umt-a13b494c590bec360e03f2d4d311a707a4c4a03a.zip
add the chess board test stubs
-rw-r--r--UefiMonitorTest/UefiMonitorTest.c4
-rw-r--r--UefiMonitorTest/UefiMonitorTest.h1
-rw-r--r--UefiMonitorTest/UefiMonitorTest.inf1
-rw-r--r--UefiMonitorTest/tests/ChessBoard.c43
-rw-r--r--UefiMonitorTest/tests/ChessBoard.h33
5 files changed, 81 insertions, 1 deletions
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 <tests/Grayscale.h>
#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 */