loggingservices/eventlogger/test/src/t_logenvcreate.cpp
branchRCL_3
changeset 14 04ec7606545c
parent 12 6b6fd149daa2
child 15 fcc16690f446
--- a/loggingservices/eventlogger/test/src/t_logenvcreate.cpp	Tue Apr 27 18:25:57 2010 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,90 +0,0 @@
-// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
-// All rights reserved.
-// This component and the accompanying materials are made available
-// under the terms of "Eclipse Public License v1.0"
-// which accompanies this distribution, and is available
-// at the URL "http://www.eclipse.org/legal/epl-v10.html".
-//
-// Initial Contributors:
-// Nokia Corporation - initial contribution.
-//
-// Contributors:
-//
-// Description:
-// EventLogger - copying EventLogger test files from Z: to C:
-// Please, ensure that t_logenvcreate test is executed before the other EventLogger component tests
-// 
-//
-
-#include <e32test.h>
-#include <bautils.h>
-#include "t_logutil.h"
-
-RTest TheTest(_L("t_logenvcreate - copying EventLogger test files to C:"));
-
-_LIT(KContactsServerName, "!CNTSRV");
-
-_LIT(KContactsServerPrivateDirC, "c:\\private\\10003a73\\");
-
-_LIT(KZFileName1, "z:\\private\\101f401d\\CntModel.ini");
-_LIT(KZFileName2, "z:\\private\\101f401d\\SQLite__Contacts.cdb");
-
-_LIT(KCFileName1, "c:\\private\\10003a73\\CntModel.ini");
-_LIT(KCFileName2, "c:\\private\\10003a73\\SQLite__Contacts.cdb");
-
-void DoRun()
-	{
-    RFs fs;
-	TInt err = fs.Connect();
-	TEST2(err, KErrNone);
-
-	TheTest.Start(_L(" @SYMTestCaseID: PDS-LOGENG-CT-4048 Copy EventLogger test files from Z: to C: "));
-
-	err = BaflUtils::CopyFile(fs, KZFileName1, KCFileName1);
-	TEST2(err, KErrNone);
-	err = fs.SetAtt(KCFileName1, 0, KEntryAttReadOnly);
-	TEST2(err, KErrNone);
-
-	err = BaflUtils::CopyFile(fs, KZFileName2, KCFileName2);
-	TEST2(err, KErrNone);
-	err = fs.SetAtt(KCFileName2, 0, KEntryAttReadOnly);
-	TEST2(err, KErrNone);
-	fs.Close();
-	}
-
-void CreateContactsServerPrivateDir()
-    {
-    RFs fs;
-	TInt err = fs.Connect();
-	TEST2(err, KErrNone);
-
-	TRAP(err, BaflUtils::EnsurePathExistsL(fs, KContactsServerPrivateDirC));
-	TEST2(err, KErrNone);
-
-	fs.Close();
-	}
-
-TInt E32Main()
-    {
-	TheTest.Title();
-
-	CTrapCleanup* tc = CTrapCleanup::New();
-
-	__UHEAP_MARK;
-
-	KillProcess(KContactsServerName);
-	
-	CreateContactsServerPrivateDir();
-
-	DoRun();
-
-	__UHEAP_MARKEND;
-
-	TheTest.End();
-	TheTest.Close();
-
-	delete tc;
-
-	User::Heap().Check();
-	return KErrNone;
-    }