68
|
1 |
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// Contain the Test Steps for Connection/Connection Failure tests for CSD agent
|
|
15 |
//
|
|
16 |
//
|
|
17 |
#include <CsdAgentTestSuite.h>
|
|
18 |
#include <CsdAgentTestSteps.h>
|
|
19 |
|
|
20 |
#include "c32comm.h"
|
|
21 |
|
|
22 |
EXPORT_C CTestSuiteCsdAgt* CreateTestSuite(void)
|
|
23 |
{
|
|
24 |
return new (ELeave) CTestSuiteCsdAgt();
|
|
25 |
}
|
|
26 |
|
|
27 |
void CTestSuiteCsdAgt::InitialiseL()
|
|
28 |
{
|
|
29 |
_LIT(KPhbkSyncCMI, "phbsync.cmi");
|
|
30 |
TInt ret = StartC32WithCMISuppressions(KPhbkSyncCMI);
|
|
31 |
|
|
32 |
if ( KErrNone != ret && KErrAlreadyExists != ret )
|
|
33 |
{
|
|
34 |
User::Leave( ret );
|
|
35 |
}
|
|
36 |
|
|
37 |
AddTestStepL(new (ELeave) CTestStepCsdAgentConnection(_L("Connection")) );
|
|
38 |
AddTestStepL(new (ELeave) CTestStepCsdAgtConnectionFailure(_L("ConnectionStartFailure")) );
|
|
39 |
}
|
|
40 |
|
|
41 |
TPtrC CTestSuiteCsdAgt::GetVersion(void)
|
|
42 |
{
|
|
43 |
_LIT(KVersion, "1.0");
|
|
44 |
return KVersion();
|
|
45 |
}
|