X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils%2Foauth%2Foauth_test.c;h=36f212558577688500482b43309b4c733192d77c;hb=21c84cec32921e6de8feaa5496f337496379ea23;hp=aa6e99a3856f40eb0a81bd1c3cf4b4c1720d3e3e;hpb=839dbf244f96d08c02d18e1fc64264b1740e6fc6;p=collectd.git diff --git a/src/utils/oauth/oauth_test.c b/src/utils/oauth/oauth_test.c index aa6e99a3..36f21255 100644 --- a/src/utils/oauth/oauth_test.c +++ b/src/utils/oauth/oauth_test.c @@ -35,21 +35,29 @@ struct { } cases[] = { { "{\"access_token\":\"MaeC6kaePhie1ree\",\"expires_in\":3600}", - /* status = */ 0, "MaeC6kaePhie1ree", TIME_T_TO_CDTIME_T_STATIC(3600), + /* status = */ 0, + "MaeC6kaePhie1ree", + TIME_T_TO_CDTIME_T_STATIC(3600), }, { "{\"token_type\":\"Bearer\",\"expires_in\":1800,\"access_token\":" "\"aeThiebee2gushuY\"}", - /* status = */ 0, "aeThiebee2gushuY", TIME_T_TO_CDTIME_T_STATIC(1800), + /* status = */ 0, + "aeThiebee2gushuY", + TIME_T_TO_CDTIME_T_STATIC(1800), }, { "{\"ignored_key\":\"uaph5aewaeghi1Ge\",\"expires_in\":3600}", - /* status = */ -1, NULL, 0, + /* status = */ -1, + NULL, + 0, }, { /* expires_in missing */ "{\"access_token\":\"shaephohbie9Ahch\"}", - /* status = */ -1, NULL, 0, + /* status = */ -1, + NULL, + 0, }, };