74
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef __UT_CPHONESINGLEANDALERTING_H__
|
|
19 |
#define __UT_CPHONESINGLEANDALERTING_H__
|
|
20 |
|
|
21 |
// INCLUDES
|
|
22 |
#include <CEUnitTestSuiteClass.h>
|
|
23 |
#include <EUnitDecorators.h>
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
// FORWARD DECLARATIONS
|
|
28 |
class CPhoneSingleAndAlerting;
|
|
29 |
class CPhoneStateMachineStub;
|
|
30 |
class CPhoneViewController;
|
|
31 |
|
|
32 |
// CLASS DEFINITION
|
|
33 |
/**
|
|
34 |
* Generated EUnit test suite class.
|
|
35 |
*/
|
|
36 |
NONSHARABLE_CLASS( ut_cphonesingleandalerting )
|
|
37 |
: public CEUnitTestSuiteClass
|
|
38 |
{
|
|
39 |
public: // Constructors and destructor
|
|
40 |
|
|
41 |
static ut_cphonesingleandalerting* NewL();
|
|
42 |
static ut_cphonesingleandalerting* NewLC();
|
|
43 |
~ut_cphonesingleandalerting();
|
|
44 |
|
|
45 |
private: // Constructors
|
|
46 |
|
|
47 |
ut_cphonesingleandalerting();
|
|
48 |
void ConstructL();
|
|
49 |
|
|
50 |
private: // New methods
|
|
51 |
|
|
52 |
void SetupL();
|
|
53 |
|
|
54 |
void Teardown();
|
|
55 |
|
|
56 |
void TestCallHeaderIsRemovedWhenCallGoesIdleL();
|
|
57 |
|
|
58 |
private: // Data
|
|
59 |
|
|
60 |
CPhoneViewController* iViewCommandHandle;
|
|
61 |
|
|
62 |
CPhoneStateMachineStub* iStateMachine;
|
|
63 |
|
|
64 |
CPhoneSingleAndAlerting * iStateSingleAndAlerting;
|
|
65 |
|
|
66 |
EUNIT_DECLARE_TEST_TABLE;
|
|
67 |
|
|
68 |
};
|
|
69 |
|
|
70 |
#endif // __UT_CPHONESINGLEANDALERTING_H__
|