namespace {
+constexpr char EXAMPLE_CLIENT_JSON[] = "{\"some_json\": 42}";
+
template <class WauthnCallbacks>
struct ResponseCallbackArgumentsTest {
- static constexpr const char EXAMPLE_CLIENT_JSON[] = "{\"some_json\": 42}";
-
std::string called;
bool addLinkedData = false;
bool nonEmptyUserId = false;
test.addLinkedData = addLinkedData;
test.nonEmptyUserId = nonEmptyUserId;
// Transaction params
- clientDataJson = ToWauthnConstBuff(test.EXAMPLE_CLIENT_JSON);
+ clientDataJson = ToWauthnConstBuff(EXAMPLE_CLIENT_JSON);
test.clientData.client_data_json = &clientDataJson;
auto transactionResultProcessor = [&](auto &result) {
result.ctapResult.response.m_authDataRaw = BUFFER("auth data");