#define SQUID_UNIT_TEST 1
-#include "squid-old.h"
+#include "squid.h"
#if USE_AUTH
-#include "testACLMaxUserIP.h"
#include "auth/AclMaxUserIp.h"
+#include "ConfigParser.h"
+#include "testACLMaxUserIP.h"
#if HAVE_STDEXCEPT
#include <stdexcept>
CPPUNIT_TEST_SUITE_REGISTRATION( testACLMaxUserIP );
-
void
testACLMaxUserIP::testDefaults()
{
CPPUNIT_ASSERT(!anACL.valid());
}
-
void
testACLMaxUserIP::testParseLine()
{
/* a config line to pass with a lead-in token to seed the parser. */
- char * line = xstrdup("token -s 1");
+ char * line = xstrdup("-s 1");
/* seed the parser */
- strtok(line, w_space);
+ ConfigParser::SetCfgLine(line);
ACLMaxUserIP anACL("max_user_ip");
anACL.parse();
/* we want a maximum of one, and strict to be true */