MdeModulePkg: Add submitted callback test case in DriverSample
Now we add new HII action type EFI_BROWSER_ACTION_SUBMITTED in EFI HII Configuration Access Protocol, so add the test case in DriverSample to show how to use it and whether it works. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -485,6 +485,16 @@ formset
|
||||
help = STRING_TOKEN(STR_TEXT_SECRUITY_TEST_HELP),
|
||||
text = STRING_TOKEN(STR_TEXT_SECRUITY_TEST_TEXT);
|
||||
endif;
|
||||
|
||||
numeric varid = MyEfiVar.SubmittedCallback,
|
||||
questionid = 0x1250,
|
||||
prompt = STRING_TOKEN(STR_SUBMITTED_CALLBACK_TEST_PROMPT),
|
||||
help = STRING_TOKEN(STR_SUBMITTED_CALLBACK_TEST_HELP),
|
||||
flags = INTERACTIVE,
|
||||
minimum = 0,
|
||||
maximum = 255,
|
||||
default = 18,
|
||||
endnumeric;
|
||||
|
||||
goto 2,
|
||||
prompt = STRING_TOKEN(STR_GOTO_FORM2), //SecondSetupPage // this too has no end-op and basically it's a jump to a form ONLY
|
||||
|
Reference in New Issue
Block a user