/*
- * Copyright (C) 1996-2014 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#include <cppunit/TestAssert.h>
-#include "Mem.h"
-#include "testURL.h"
-#include "URL.h"
+#include "anyp/Uri.h"
+#include "Debug.h"
+#include "tests/testURL.h"
+#include "unitTestMain.h"
#include <sstream>
testURL::setUp()
{
Mem::Init();
+ AnyP::UriScheme::Init();
}
/*
testURL::testConstructScheme()
{
AnyP::UriScheme empty_scheme;
- URL protoless_url(AnyP::PROTO_NONE);
+ AnyP::Uri protoless_url(AnyP::PROTO_NONE);
CPPUNIT_ASSERT_EQUAL(empty_scheme, protoless_url.getScheme());
AnyP::UriScheme ftp_scheme(AnyP::PROTO_FTP);
- URL ftp_url(AnyP::PROTO_FTP);
+ AnyP::Uri ftp_url(AnyP::PROTO_FTP);
CPPUNIT_ASSERT_EQUAL(ftp_scheme, ftp_url.getScheme());
}
testURL::testDefaultConstructor()
{
AnyP::UriScheme aScheme;
- URL aUrl;
+ AnyP::Uri aUrl;
CPPUNIT_ASSERT_EQUAL(aScheme, aUrl.getScheme());
- URL *urlPointer = new URL;
+ auto *urlPointer = new AnyP::Uri;
CPPUNIT_ASSERT(urlPointer != NULL);
delete urlPointer;
}
+