mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 13:47:10 +01:00
added OAuth20Credentials class, some minor OAuth10Credentials fixes
This commit is contained in:
44
Net/testsuite/src/OAuth20CredentialsTest.h
Normal file
44
Net/testsuite/src/OAuth20CredentialsTest.h
Normal file
@@ -0,0 +1,44 @@
|
||||
//
|
||||
// OAuth20CredentialsTest.h
|
||||
//
|
||||
// $Id$
|
||||
//
|
||||
// Definition of the OAuth20CredentialsTest class.
|
||||
//
|
||||
// Copyright (c) 2014, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#ifndef OAuth20CredentialsTest_INCLUDED
|
||||
#define OAuth20CredentialsTest_INCLUDED
|
||||
|
||||
|
||||
#include "Poco/Net/Net.h"
|
||||
#include "CppUnit/TestCase.h"
|
||||
|
||||
|
||||
class OAuth20CredentialsTest: public CppUnit::TestCase
|
||||
{
|
||||
public:
|
||||
OAuth20CredentialsTest(const std::string& name);
|
||||
~OAuth20CredentialsTest();
|
||||
|
||||
void testAuthorize();
|
||||
void testAuthorizeCustomScheme();
|
||||
void testExtract();
|
||||
void testExtractCustomScheme();
|
||||
void testExtractNoCreds();
|
||||
|
||||
void setUp();
|
||||
void tearDown();
|
||||
|
||||
static CppUnit::Test* suite();
|
||||
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
#endif // OAuth20CredentialsTest_INCLUDED
|
||||
Reference in New Issue
Block a user