1#include "../sdl_dialogs.hpp"
2#include "../sdl_input_widget_pair_list.hpp"
4#include <freerdp/api.h>
7typedef int (*fkt_t)(void);
9BOOL sdl_log_error_ex(Sint32 res, wLog* log,
const char* what,
const char* file,
size_t line,
14 WLog_Print(log, WLOG_ERROR,
"[%s:%" PRIuz
"][%s]: %s", fkt, line, what,
"xxx");
18static int auth_dialogs(
void)
20 const std::string title =
"sometitle";
21 std::vector<std::string> result;
23 std::vector<std::string> initial{
"Smartcard",
"abc",
"def" };
24 std::vector<Uint32> flags = { SdlInputWidgetPair::SDL_INPUT_READONLY,
25 SdlInputWidgetPair::SDL_INPUT_MASK, 0 };
27 const std::vector<std::string>& labels{
"foo",
"bar",
"gaga" };
30 auto rc = ilist.run(result);
32 if ((result.size() < labels.size()))
37static int runTest(fkt_t fkt)
41 SDL_Init(SDL_INIT_VIDEO);
56int main(
int argc,
char* argv[])
63 rc = runTest(auth_dialogs);