testAuth.cc File Reference
#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>
Include dependency graph for testAuth.cc:

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::ConfiggetConfig (char const *type_str)
 
static void setup_scheme (Auth::Config *scheme, char const **params, unsigned param_count)
 
static void fake_auth_setup ()
 

Variables

char const * stub_config
 

Function Documentation

CPPUNIT_TEST_SUITE_REGISTRATION ( testAuth  )
CPPUNIT_TEST_SUITE_REGISTRATION ( testAuthConfig  )
CPPUNIT_TEST_SUITE_REGISTRATION ( testAuthUserRequest  )
static void fake_auth_setup ( )
static
static char const* find_proxy_auth ( char const *  type)
static

Definition at line 50 of file testAuth.cc.

References NULL.

Referenced by testAuthConfig::create(), and testAuthUserRequest::scheme().

static Auth::Config* getConfig ( char const *  type_str)
static

Definition at line 69 of file testAuth.cc.

References assert, Auth::Scheme::Find(), NULL, and Auth::TheConfig.

Referenced by fake_auth_setup().

static void setup_scheme ( Auth::Config scheme,
char const **  params,
unsigned  param_count 
)
static

Definition at line 94 of file testAuth.cc.

References NULL, ConfigParser::SetCfgLine(), Auth::TheConfig, w_space, and xstrdup.

Referenced by fake_auth_setup().

Variable Documentation

char const* stub_config
Initial value:
="auth_param digest program /home/robertc/install/squid/libexec/digest_pw_auth /home/robertc/install/squid/etc/digest.pwd\n"
"auth_param digest children 5\n"
"auth_param digest realm Squid proxy-caching web server\n"
"auth_param digest nonce_garbage_interval 5 minutes\n"
"auth_param digest nonce_max_duration 30 minutes\n"
"auth_param digest nonce_max_count 50\n"

Definition at line 41 of file testAuth.cc.

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors