equal
deleted
inserted
replaced
|
1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 // MSVC++ up to 5.0 has problems with expanding inline functions |
|
17 // This disables the mad warnings for the whole project |
|
18 #if defined(NDEBUG) && defined(__VC32__) && _MSC_VER<=1100 |
|
19 #pragma warning(disable : 4710) // function not expanded. MSVC 5.0 is stupid |
|
20 #endif |
|
21 |
|
22 |
|
23 #include <d32dbms.h> |
|
24 #include <s32file.h> |
|
25 #include <e32test.h> |
|
26 #include <e32math.h> |
|
27 |
|
28 enum TAccount {ECash=0,EJohn,ESam,EBen,EPenny}; |
|
29 const TInt KAccountIDs=EPenny-ECash+1; |
|
30 |
|
31 GLREF_C TInt StartThread(RThread& aThread,TRequestStatus& aStat); |
|
32 GLREF_C TInt Random(TInt aRange); |
|
33 |
|
34 GLREF_D TPtrC KTestDatabase,KTestDir,KLogFile; |
|
35 GLREF_D RTest test; |
|
36 GLREF_D TInt NewCount; |
|
37 GLREF_D TInt OldCount; |
|
38 GLREF_D TInt TransId; |
|
39 |
|
40 class Timer |
|
41 { |
|
42 public: |
|
43 void Start(); |
|
44 TInt64 Stop(); |
|
45 void Print(); |
|
46 private: |
|
47 TTime iTime; |
|
48 }; |
|
49 |
|
50 GLREF_D Timer RunTimer; |
|
51 |