summaryrefslogtreecommitdiffstats
path: root/src/testlib/qplaintestlogger.cpp
diff options
context:
space:
mode:
authorJason McDonald <jason.mcdonald@nokia.com>2011-10-21 16:48:12 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-24 05:00:44 +0200
commitf49bd470990b838bb2c1a79605621e2d8c786a0b (patch)
tree2977e6f46a86f04a5809170473beb18fc2d2c0bf /src/testlib/qplaintestlogger.cpp
parent47fc4e0f8cd332621b09f80d17b20f1689d1e642 (diff)
Remove legacy Symbian code from qtestlib.
Change-Id: Ia4ac52ce0b5f5a4ba1fcd6594daf424fd7208777 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
Diffstat (limited to 'src/testlib/qplaintestlogger.cpp')
-rw-r--r--src/testlib/qplaintestlogger.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/testlib/qplaintestlogger.cpp b/src/testlib/qplaintestlogger.cpp
index b9ede07704..45fc882492 100644
--- a/src/testlib/qplaintestlogger.cpp
+++ b/src/testlib/qplaintestlogger.cpp
@@ -55,10 +55,6 @@
#include <windows.h>
#endif
-#if defined(Q_OS_SYMBIAN)
-#include <e32debug.h>
-#endif
-
#ifdef Q_OS_WINCE
#include <QtCore/QString>
#endif
@@ -217,27 +213,6 @@ void QPlainTestLogger::outputMessage(const char *str)
// OutputDebugString is not threadsafe
OutputDebugStringA(str);
LeaveCriticalSection(&QTest::outputCriticalSection);
-#elif defined(Q_OS_SYMBIAN)
- // RDebug::Print has a cap of 256 characters so break it up
- TPtrC8 ptr(reinterpret_cast<const TUint8*>(str));
- _LIT(format, "[QTestLib] %S");
- const int maxBlockSize = 256 - ((const TDesC &)format).Length();
- HBufC* hbuffer = HBufC::New(maxBlockSize);
- if (hbuffer) {
- for (int i = 0; i < ptr.Length(); i += maxBlockSize) {
- int size = Min(maxBlockSize, ptr.Length() - i);
- hbuffer->Des().Copy(ptr.Mid(i, size));
- RDebug::Print(format, hbuffer);
- }
- delete hbuffer;
- }
- else {
- // fast, no allocations, but truncates silently
- RDebug::RawPrint(format);
- TPtrC8 ptr(reinterpret_cast<const TUint8*>(str));
- RDebug::RawPrint(ptr);
- RDebug::RawPrint(_L8("\n"));
- }
#endif
outputString(str);
}