45 #include "QtTest/private/qtestlog_p.h" 46 #include "QtTest/private/qtestresult_p.h" 47 #include "QtTest/private/qxmltestlogger_p.h" 60 if (size == 0)
return;
66 char* endbuf = buf + size;
68 while (element && buf+2 < endbuf) {
78 if(!element || !formatted )
99 if (!element || !formatted )
103 formatted->
data()[0] =
'\0';
115 if(!attribute || !formatted )
134 key = attribute->
name();
141 formatted->
data()[0] =
'\0';
147 if(!element || !formatted )
168 outputString(
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
#define QT_END_NAMESPACE
This macro expands to.
const char * value() const
virtual void outputElementAttributes(const QTestElement *element, QTestElementAttribute *attribute) const
int qt_asprintf(QTestCharBuffer *str, const char *format,...)
void formatAttributes(const QTestElement *element, const QTestElementAttribute *attribute, QTestCharBuffer *formatted) const
static int xmlCdata(QTestCharBuffer *dest, char const *src)
const QTestElement * parentElement() const
virtual void output(QTestElement *element) const
QTestElement * childElements() const
void formatStart(const QTestElement *element, QTestCharBuffer *formatted) const
const char * name() const
#define QT_BEGIN_NAMESPACE
This macro expands to.
const char * constData() const
void formatAfterAttributes(const QTestElement *element, QTestCharBuffer *formatted) const
void outputElements(QTestElement *element, bool isChildElement=false) const
void output(QTestElement *element) const
static QString quotedValue(const QString &data)
virtual void formatBeforeAttributes(const QTestElement *element, QTestCharBuffer *formatted) const
void formatEnd(const QTestElement *element, QTestCharBuffer *formatted) const
static int xmlQuote(QTestCharBuffer *dest, char const *src)
QTestElementAttribute * attributes() const
const char * elementName() const
void outputString(const char *msg) const
static void indentForElement(const QTestElement *element, char *buf, int size)
QTest::LogElementType elementType() const
AttributeIndex
This enum numbers the different tests.
QTest::AttributeIndex index() const