Merge branch 'cleaner-posix2' into cleaner-posix3

pull/5647/head
Craig Tiller 9 years ago
commit 108f4cc863
  1. 13
      test/core/security/jwt_verifier_test.c

@ -35,16 +35,17 @@
#include <string.h> #include <string.h>
#include "src/core/httpcli/httpcli.h" #include <grpc/grpc.h>
#include "src/core/security/b64.h"
#include "src/core/security/json_token.h"
#include "test/core/util/test_config.h"
#include <grpc/support/alloc.h> #include <grpc/support/alloc.h>
#include <grpc/support/log.h> #include <grpc/support/log.h>
#include <grpc/support/slice.h> #include <grpc/support/slice.h>
#include <grpc/support/string_util.h> #include <grpc/support/string_util.h>
#include "src/core/httpcli/httpcli.h"
#include "src/core/security/b64.h"
#include "src/core/security/json_token.h"
#include "test/core/util/test_config.h"
/* This JSON key was generated with the GCE console and revoked immediately. /* This JSON key was generated with the GCE console and revoked immediately.
The identifiers have been changed as well. The identifiers have been changed as well.
Maximum size for a string literal is 509 chars in C89, yay! */ Maximum size for a string literal is 509 chars in C89, yay! */
@ -568,6 +569,7 @@ static void test_jwt_verifier_bad_format(void) {
int main(int argc, char **argv) { int main(int argc, char **argv) {
grpc_test_init(argc, argv); grpc_test_init(argc, argv);
grpc_init();
test_claims_success(); test_claims_success();
test_expired_claims_failure(); test_expired_claims_failure();
test_invalid_claims_failure(); test_invalid_claims_failure();
@ -579,5 +581,6 @@ int main(int argc, char **argv) {
test_jwt_verifier_bad_json_key(); test_jwt_verifier_bad_json_key();
test_jwt_verifier_bad_signature(); test_jwt_verifier_bad_signature();
test_jwt_verifier_bad_format(); test_jwt_verifier_bad_format();
grpc_shutdown();
return 0; return 0;
} }

Loading…
Cancel
Save