testAuth.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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
void create()
Definition: testAuth.cc:163
CPPUNIT_TEST_SUITE(testAuthConfig)
CPPUNIT_TEST(create)
CPPUNIT_TEST_SUITE(testAuthUserRequest)
void instantiate()
Definition: testAuth.cc:38
CPPUNIT_TEST(instantiate)
CPPUNIT_TEST_SUITE(testAuth)
CPPUNIT_TEST_SUITE_END()

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors