10Duke Scale C++ Client
Loading...
Searching...
No Matches
DefaultOAuthDeviceFlowAuthorizationRequestTest Class Reference
Inheritance diagram for DefaultOAuthDeviceFlowAuthorizationRequestTest:
tenduke::test::URLMockingTest

Protected Member Functions

FakeRequest * mkRequest (const std::uint64_t localTimeoutS=100)
 
void SetUp () override
 
void stubAuthorizationRequest (const std::int64_t expiresIn=42, const std::int64_t interval=69)
 
void stubSuccessfulTokenRequest ()
 
void stubErrorResponses (const unsigned int numTimes, const std::string jsonPayload, const std::string error)
 
void stubAuthorizationPending (const unsigned int numTimes)
 
void stubSlowDown (const unsigned int numTimes)
 
- Protected Member Functions inherited from tenduke::test::URLMockingTest
void SetUp () override
 
void TearDown () override
 
virtual void mockDecode (const std::string &value, const std::string &decodedTo)
 
virtual void mockEncode (const std::string &value, const std::string &encodedTo)
 
virtual void mockParse (const std::string &value, const ::tenduke::net::URL &parsedTo)
 
virtual void mockIdentityURLDecoding ()
 
virtual void mockIdentityURLEncoding ()
 
virtual void mockDefaultURLParsing ()
 

Protected Attributes

std::shared_ptr< FakeRequest > request
 
std::shared_ptr<::ClockMockclock
 
std::shared_ptr<::HTTPClientMockhttpClient
 
std::shared_ptr<::JSONParserMockjsonParser
 
std::shared_ptr<::URLEncoderMockurlEncoder
 
std::map< std::string, std::shared_ptr<::JSONElement > > tokenResponseProps
 
- Protected Attributes inherited from tenduke::test::URLMockingTest
std::shared_ptr<::tenduke::test::mocks::URLDecoderMockurlDecoder
 
std::shared_ptr<::tenduke::test::mocks::URLEncoderMockurlEncoder
 
std::shared_ptr<::tenduke::test::mocks::URLParserMockurlParser
 
std::shared_ptr<::tenduke::net::SimpleURLServiceurlService
 

The documentation for this class was generated from the following file: