1#ifndef TENDUKE_TEST_MOCKS_OAUTHBROWSERAUTHORIZATIONREQUESTMOCK_H
2#define TENDUKE_TEST_MOCKS_OAUTHBROWSERAUTHORIZATIONREQUESTMOCK_H
4#include "oauth/OAuthBrowserAuthorizationRequest.h"
6#include "gmock/gmock.h"
8namespace tenduke {
namespace test {
namespace mocks {
13 MOCK_METHOD((std::unique_ptr<tenduke::oauth::OAuthState>),
handleCallback, (
const std::string &redirectURI), (
const,
override));
16 static std::unique_ptr<OAuthBrowserAuthorizationRequestMock> createUnique()
OAuth-request to handle OAuth authorization using browser.
Definition OAuthBrowserAuthorizationRequest.h:20
virtual std::unique_ptr< OAuthState > handleCallback(const std::string &redirectURI) const =0
Handles callback: performs consequent actions to authorize.
virtual std::string buildAuthorizationRequestUrl() const =0
Creates the initial authorization request URL.
Definition OAuthBrowserAuthorizationRequestMock.h:11
Root for classes, functions and globals of 10Duke C++ Client.
Definition APIRequest.h:4