loggingservices/eventlogger/test/src/t_logenvdestroy.cpp
branchRCL_3
changeset 11 667e88a979d7
parent 0 08ec8eefde2f
equal deleted inserted replaced
10:fa9941cf3867 11:667e88a979d7
     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 "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".
    16 // 
    16 // 
    17 //
    17 //
    18 
    18 
    19 #include <e32test.h>
    19 #include <e32test.h>
    20 #include <bautils.h>
    20 #include <bautils.h>
       
    21 #include "t_logutil.h"
    21 
    22 
    22 RTest TheTest(_L("t_logenvdestroy - deleting EventLogger test files from C:"));
    23 RTest TheTest(_L("t_logenvdestroy - deleting EventLogger test files from C:"));
    23 
    24 
    24 _LIT(KCFileName1, "c:\\private\\10003a73\\CntModel.ini");
    25 _LIT(KCFileName1, "c:\\private\\10003a73\\CntModel.ini");
    25 _LIT(KCFileName2, "c:\\private\\10003a73\\SQLite__Contacts.cdb");
    26 _LIT(KCFileName2, "c:\\private\\10003a73\\SQLite__Contacts.cdb");
    26 
       
    27 ///////////////////////////////////////////////////////////////////////////////////////
       
    28 ///////////////////////////////////////////////////////////////////////////////////////
       
    29 //Test macros and functions
       
    30 static void Check(TInt aValue, TInt aExpected, TInt aLine)
       
    31 	{
       
    32 	if(aValue != aExpected)
       
    33 		{
       
    34 		RDebug::Print(_L("*** Expected error: %d, got: %d\r\n"), aExpected, aValue);
       
    35 		TheTest(EFalse, aLine);
       
    36 		}
       
    37 	}
       
    38 #define TEST2(aValue, aExpected) ::Check(aValue, aExpected, __LINE__)
       
    39 
    27 
    40 ///////////////////////////////////////////////////////////////////////////////////////
    28 ///////////////////////////////////////////////////////////////////////////////////////
    41 
    29 
    42 void DoDeleteFile(RFs& aFs, const TDesC& aFilePath)
    30 void DoDeleteFile(RFs& aFs, const TDesC& aFilePath)
    43 	{
    31 	{