kerneltest/f32test/plugins/version_2beta/t_plugin_v2beta.cpp
changeset 281 13fbfa31d2ba
parent 200 73ea206103e6
equal deleted inserted replaced
266:0008ccd16016 281:13fbfa31d2ba
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-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 the License "Eclipse Public License v1.0"
     4 // under the terms of the License "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".
    22 #include "f32_test_utils.h"
    22 #include "f32_test_utils.h"
    23 #include "t_server.h"
    23 #include "t_server.h"
    24 #include "encrypt.h"
    24 #include "encrypt.h"
    25 #include "hex.h"
    25 #include "hex.h"
    26 
    26 
    27 GLREF_C void TestIfEqual( TInt aValue, TInt aExpected, TInt aLine, char aFileName[]);
    27 GLREF_C void TestIfEqual( TInt aValue, TInt aExpected, TInt aLine, const char aFileName[]);
    28 
    28 
    29 #define TEST_FOR_ERROR( r )	{ TInt _r = (r); if (_r < 0) HandleError(_r, __LINE__); }
    29 #define TEST_FOR_ERROR( r )	{ TInt _r = (r); if (_r < 0) HandleError(_r, __LINE__); }
    30 #define TEST_FOR_VALUE( r, expected ) TestIfEqual( r, expected, __LINE__, __FILE__)
    30 #define TEST_FOR_VALUE( r, expected ) TestIfEqual( r, expected, __LINE__, __FILE__)
    31 
    31 
    32 LOCAL_C TBool gFileSystemExtensionLoaded = EFalse;
    32 LOCAL_C TBool gFileSystemExtensionLoaded = EFalse;
    49 					"line 7 abcdefghijklmnopqrstuvwxyz\n"
    49 					"line 7 abcdefghijklmnopqrstuvwxyz\n"
    50 					"line 8 abcdefghijklmnopqrstuvwxyz\n"
    50 					"line 8 abcdefghijklmnopqrstuvwxyz\n"
    51 					"line 9 abcdefghijklmnopqrstuvwxyz\n");
    51 					"line 9 abcdefghijklmnopqrstuvwxyz\n");
    52 
    52 
    53 _LIT( KValueTestFailMsg, "ERROR Got %d expected %d" );
    53 _LIT( KValueTestFailMsg, "ERROR Got %d expected %d" );
    54 GLDEF_C void TestIfEqual( TInt aValue, TInt aExpected, TInt aLine, char aFileName[])
    54 GLDEF_C void TestIfEqual( TInt aValue, TInt aExpected, TInt aLine, const char aFileName[])
    55 	{
    55 	{
    56 	if( aExpected != aValue )
    56 	if( aExpected != aValue )
    57 		{
    57 		{
    58 		TText filenameU[512];
    58 		TText filenameU[512];
    59 		TUint i = 0;
    59 		TUint i = 0;