4#include <QtTest/private/qtestjunitstreamer_p.h>
5#include <QtTest/private/qjunittestlogger_p.h>
6#include <QtTest/private/qtestelement_p.h>
7#include <QtTest/private/qtestelementattribute_p.h>
8#include <QtTest/qtestassert.h>
9#include <QtTest/private/qtestlog_p.h>
10#include <QtTest/private/qtestresult_p.h>
11#include <QtTest/private/qxmltestlogger_p.h>
25 if (
size == 0)
return;
33 while (element &&
buf+2 < endbuf) {
43 if (!element || !formatted )
47 indentForElement(element, indent,
sizeof(indent));
59 if (!element || !formatted )
63 formatted->
data()[0] =
'\0';
68 indentForElement(element, indent,
sizeof(indent));
73bool QTestJUnitStreamer::formatAttributes(
const QTestElement* element,
97 if (!element || !formatted )
116 outputString(
"<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n");
void outputString(const char *msg)
Convenience method to write msg to the output stream.
const QChar * constData() const
Returns a pointer to the data stored in the QString.
const std::vector< QTestElementAttribute * > & attributes() const
QTest::LogElementType elementType() const
const char * elementName() const
const std::vector< QTestElement * > & childElements() const
const QTestElement * parentElement() const
void output(QTestElement *element) const
void formatEnd(const QTestElement *element, QTestCharBuffer *formatted) const
void outputElements(const std::vector< QTestElement * > &) const
void formatStart(const QTestElement *element, QTestCharBuffer *formatted) const
QTestJUnitStreamer(QJUnitTestLogger *logger)
void formatAfterAttributes(const QTestElement *element, QTestCharBuffer *formatted) const
void outputElementAttributes(const QTestElement *element, const std::vector< QTestElementAttribute * > &attributes) const
void outputString(const char *msg) const
static bool xmlCdata(QTestCharBuffer *dest, char const *src)
static bool xmlQuote(QTestCharBuffer *dest, char const *src)
Combined button and popup list for selecting options.
int qt_asprintf(QTestCharBuffer *str, const char *format,...)
static QString quotedValue(const QString &data)
EGLOutputLayerEXT EGLint attribute
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLenum GLsizei const GLchar * buf
#define QTEST_ASSERT(cond)
static const QTextHtmlElement elements[Html_NumElements]
QT_BEGIN_NAMESPACE typedef uchar * output