phonebookengines/contactsmodel/tsrc/t_serverstart.cpp
changeset 24 0ba2181d7c28
parent 0 e686773b3f54
equal deleted inserted replaced
0:e686773b3f54 24:0ba2181d7c28
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 /*
     2 // All rights reserved.
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 // This component and the accompanying materials are made available
     3 * All rights reserved.
     4 // under the terms of "Eclipse Public License v1.0"
     4 * This component and the accompanying materials are made available
     5 // which accompanies this distribution, and is available
     5 * under the terms of "Eclipse Public License v1.0"
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 * which accompanies this distribution, and is available
     7 //
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 // Initial Contributors:
     8 *
     9 // Nokia Corporation - initial contribution.
     9 * Initial Contributors:
    10 //
    10 * Nokia Corporation - initial contribution.
    11 // Contributors:
    11 *
    12 //
    12 * Contributors:
    13 // Description:
    13 *
    14 //
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
    15 
    18 
    16 #include <e32std.h>
    19 #include <e32std.h>
    17 #include <e32test.h>
    20 #include <e32test.h>
    18 #include <cntdb.h>
    21 #include <cntdb.h>
    19 #include "T_UTILS.H"
    22 #include "t_utils.h"
    20 
    23 
    21 _LIT(KTestName,"T_ServerStart");
    24 _LIT(KTestName,"T_ServerStart");
    22 _LIT(KTest1,"@SYMTESTCaseID:PIM-T-SERVERSTART-0001 Simultaneous startup");
    25 _LIT(KTest1,"Simultaneous startup");
    23 
    26 
    24 LOCAL_D RTest test(KTestName);
    27 LOCAL_D RTest test(KTestName);
    25 
    28 
    26 
    29 
    27 static void CheckOnlyOneServerLaunched()
    30 static void CheckOnlyOneServerLaunched()
    87 
    90 
    88 */
    91 */
    89 
    92 
    90 void doMainL()
    93 void doMainL()
    91 	{
    94 	{
    92 	test.Start(KTest1);
    95 	test.Start(_L("@SYMTESTCaseID:PIM-T-SERVERSTART-0001 Simultaneous startup"));
    93 
    96 
    94 
    97 
    95 	TRAP_IGNORE(CContactDatabase::DeleteDefaultFileL());
    98 	TRAP_IGNORE(CContactDatabase::DeleteDefaultFileL());
    96 	CContactDatabase* db = CContactDatabase::CreateL();
    99 	CContactDatabase* db = CContactDatabase::CreateL();
    97 	delete db;
   100 	delete db;