#include "squid.h"
#include "auth/Config.h"
#include "auth/Gadgets.h"
#include "auth/UserRequest.h"
#include "ConfigParser.h"
#include "testAuth.h"
#include "unitTestMain.h"
#include <iostream>
Go to the source code of this file.
Functions | |
CPPUNIT_TEST_SUITE_REGISTRATION (TestAuth) | |
CPPUNIT_TEST_SUITE_REGISTRATION (TestAuthConfig) | |
CPPUNIT_TEST_SUITE_REGISTRATION (TestAuthUserRequest) | |
static char const * | find_proxy_auth (char const *type) |
static Auth::Config * | getConfig (char const *type_str) |
static void | setup_scheme (Auth::Config *scheme, char const **params, unsigned param_count) |
static void | fake_auth_setup () |
int | main (int argc, char *argv[]) |
Variables | |
char const * | stub_config |
Function Documentation
◆ CPPUNIT_TEST_SUITE_REGISTRATION() [1/3]
CPPUNIT_TEST_SUITE_REGISTRATION | ( | TestAuth | ) |
◆ CPPUNIT_TEST_SUITE_REGISTRATION() [2/3]
CPPUNIT_TEST_SUITE_REGISTRATION | ( | TestAuthConfig | ) |
◆ CPPUNIT_TEST_SUITE_REGISTRATION() [3/3]
CPPUNIT_TEST_SUITE_REGISTRATION | ( | TestAuthUserRequest | ) |
◆ fake_auth_setup()
|
static |
Definition at line 108 of file testAuth.cc.
References authenticateInit(), getConfig(), Mem::Init(), NULL, setup_scheme(), and Auth::TheConfig.
Referenced by TestAuthConfig::create(), and TestAuthUserRequest::scheme().
◆ find_proxy_auth()
|
static |
Definition at line 50 of file testAuth.cc.
Referenced by TestAuthConfig::create(), and TestAuthUserRequest::scheme().
◆ getConfig()
|
static |
Definition at line 69 of file testAuth.cc.
References assert, Auth::Scheme::Find(), NULL, and Auth::TheConfig.
Referenced by fake_auth_setup().
◆ main()
Definition at line 291 of file testAuth.cc.
References TestProgram::run().
◆ setup_scheme()
|
static |
Definition at line 94 of file testAuth.cc.
References ConfigParser::SetCfgLine(), Auth::TheConfig, w_space, and xstrdup.
Referenced by fake_auth_setup().
Variable Documentation
◆ stub_config
char const* stub_config |
Definition at line 41 of file testAuth.cc.