persistentstorage/sqlite3api/TEST/sqliteTestUtl.cpp
changeset 55 44f437012c90
parent 40 b8bdbc8f59c7
equal deleted inserted replaced
51:7d4490026038 55:44f437012c90
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    94 
    94 
    95 extern "C" void Print(const char* msg)
    95 extern "C" void Print(const char* msg)
    96 	{
    96 	{
    97 	TPtrC8 p((const unsigned char*)msg);
    97 	TPtrC8 p((const unsigned char*)msg);
    98 	TheBuf16.Copy(p);
    98 	TheBuf16.Copy(p);
    99 	RDebug::Print(TheBuf16);
    99 	TheTest->Printf(TheBuf16);
   100 	}
   100 	}
   101 
   101 
   102 extern "C" void PrintI(const char* fmt, int a1)
   102 extern "C" void PrintI(const char* fmt, int a1)
   103 	{
   103 	{
   104 	TPtrC8 p((const unsigned char*)fmt);
   104 	TPtrC8 p((const unsigned char*)fmt);
   105 	TheBuf16.Copy(p);
   105 	TheBuf16.Copy(p);
   106 	RDebug::Print(TheBuf16, a1);
   106 	TheTest->Printf(TheBuf16, a1);
   107 	}
   107 	}
   108 
   108 
   109 extern "C" void PrintIII(const char* fmt, int a1, int a2, int a3)
   109 extern "C" void PrintIII(const char* fmt, int a1, int a2, int a3)
   110 	{
   110 	{
   111 	TPtrC8 p((const unsigned char*)fmt);
   111 	TPtrC8 p((const unsigned char*)fmt);
   112 	TheBuf16.Copy(p);
   112 	TheBuf16.Copy(p);
   113 	RDebug::Print(TheBuf16, a1, a2, a3);
   113 	TheTest->Printf(TheBuf16, a1, a2, a3);
   114 	}
   114 	}
   115 
   115 
   116 extern "C" void PrintII64I64(const char* fmt, int a1, __int64 a2, __int64 a3)
   116 extern "C" void PrintII64I64(const char* fmt, int a1, __int64 a2, __int64 a3)
   117 	{
   117 	{
   118 	TPtrC8 p((const unsigned char*)fmt);
   118 	TPtrC8 p((const unsigned char*)fmt);
   119 	TheBuf16.Copy(p);
   119 	TheBuf16.Copy(p);
   120 	RDebug::Print(TheBuf16, a1, a2, a3);
   120 	TheTest->Printf(TheBuf16, a1, a2, a3);
   121 	}
   121 	}
   122 
   122 
   123 extern "C" void PrintSI(const char* fmt, const char* s, int a1)
   123 extern "C" void PrintSI(const char* fmt, const char* s, int a1)
   124 	{
   124 	{
   125 	TPtrC8 p((const unsigned char*)fmt);
   125 	TPtrC8 p((const unsigned char*)fmt);
   126 	TheBuf8.Format(TPtrC8((const TUint8*)fmt), s, a1);
   126 	TheBuf8.Format(TPtrC8((const TUint8*)fmt), s, a1);
   127 	TheBuf16.Copy(TheBuf8);
   127 	TheBuf16.Copy(TheBuf8);
       
   128 	TheTest->Printf(TheBuf16);
       
   129 	}
       
   130 
       
   131 extern "C" void PrintS(const char* fmt, const char* s)
       
   132 	{
       
   133 	TPtrC8 p((const unsigned char*)fmt);
       
   134 	TheBuf8.Format(TPtrC8((const TUint8*)fmt), s);
       
   135 	TheBuf16.Copy(TheBuf8);
       
   136 	TheTest->Printf(TheBuf16);
       
   137 	}
       
   138 
       
   139 extern "C" void ThreadPrint(const char* msg)
       
   140 	{
       
   141 	TPtrC8 p((const unsigned char*)msg);
       
   142 	TheBuf16.Copy(p);
   128 	RDebug::Print(TheBuf16);
   143 	RDebug::Print(TheBuf16);
   129 	}
   144 	}
   130 
   145 
   131 extern "C" void PrintS(const char* fmt, const char* s)
   146 extern "C" void ThreadPrintI(const char* fmt, int a1)
       
   147 	{
       
   148 	TPtrC8 p((const unsigned char*)fmt);
       
   149 	TheBuf16.Copy(p);
       
   150 	RDebug::Print(TheBuf16, a1);
       
   151 	}
       
   152 
       
   153 extern "C" void ThreadPrintIII(const char* fmt, int a1, int a2, int a3)
       
   154 	{
       
   155 	TPtrC8 p((const unsigned char*)fmt);
       
   156 	TheBuf16.Copy(p);
       
   157 	RDebug::Print(TheBuf16, a1, a2, a3);
       
   158 	}
       
   159 
       
   160 extern "C" void ThreadPrintII64I64(const char* fmt, int a1, __int64 a2, __int64 a3)
       
   161 	{
       
   162 	TPtrC8 p((const unsigned char*)fmt);
       
   163 	TheBuf16.Copy(p);
       
   164 	RDebug::Print(TheBuf16, a1, a2, a3);
       
   165 	}
       
   166 
       
   167 extern "C" void ThreadPrintSI(const char* fmt, const char* s, int a1)
       
   168 	{
       
   169 	TPtrC8 p((const unsigned char*)fmt);
       
   170 	TheBuf8.Format(TPtrC8((const TUint8*)fmt), s, a1);
       
   171 	TheBuf16.Copy(TheBuf8);
       
   172 	RDebug::Print(TheBuf16);
       
   173 	}
       
   174 
       
   175 extern "C" void ThreadPrintS(const char* fmt, const char* s)
   132 	{
   176 	{
   133 	TPtrC8 p((const unsigned char*)fmt);
   177 	TPtrC8 p((const unsigned char*)fmt);
   134 	TheBuf8.Format(TPtrC8((const TUint8*)fmt), s);
   178 	TheBuf8.Format(TPtrC8((const TUint8*)fmt), s);
   135 	TheBuf16.Copy(TheBuf8);
   179 	TheBuf16.Copy(TheBuf8);
   136 	RDebug::Print(TheBuf16);
   180 	RDebug::Print(TheBuf16);