10Duke Scale C++ Client
Loading...
Searching...
No Matches
BaseFactoryScopeTest.h
1// Shared base fixture for factory scope tests
2#ifndef TENDUKE_CLIENT_SE_TEST_BASEFACTORYSCOPETEST_H
3#define TENDUKE_CLIENT_SE_TEST_BASEFACTORYSCOPETEST_H
4
5#include <memory>
6
7#include "gtest/gtest.h"
8
9// Mocks from test utils
10#include "mocks/Base64DecoderMock.h"
11#include "mocks/ClockMock.h"
12#include "mocks/HTTPClientMock.h"
13#include "mocks/JSONParserMock.h"
14#include "mocks/JWTParserFactoryMock.h"
15#include "mocks/PublicKeyFactoryMock.h"
16#include "mocks/URLsMock.h"
17#include "mocks/OIDCClientFactoryMock.h"
18
19#include "TendukeServices.h"
20
21using ::tenduke::TendukeServices;
32
33using ::testing::Test;
34
35namespace tenduke { namespace se { namespace test {
36
37class BaseFactoryScopeTest : public ::Test {
38public:
39 static ::TendukeServices makeServices() {
40 return ::tenduke::TendukeServices(
41 std::make_shared<::Base64DecoderMock>(),
42 std::make_shared<::ClockMock>(),
43 std::make_shared<::HTTPClientMock>(nullptr),
44 std::make_shared<::JSONParserMock>(),
45 std::make_shared<::JWKSParser>(nullptr, nullptr),
46 ::JWTParserFactoryMock::createShared(),
47 std::make_shared<::AutoDiscovery>(nullptr, nullptr, nullptr),
48 std::make_shared<::URLsMock>(),
49 std::make_shared<::OIDCClientFactoryMock>(),
50 std::make_shared<::PublicKeyFactoryMock>()
51 );
52 }
53};
54
55}}}
56
57#endif // TENDUKE_CLIENT_SE_TEST_BASEFACTORYSCOPETEST_H
Parses JSON Web Key Set (JWKS)-document.
Definition JWKSParser.h:20
Service for querying OIDC configuration from known URL.
Definition AutoDiscovery.h:69
Definition BaseFactoryScopeTest.h:37
Definition Base64DecoderMock.h:9
Definition ClockMock.h:13
Definition HTTPClientMock.h:14
Definition JSONParserMock.h:11
Definition JWTParserFactoryMock.h:9
Definition OIDCClientFactoryMock.h:11
Definition PublicKeyFactoryMock.h:9
Definition URLsMock.h:13
Classes, functions and globals of 10Duke Scale C++ Client.
Definition AbstractClientFactory.h:16
Root for classes, functions and globals of 10Duke C++ Client.
Definition AbstractClientFactory.h:16