X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=samltest%2Finternal.h;h=d7c3ea2697e260e0e588fdaa64ac2a2b040fea35;hb=a66e828b0836515824fe2c064e3f706ce7431825;hp=4575bc425603f3255bf264465a83fe5ae8ab92ff;hpb=a1fc8349ebc40c9dae9f50ca264efad71071bda8;p=shibboleth%2Fcpp-opensaml.git diff --git a/samltest/internal.h b/samltest/internal.h index 4575bc4..d7c3ea2 100644 --- a/samltest/internal.h +++ b/samltest/internal.h @@ -1,5 +1,5 @@ /* - * Copyright 2001-2006 Internet2 + * Copyright 2001-2007 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -14,19 +14,23 @@ * limitations under the License. */ +#ifdef WIN32 +# define _CRT_SECURE_NO_DEPRECATE 1 +# define _CRT_NONSTDC_NO_DEPRECATE 1 +#endif + #include #include #include -#include #include -#include -#include #include #include +#include +#include -using namespace opensaml; using namespace xmltooling; +using namespace xercesc; using namespace std; extern string data_path; @@ -102,10 +106,10 @@ protected: char* buf = NULL; if (!XMLString::equals(expectedString, testString)) { buf = XMLString::transcode(testString); - TS_TRACE(buf); + TS_TRACE(buf ? buf : "(NULL)"); XMLString::release(&buf); buf = XMLString::transcode(expectedString); - TS_TRACE(buf); + TS_TRACE(buf ? buf : "(NULL)"); XMLString::release(&buf); TSM_ASSERT(failMessage, false); } @@ -151,7 +155,7 @@ class SAMLObjectValidatorBaseTestCase : virtual public SAMLObjectBaseTestCase { XMLObject* target; /** QName of the object to be tested */ - QName targetQName; + xmltooling::QName targetQName; /** Builder for XMLObjects of type targetQName */ const XMLObjectBuilder* builder; @@ -221,7 +225,7 @@ class SAMLObjectValidatorBaseTestCase : virtual public SAMLObjectBaseTestCase { * @param targetQName QName of the type of object to build * @returns new XMLObject of type targetQName */ - XMLObject* buildXMLObject(QName &targetQName) { + XMLObject* buildXMLObject(xmltooling::QName &targetQName) { // Create the builder on the first request only, for efficiency if (builder == NULL) { builder = XMLObjectBuilder::getBuilder(targetQName);