equal
deleted
inserted
replaced
10 // |
10 // |
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // |
14 // |
15 |
15 #ifndef T_DBSTRESS_H |
16 // MSVC++ up to 5.0 has problems with expanding inline functions |
16 #define T_DBSTRESS_H |
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 |
17 |
23 #include <d32dbms.h> |
18 #include <d32dbms.h> |
24 #include <s32file.h> |
19 #include <s32file.h> |
25 #include <e32test.h> |
20 #include <e32test.h> |
26 #include <e32math.h> |
21 #include <e32math.h> |
30 |
25 |
31 GLREF_C TInt StartThread(RThread& aThread,TRequestStatus& aStat); |
26 GLREF_C TInt StartThread(RThread& aThread,TRequestStatus& aStat); |
32 GLREF_C TInt Random(TInt aRange); |
27 GLREF_C TInt Random(TInt aRange); |
33 |
28 |
34 GLREF_D TPtrC KTestDatabase,KTestDir,KLogFile; |
29 GLREF_D TPtrC KTestDatabase,KTestDir,KLogFile; |
35 GLREF_D RTest test; |
30 GLREF_D RTest TheTest; |
36 GLREF_D TInt NewCount; |
31 GLREF_D TInt NewCount; |
37 GLREF_D TInt OldCount; |
32 GLREF_D TInt OldCount; |
38 GLREF_D TInt TransId; |
33 GLREF_D TInt TransId; |
39 |
34 |
40 class Timer |
35 class Timer |
47 TTime iTime; |
42 TTime iTime; |
48 }; |
43 }; |
49 |
44 |
50 GLREF_D Timer RunTimer; |
45 GLREF_D Timer RunTimer; |
51 |
46 |
|
47 #undef TEST_STRING |
|
48 #define TEST_STRING(s) _S(s) |
|
49 |
|
50 void Check1(TInt aValue, const TText* aFile, TInt aLine); |
|
51 void Check2(TInt aValue, TInt aExpected, const TText* aFile, TInt aLine); |
|
52 |
|
53 #define TEST(arg) ::Check1((arg), TEST_STRING(__FILE__), __LINE__) |
|
54 #define TEST2(aValue, aExpected) ::Check2(aValue, aExpected, TEST_STRING(__FILE__), __LINE__) |
|
55 |
|
56 #endif// T_DBSTRESS_H |