equal
deleted
inserted
replaced
1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
47 } |
47 } |
48 static void Check(TInt aValue, TInt aExpected, TInt aLine) |
48 static void Check(TInt aValue, TInt aExpected, TInt aLine) |
49 { |
49 { |
50 if(aValue != aExpected) |
50 if(aValue != aExpected) |
51 { |
51 { |
52 RDebug::Print(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue); |
52 TheTest.Printf(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue); |
53 TheTest(EFalse, aLine); |
53 TheTest(EFalse, aLine); |
54 } |
54 } |
55 } |
55 } |
56 #define TEST(arg) ::Check((arg), __LINE__) |
56 #define TEST(arg) ::Check((arg), __LINE__) |
57 #define TEST2(aValue, aExpected) ::Check(aValue, aExpected, __LINE__) |
57 #define TEST2(aValue, aExpected) ::Check(aValue, aExpected, __LINE__) |