1#ifndef TENDUKE_TEST_MOCKS_OAUTHDEVICEFLOWAUTHORIZATIONREQUESTMOCK_H
2#define TENDUKE_TEST_MOCKS_OAUTHDEVICEFLOWAUTHORIZATIONREQUESTMOCK_H
4#include "oauth/device/OAuthDeviceFlowAuthorizationRequest.h"
6#include "gmock/gmock.h"
8namespace tenduke {
namespace test {
namespace mocks {
14 MOCK_METHOD((std::unique_ptr<tenduke::oauth::OAuthState>),
accessTokenRequest, (), (
override));
15 MOCK_METHOD(
void,
cancel, (), (
override));
17 static std::shared_ptr<OAuthDeviceFlowAuthorizationRequestMock> createShared()
19 return std::make_shared<OAuthDeviceFlowAuthorizationRequestMock>();
Device Authorization Response.
Definition DeviceAuthorizationResponse.h:18
Authorization request for OAuth Device Flow.
Definition OAuthDeviceFlowAuthorizationRequest.h:23
virtual std::unique_ptr< tenduke::oauth::OAuthState > accessTokenRequest()=0
Performs Device Access Token Request.
virtual void cancel()=0
Marks the request canceled.
virtual tenduke::oauth::device::DeviceAuthorizationResponse authorizationRequest()=0
Performs Device Authorization Request.
Definition OAuthDeviceFlowAuthorizationRequestMock.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4