mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-12-02 01:24:25 +00:00
Move gtest main, makefile improvements
* Move gtest main into separate file to keep testfiles clean. * Add explicit std=c++11 to support compilers where c++11 is not yet the default. * Remove -lssl because only crypto is needed
This commit is contained in:
@@ -10,12 +10,6 @@ namespace {
|
||||
extern std::string ecdsa_pub_key_invalid;
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
return RUN_ALL_TESTS();
|
||||
}
|
||||
|
||||
TEST(TokenTest, DecodeToken) {
|
||||
std::string token = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXUyJ9.eyJpc3MiOiJhdXRoMCJ9.AbIJTDMFc7yUa5MhvcP03nJPyCPzZtQcGEp-zWfOkEE";
|
||||
auto decoded = jwt::decode(token);
|
||||
|
||||
Reference in New Issue
Block a user