equal
deleted
inserted
replaced
|
1 // Copyright (c) 2007-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 #ifndef hwrmtestmacros_h |
|
17 #define hwrmtestmacros_h |
|
18 |
|
19 #define ASSERT_LEAVE(err,x) \ |
|
20 { \ |
|
21 ExpectLeave(err); \ |
|
22 x; \ |
|
23 EndExpectLeaveL(err,(TText8*)__FILE__,__LINE__); \ |
|
24 } |
|
25 |
|
26 // ISO C++ compliant version of ADD_TEST_STEP which uses correct member function |
|
27 // address syntax (e.g., &ClassName::MemberName rather than &MemberName). This |
|
28 // is necessary to compile without errors for the x86gcc target. |
|
29 #define ADD_TEST_STEP_ISO_CPP(suiteClassName, stepName) \ |
|
30 _LIT( KTest ## stepName, #stepName); \ |
|
31 AddTestCase(lTestSuite, KTest ## stepName, &suiteClassName::stepName); |
|
32 |
|
33 #endif //hwrmtestmacros_h |