persistentstorage/sql/TEST/t_sqlperformance5.cpp
author hgs
Tue, 06 Jul 2010 11:54:49 +0100
changeset 31 ba1c4f4a893f
parent 28 7a522c0700d3
child 55 44f437012c90
child 56 839ea9debada
permissions -rw-r--r--
201025_02
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
28
7a522c0700d3 201019_09
hgs
parents:
diff changeset
     1
// Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
7a522c0700d3 201019_09
hgs
parents:
diff changeset
     2
// All rights reserved.
7a522c0700d3 201019_09
hgs
parents:
diff changeset
     3
// This component and the accompanying materials are made available
7a522c0700d3 201019_09
hgs
parents:
diff changeset
     4
// under the terms of "Eclipse Public License v1.0"
7a522c0700d3 201019_09
hgs
parents:
diff changeset
     5
// which accompanies this distribution, and is available
7a522c0700d3 201019_09
hgs
parents:
diff changeset
     6
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
7a522c0700d3 201019_09
hgs
parents:
diff changeset
     7
//
7a522c0700d3 201019_09
hgs
parents:
diff changeset
     8
// Initial Contributors:
7a522c0700d3 201019_09
hgs
parents:
diff changeset
     9
// Nokia Corporation - initial contribution.
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    10
//
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    11
// Contributors:
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    12
//
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    13
// Description: MDS harvesting performance test
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    14
//
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    15
#include <e32test.h>
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    16
#include <e32math.h>
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    17
#include <bautils.h>
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    18
#include <hal.h>
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    19
#include <sqldb.h>
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    20
#include "t_sqlcmdlineutil.h"
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    21
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    22
RTest 			TheTest(_L("t_sqlperformance5 test"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    23
RSqlDatabase 	TheDb;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    24
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    25
_LIT(KDbName, 	"c:\\test\\t_sqlperformance5.db");
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    26
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    27
TFileName		TheDbFileName;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    28
TBuf<200> 		TheTestTitle;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    29
TCmdLineParams 	TheCmdLineParams(TCmdLineParams::EDbUtf16, 16384, 32);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    30
TBuf8<200> 		TheSqlConfigString;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    31
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    32
_LIT(KUtf8,  "UTF8 ");
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    33
_LIT(KUtf16, "UTF16");
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    34
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    35
const TInt KThumbnailCount = 60;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    36
const TInt KMaxThumbnailSize = 40 * 1024;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    37
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    38
const TInt KThumbnailSizes[KThumbnailCount] = 
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    39
		{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    40
		//1    2      3      4      5      6      7      8      9      10
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    41
		22054, 24076, 33281, 24733, 33094, 31443, 29264, 28725, 31798, 29322, //1
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    42
		25002, 26926, 31097, 21988, 33659, 29081, 33050, 36857, 37686, 24034, //2
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    43
		21093, 28314, 20186, 27222, 28600, 32735, 27279, 31898, 31380, 36316, //3
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    44
		34295, 31642, 21829, 32912, 31584, 32557, 36601, 22744, 32808, 26130, //4
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    45
		31222, 21545, 35899, 22257, 25856, 31169, 34893, 23496, 23034, 30381, //5
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    46
		25810, 27123, 33442, 22275, 30260, 31028, 32415, 27345, 26614, 33704  //6
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    47
		};
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    48
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    49
TInt TheFastCounterFreq = 0;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    50
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    51
TInt TheCreateDbTime = 0;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    52
TInt TheCreateTablesTime = 0;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    53
TInt TheBindParamsTime = 0;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    54
TInt TheStmtExecTime = 0;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    55
TInt TheStmtResetTime = 0;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    56
TInt ThePopulateTempTableTime = 0;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    57
TInt TheFlushTime = 0;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    58
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    59
////////////////////////////////////////////////////////////////////////////////////////////////////
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    60
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    61
void TestEnvDestroy()
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    62
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    63
	TheDb.Close();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    64
	(void)RSqlDatabase::Delete(TheDbFileName);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    65
	ResetSoftHeapLimit();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    66
	}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    67
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    68
///////////////////////////////////////////////////////////////////////////////////////
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    69
///////////////////////////////////////////////////////////////////////////////////////
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    70
//Test macros and functions
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    71
void Check1(TInt aValue, TInt aLine)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    72
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    73
	if(!aValue)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    74
		{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    75
		TestEnvDestroy();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    76
		TheTest.Printf(_L("*** Line %d\r\n"), aLine);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    77
		TheTest(EFalse, aLine);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    78
		}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    79
	}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    80
void Check2(TInt aValue, TInt aExpected, TInt aLine)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    81
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    82
	if(aValue != aExpected)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    83
		{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    84
		TSqlRetCodeClass cl = SqlRetCodeClass(aValue);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    85
		if(cl == ESqlDbError)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    86
			{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    87
			TPtrC errmsg = TheDb.LastErrorMessage();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    88
			TheTest.Printf(_L("*** SQLite err=\"%S\"\r\n"), &errmsg);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    89
			}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    90
		TestEnvDestroy();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    91
		TheTest.Printf(_L("*** Line %d, Expected error: %d, got: %d\r\n"), aLine, aExpected, aValue);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    92
		TheTest(EFalse, aLine);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    93
		}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    94
	}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    95
#define TEST(arg) ::Check1((arg), __LINE__)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    96
#define TEST2(aValue, aExpected) ::Check2(aValue, aExpected, __LINE__)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    97
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    98
///////////////////////////////////////////////////////////////////////////////////////
7a522c0700d3 201019_09
hgs
parents:
diff changeset
    99
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   100
void TestEnvInit()
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   101
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   102
	RFs fs;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   103
	TInt err = fs.Connect();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   104
	TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   105
	err = fs.MkDirAll(TheDbFileName);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   106
	TEST(err == KErrNone || err == KErrAlreadyExists);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   107
	fs.Close();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   108
	}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   109
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   110
TInt TimeDiffUs(TUint32 aStartTicks, TUint32 aEndTicks)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   111
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   112
	if(TheFastCounterFreq == 0)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   113
		{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   114
		TEST2(HAL::Get(HAL::EFastCounterFrequency, TheFastCounterFreq), KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   115
		TheTest.Printf(_L("==Fast counter frequency: %d Hz\r\n"), TheFastCounterFreq);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   116
		}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   117
	TInt64 diffTicks = (TInt64)aEndTicks - (TInt64)aStartTicks;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   118
	if(diffTicks < 0)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   119
		{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   120
		diffTicks = KMaxTUint32 + diffTicks + 1;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   121
		}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   122
	const TInt KMicroSecIn1Sec = 1000000;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   123
	TInt us = (diffTicks * KMicroSecIn1Sec) / TheFastCounterFreq;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   124
	return us;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   125
	}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   126
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   127
void PrintTime(const TDesC& aFmt, TUint32 aStartTicks, TUint32 aEndTicks)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   128
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   129
	TInt us = TimeDiffUs(aStartTicks, aEndTicks);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   130
	TheTest.Printf(aFmt, us);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   131
	}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   132
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   133
//=============================================================================
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   134
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   135
/**
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   136
@SYMTestCaseID			PDS-SQL-CT-4205
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   137
@SYMTestCaseDesc		Thumbnail database performance test.
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   138
@SYMTestPriority		Medium
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   139
@SYMTestActions			The test executes statements to create the thumbnail database.  
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   140
@SYMTestExpectedResults The test must not fail
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   141
@SYMDEF					ou1cimx1#362240
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   142
*/
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   143
void CreateDb()
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   144
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   145
	(void)RSqlDatabase::Delete(TheDbFileName);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   146
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   147
	TUint32 fc1 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   148
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   149
	TInt err = TheDb.Create(TheDbFileName, &TheSqlConfigString);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   150
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   151
	TUint32 fc2 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   152
	TheCreateDbTime = TimeDiffUs(fc1, fc2);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   153
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   154
	TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   155
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   156
	fc1 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   157
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   158
	err = TheDb.Exec(_L("CREATE TABLE ThumbnailInfo (Path TEXT COLLATE NOCASE,TNId INTEGER,Size INTEGER,Format INTEGER,TNPath TEXT COLLATE NOCASE,Width INTEGER,Height INTEGER,OrigWidth INTEGER,OrigHeight INTEGER,Flags INTEGER,VideoPosition INTEGER,Orientation INTEGER,humbFromPath INTEGER,Modified LARGEINT);"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   159
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   160
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   161
	err = TheDb.Exec(_L("CREATE TABLE ThumbnailInfoData(Data BLOB);"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   162
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   163
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   164
	err = TheDb.Exec(_L("CREATE TABLE ThumbnailDeleted(Path TEXT UNIQUE COLLATE NOCASE);"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   165
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   166
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   167
	err = TheDb.Exec(_L("CREATE INDEX idx1 ON ThumbnailInfo(Path, Size);"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   168
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   169
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   170
	err = TheDb.Exec(_L("CREATE INDEX idx4 ON ThumbnailDeleted(Path);"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   171
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   172
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   173
	err = TheDb.Exec(_L("CREATE TABLE ThumbnailVersion (Major INTEGER,Minor INTEGER,IMEI TEXT COLLATE NOCASE);"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   174
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   175
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   176
	fc2 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   177
	TheCreateTablesTime = TimeDiffUs(fc1, fc2);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   178
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   179
	TheDb.Close();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   180
	}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   181
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   182
void PoulateTempTables(RSqlStatement& aStmt1, RSqlStatement& aStmt2)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   183
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   184
	HBufC8* thumbnailBuf = HBufC8::New(KMaxThumbnailSize);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   185
	TEST(thumbnailBuf != NULL);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   186
	TPtr8 thumbnailData = thumbnailBuf->Des();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   187
	thumbnailData.SetLength(KMaxThumbnailSize);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   188
	thumbnailData.Fill(TChar('A'));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   189
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   190
	TUint32 fc3 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   191
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   192
	for(TInt i=0;i<KThumbnailCount;++i)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   193
		{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   194
		TUint32 fc1 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   195
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   196
		TInt paramIndex = aStmt1.ParameterIndex(_L(":Path"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   197
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   198
		TInt err = aStmt1.BindText(paramIndex, _L("c:\\test\\abcdefgh123456789.jpg"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   199
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   200
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   201
		paramIndex = aStmt1.ParameterIndex(_L(":Width"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   202
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   203
		err = aStmt1.BindInt(paramIndex, 50);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   204
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   205
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   206
		paramIndex = aStmt1.ParameterIndex(_L(":Height"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   207
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   208
		err = aStmt1.BindInt(paramIndex, 40);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   209
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   210
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   211
		paramIndex = aStmt1.ParameterIndex(_L(":OrigWidth"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   212
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   213
		err = aStmt1.BindInt(paramIndex, 1000);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   214
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   215
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   216
		paramIndex = aStmt1.ParameterIndex(_L(":OrigHeight"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   217
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   218
		err = aStmt1.BindInt(paramIndex, 2000);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   219
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   220
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   221
		paramIndex = aStmt1.ParameterIndex(_L(":Format"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   222
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   223
		err = aStmt1.BindInt(paramIndex, 10);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   224
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   225
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   226
		paramIndex = aStmt1.ParameterIndex(_L(":Flags"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   227
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   228
		err = aStmt1.BindInt(paramIndex, 0x1E);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   229
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   230
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   231
		paramIndex = aStmt1.ParameterIndex(_L(":Size"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   232
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   233
		err = aStmt1.BindInt(paramIndex, 1200);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   234
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   235
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   236
		paramIndex = aStmt1.ParameterIndex(_L(":Orient"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   237
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   238
		err = aStmt1.BindInt(paramIndex, 2);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   239
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   240
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   241
		paramIndex = aStmt1.ParameterIndex(_L(":ThumbFromPath"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   242
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   243
		err = aStmt1.BindInt(paramIndex, 1);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   244
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   245
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   246
		paramIndex = aStmt1.ParameterIndex(_L(":Modified"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   247
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   248
		err = aStmt1.BindInt64(paramIndex, 3212398543392LL);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   249
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   250
		
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   251
		TUint32 fc2 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   252
		TheBindParamsTime += TimeDiffUs(fc1, fc2);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   253
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   254
		fc1 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   255
		err = aStmt1.Exec();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   256
		fc2 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   257
		TheStmtExecTime += TimeDiffUs(fc1, fc2);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   258
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   259
		TEST2(err, 1);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   260
		
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   261
		fc1 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   262
		err = aStmt1.Reset();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   263
		fc2 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   264
		TheStmtResetTime += TimeDiffUs(fc1, fc2);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   265
		
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   266
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   267
		
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   268
		thumbnailData.SetLength(KThumbnailSizes[i]);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   269
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   270
		fc1 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   271
		paramIndex = aStmt2.ParameterIndex(_L(":Data"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   272
		TEST(paramIndex >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   273
		err = aStmt2.BindBinary(paramIndex, thumbnailData);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   274
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   275
		fc2 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   276
		TheBindParamsTime += TimeDiffUs(fc1, fc2);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   277
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   278
		fc1 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   279
		err = aStmt2.Exec();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   280
		fc2 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   281
		TheStmtExecTime += TimeDiffUs(fc1, fc2);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   282
		
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   283
		TEST2(err, 1);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   284
		
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   285
		fc1 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   286
		err = aStmt2.Reset();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   287
		fc2 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   288
		TheStmtResetTime += TimeDiffUs(fc1, fc2);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   289
		
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   290
		TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   291
		}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   292
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   293
	TUint32 fc4 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   294
	ThePopulateTempTableTime += TimeDiffUs(fc3, fc4);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   295
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   296
	delete thumbnailBuf;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   297
	}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   298
31
ba1c4f4a893f 201025_02
hgs
parents: 28
diff changeset
   299
void FlushTempTables()
28
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   300
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   301
	TUint32 fc1 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   302
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   303
	TInt err = TheDb.Exec(_L("BEGIN TRANSACTION"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   304
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   305
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   306
	err = TheDb.Exec(_L("INSERT INTO ThumbnailInfo SELECT * FROM TempThumbnailInfo;"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   307
	TEST2(err, KThumbnailCount);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   308
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   309
	err = TheDb.Exec(_L("INSERT INTO ThumbnailInfoData SELECT * FROM TempThumbnailInfoData;"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   310
	TEST2(err, KThumbnailCount);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   311
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   312
	err = TheDb.Exec(_L("DELETE FROM TempThumbnailInfo;"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   313
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   314
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   315
	err = TheDb.Exec(_L("DELETE FROM TempThumbnailInfoData;"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   316
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   317
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   318
	err = TheDb.Exec(_L("COMMIT;"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   319
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   320
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   321
	TUint32 fc2 = User::FastCounter();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   322
	TheFlushTime += TimeDiffUs(fc1, fc2);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   323
	}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   324
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   325
/**
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   326
@SYMTestCaseID			PDS-SQL-CT-4206
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   327
@SYMTestCaseDesc		Thumbnail database performance test.
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   328
@SYMTestPriority		Medium
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   329
@SYMTestActions			The test inserts 60 thumbnails with summary size of 1.7Mb into the thumbnail database.  
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   330
@SYMTestExpectedResults The test must not fail
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   331
@SYMDEF					ou1cimx1#362240
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   332
*/
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   333
void PopulateDb()
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   334
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   335
	TInt dataToCommit = 0;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   336
	for(TInt i=0;i<KThumbnailCount;++i)
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   337
		{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   338
		dataToCommit += KThumbnailSizes[i]; 
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   339
		}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   340
	TReal d = dataToCommit / 1024.0;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   341
	TheTest.Printf(_L("==dataToCommit=%d bytes (%8.2lf Mb)\r\n"), dataToCommit, d);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   342
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   343
	TInt err = TheDb.Open(TheDbFileName, &TheSqlConfigString);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   344
	TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   345
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   346
	err = TheDb.Exec(_L("CREATE TEMP TABLE TempThumbnailInfo (Path TEXT COLLATE NOCASE,TNId INTEGER,Size INTEGER,Format INTEGER,TNPath TEXT COLLATE NOCASE,Width INTEGER,Height INTEGER,OrigWidth INTEGER,OrigHeight INTEGER,Flags INTEGER,VideoPosition INTEGER,Orientation INTEGER,ThumbFromPath INTEGER,Modified LARGEINT);"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   347
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   348
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   349
	err = TheDb.Exec(_L("CREATE TEMP TABLE TempThumbnailInfoData (Data BLOB);"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   350
	TEST(err >= 0);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   351
		
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   352
	RSqlStatement stmt1;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   353
	err = stmt1.Prepare(TheDb, _L("INSERT INTO TempThumbnailInfo(Path,Size,Format,Width,Height,OrigWidth,OrigHeight,Flags,Orientation,ThumbFromPath,Modified) VALUES (:Path,:Size,:Format,:Width,:Height,:OrigWidth,:OrigHeight,:Flags,:Orient,:ThumbFromPath,:Modified);"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   354
	TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   355
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   356
	RSqlStatement stmt2;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   357
	err = stmt2.Prepare(TheDb, _L("INSERT INTO TempThumbnailInfoData (Data) VALUES (:Data);"));
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   358
	TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   359
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   360
	PoulateTempTables(stmt1, stmt2);
31
ba1c4f4a893f 201025_02
hgs
parents: 28
diff changeset
   361
	FlushTempTables();
28
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   362
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   363
	stmt2.Close();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   364
	stmt1.Close();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   365
	TheDb.Close();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   366
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   367
	TheTest.Printf(_L("==Create database, time=%d microseconds\r\n"), TheCreateDbTime);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   368
	TheTest.Printf(_L("==Create tables, time=%d microseconds\r\n"), TheCreateTablesTime);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   369
	TheTest.Printf(_L("==Bind parameters time, time=%d microseconds\r\n"), TheBindParamsTime);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   370
	TheTest.Printf(_L("==Temp tables, statement exec, time=%d microseconds\r\n"), TheStmtExecTime);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   371
	TheTest.Printf(_L("==Temp tables, statement reset, time=%d microseconds\r\n"), TheStmtResetTime);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   372
	TheTest.Printf(_L("==Populate temp tables, time=%d microseconds\r\n"), ThePopulateTempTableTime);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   373
	TheTest.Printf(_L("==Copy temp tables to main tables, time=%d microseconds\r\n"), TheFlushTime);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   374
	}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   375
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   376
void DoTestsL()
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   377
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   378
	TheTestTitle.Format(_L("@SYMTestCaseID:PDS-SQL-CT-4205 Create database, encoding: \"%S\", page size: %d\r\n"), 
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   379
			TheCmdLineParams.iDbEncoding == TCmdLineParams::EDbUtf16 ? &KUtf16 : &KUtf8, TheCmdLineParams.iPageSize);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   380
	TheTest.Start(TheTestTitle);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   381
	CreateDb();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   382
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   383
	TheTestTitle.Format(_L("@SYMTestCaseID:PDS-SQL-CT-4206 Populate database, encoding: \"%S\", page size: %d\r\n"), 
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   384
			TheCmdLineParams.iDbEncoding == TCmdLineParams::EDbUtf16 ? &KUtf16 : &KUtf8, TheCmdLineParams.iPageSize);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   385
	TheTest.Next(TheTestTitle);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   386
	PopulateDb();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   387
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   388
	(void)RSqlDatabase::Delete(TheDbFileName);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   389
	}
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   390
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   391
TInt E32Main()
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   392
	{
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   393
	TheTest.Title();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   394
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   395
	CTrapCleanup* tc = CTrapCleanup::New();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   396
	TheTest(tc != NULL);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   397
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   398
	__UHEAP_MARK;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   399
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   400
	GetCmdLineParamsAndSqlConfigString(TheTest, _L("t_sqlperformance5"), TheCmdLineParams, TheSqlConfigString);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   401
	PrepareDbName(KDbName, TheCmdLineParams.iDriveName, TheDbFileName);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   402
	SetSoftHeapLimit(TheCmdLineParams.iSoftHeapLimitKb);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   403
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   404
	TheTest.Printf(_L("==Databases: %S\r\n"), &TheDbFileName); 
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   405
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   406
	TestEnvDestroy();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   407
	TestEnvInit();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   408
	TRAPD(err, DoTestsL());
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   409
	TestEnvDestroy();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   410
	TEST2(err, KErrNone);
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   411
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   412
	__UHEAP_MARKEND;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   413
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   414
	TheTest.End();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   415
	TheTest.Close();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   416
	
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   417
	delete tc;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   418
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   419
	User::Heap().Check();
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   420
	return KErrNone;
7a522c0700d3 201019_09
hgs
parents:
diff changeset
   421
	}