testAuth.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9#ifndef SQUID_SRC_TEST_AUTH_H
10#define SQUID_SRC_TEST_AUTH_H
11
12#if USE_AUTH
13
14#include "compat/cppunit.h"
15
16/*
17 * test the auth Config framework
18 */
19
20class TestAuth: public CPPUNIT_NS::TestFixture
21{
25
26public:
27
28protected:
29 void instantiate();
30};
31
32class TestAuthConfig: public CPPUNIT_NS::TestFixture
33{
37
38public:
39
40protected:
41 void create();
42};
43
44class TestAuthUserRequest: public CPPUNIT_NS::TestFixture
45{
49
50public:
51
52protected:
53 void scheme();
55};
56
57#if HAVE_AUTH_MODULE_BASIC
59class TestAuthBasicUserRequest: public CPPUNIT_NS::TestFixture
60{
61 CPPUNIT_TEST_SUITE( TestAuthBasicUserRequest );
62 CPPUNIT_TEST( construction );
63 CPPUNIT_TEST( username );
64 CPPUNIT_TEST_SUITE_END();
65
66public:
67
68protected:
69 void construction();
70 void username();
71};
72#endif
73
74#if HAVE_AUTH_MODULE_DIGEST
76class TestAuthDigestUserRequest: public CPPUNIT_NS::TestFixture
77{
78 CPPUNIT_TEST_SUITE( TestAuthDigestUserRequest );
79 CPPUNIT_TEST( construction );
80 CPPUNIT_TEST( username );
81 CPPUNIT_TEST_SUITE_END();
82
83public:
84
85protected:
86 void construction();
87 void username();
88};
89#endif
90
91#if HAVE_AUTH_MODULE_NTLM
93class TestAuthNtlmUserRequest: public CPPUNIT_NS::TestFixture
94{
95 CPPUNIT_TEST_SUITE( TestAuthNtlmUserRequest );
96 CPPUNIT_TEST( construction );
97 CPPUNIT_TEST( username );
98 CPPUNIT_TEST_SUITE_END();
99
100public:
101
102protected:
103 void construction();
104 void username();
105};
106#endif
107
108#if HAVE_AUTH_MODULE_NEGOTIATE
110class TestAuthNegotiateUserRequest: public CPPUNIT_NS::TestFixture
111{
112 CPPUNIT_TEST_SUITE( TestAuthNegotiateUserRequest );
113 CPPUNIT_TEST( construction );
114 CPPUNIT_TEST( username );
115 CPPUNIT_TEST_SUITE_END();
116
117public:
118
119protected:
120 void construction();
121 void username();
122};
123#endif
124
125#endif /* USE_AUTH */
126#endif /* SQUID_SRC_TEST_AUTH_H */
127
CPPUNIT_TEST(create)
CPPUNIT_TEST_SUITE(TestAuthConfig)
void create()
Definition: testAuth.cc:163
CPPUNIT_TEST_SUITE(TestAuthUserRequest)
void instantiate()
Definition: testAuth.cc:38
CPPUNIT_TEST_SUITE(TestAuth)
CPPUNIT_TEST(instantiate)
CPPUNIT_TEST_SUITE_END()

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors