10Duke Enterprise C++ Client
Loading...
Searching...
No Matches
OAuthClientMock.h
1
#ifndef TENDUKE_TEST_MOCKS_OAUTHCLIENTMOCK_H
2
#define TENDUKE_TEST_MOCKS_OAUTHCLIENTMOCK_H
3
4
#include "oauth/OAuthClient.h"
5
6
#include "gmock/gmock.h"
7
8
namespace
tenduke
{
namespace
test {
namespace
mocks {
9
10
class
OAuthClientMock
:
public
tenduke::oauth::OAuthClient
11
{
12
public
:
13
MOCK_METHOD((std::unique_ptr<const tenduke::oauth::OAuthRefreshRequest>),
refresh
, (std::shared_ptr<tenduke::oauth::OAuthState>), (
const
,
override
));
14
15
static
std::shared_ptr<OAuthClientMock> createShared()
16
{
17
return
std::make_shared<OAuthClientMock>();
18
}
19
};
20
}}}
21
22
23
24
#endif
//TENDUKE_TEST_MOCKS_OAUTHCLIENTMOCK_H
tenduke::oauth::OAuthClient
OAuth-client to initiate OAuth authorization flow.
Definition
OAuthClient.h:19
tenduke::oauth::OAuthClient::refresh
virtual std::unique_ptr< const tenduke::oauth::OAuthRefreshRequest > refresh(std::shared_ptr< tenduke::oauth::OAuthState > state) const =0
Creates OAuthRefreshRequest for refreshing the state.
tenduke::test::mocks::OAuthClientMock
Definition
OAuthClientMock.h:11
tenduke
Root for classes, functions and globals of 10Duke C++ Client.
Definition
APIRequest.h:4
core
oidc
core
test_utils
src
mocks
OAuthClientMock.h
Generated by
1.9.8