|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <stdexcept>#include <oauth/oauth_session.h>#include <oauth/secure_token_store.h>#include <remote_provider_client.h>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (DiscoveryFetchesWellKnownMetadata) | |
| BOOST_AUTO_TEST_CASE (OAuthServerMetadataFetchParsesRfc8414Fields) | |
| BOOST_AUTO_TEST_CASE (ManifestParsesDigestSizeAndDownloadUrls) | |
| BOOST_AUTO_TEST_CASE (AuthorizationCodeExchangeParsesTokens) | |
| BOOST_AUTO_TEST_CASE (RefreshTokenExchangeParsesTokens) | |
| BOOST_AUTO_TEST_CASE (RevokeTokenPostsToRevocationEndpoint) | |
| BOOST_AUTO_TEST_CASE | ( | AuthorizationCodeExchangeParsesTokens | ) |
Definition at line 196 of file test_remote_provider_client.cpp.
References OAUTH_TOKEN_SET::access_token, REMOTE_PROVIDER_METADATA::auth, REMOTE_PROVIDER_OAUTH_SERVER_METADATA::authorization_endpoint, REMOTE_PROVIDER_HTTP_REQUEST::body, REMOTE_PROVIDER_HTTP_RESPONSE::body, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), OAUTH_SESSION::client_id, REMOTE_PROVIDER_AUTH_METADATA::client_id, REMOTE_PROVIDER_HTTP_REQUEST::method, POST, OAUTH_TOKEN_SET::refresh_token, REMOTE_PROVIDER_HTTP_RESPONSE::status_code, REMOTE_PROVIDER_OAUTH_SERVER_METADATA::token_endpoint, OAUTH_TOKEN_SET::token_type, and REMOTE_PROVIDER_HTTP_REQUEST::url.
| BOOST_AUTO_TEST_CASE | ( | DiscoveryFetchesWellKnownMetadata | ) |
Definition at line 117 of file test_remote_provider_client.cpp.
References REMOTE_PROVIDER_HTTP_RESPONSE::body, BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), REMOTE_PROVIDER_HTTP_RESPONSE::status_code, and REMOTE_PROVIDER_HTTP_REQUEST::url.
| BOOST_AUTO_TEST_CASE | ( | ManifestParsesDigestSizeAndDownloadUrls | ) |
Definition at line 167 of file test_remote_provider_client.cpp.
References REMOTE_PROVIDER_HTTP_RESPONSE::body, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), GET, REMOTE_PROVIDER_HTTP_REQUEST::method, REMOTE_PROVIDER_HTTP_RESPONSE::status_code, and REMOTE_PROVIDER_HTTP_REQUEST::url.
| BOOST_AUTO_TEST_CASE | ( | OAuthServerMetadataFetchParsesRfc8414Fields | ) |
Definition at line 142 of file test_remote_provider_client.cpp.
References REMOTE_PROVIDER_HTTP_RESPONSE::body, BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), REMOTE_PROVIDER_HTTP_RESPONSE::status_code, and REMOTE_PROVIDER_HTTP_REQUEST::url.
| BOOST_AUTO_TEST_CASE | ( | RefreshTokenExchangeParsesTokens | ) |
| BOOST_AUTO_TEST_CASE | ( | RevokeTokenPostsToRevocationEndpoint | ) |
Definition at line 267 of file test_remote_provider_client.cpp.
References REMOTE_PROVIDER_HTTP_REQUEST::body, REMOTE_PROVIDER_HTTP_RESPONSE::body, REMOTE_PROVIDER_OAUTH_SERVER_METADATA::revocation_endpoint, and REMOTE_PROVIDER_HTTP_RESPONSE::status_code.