equal
deleted
inserted
replaced
19 #include <e32test.h> |
19 #include <e32test.h> |
20 #include <e32svr.h> |
20 #include <e32svr.h> |
21 #include <f32dbg.h> |
21 #include <f32dbg.h> |
22 #include "t_server.h" |
22 #include "t_server.h" |
23 |
23 |
24 GLREF_C void TestIfEqual( TInt aValue, TInt aExpected, TInt aLine, char aFileName[]); |
24 GLREF_C void TestIfEqual( TInt aValue, TInt aExpected, TInt aLine, char const * aFileName); |
25 |
25 |
26 #define TEST_FOR_ERROR( r ) TestIfEqual( r, KErrNone, __LINE__, __FILE__) |
26 #define TEST_FOR_ERROR( r ) TestIfEqual( r, KErrNone, __LINE__, __FILE__) |
27 #define TEST_FOR_VALUE( r, expected ) TestIfEqual( r, expected, __LINE__, __FILE__) |
27 #define TEST_FOR_VALUE( r, expected ) TestIfEqual( r, expected, __LINE__, __FILE__) |
28 |
28 |
29 _LIT( KValueTestFailMsg, "ERROR Got %d expected %d" ); |
29 _LIT( KValueTestFailMsg, "ERROR Got %d expected %d" ); |
30 GLDEF_C void TestIfEqual( TInt aValue, TInt aExpected, TInt aLine, char aFileName[]) |
30 GLDEF_C void TestIfEqual( TInt aValue, TInt aExpected, TInt aLine, char const *aFileName) |
31 { |
31 { |
32 if( aExpected != aValue ) |
32 if( aExpected != aValue ) |
33 { |
33 { |
34 TText filenameU[512]; |
34 TText filenameU[512]; |
35 TUint i = 0; |
35 TUint i = 0; |