|
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_MEDIATORFACTORY_H__ |
|
19 #define __UT_MEDIATORFACTORY_H__ |
|
20 |
|
21 // INCLUDES |
|
22 #include <CEUnitTestSuiteClass.h> |
|
23 #include <EUnitDecorators.h> |
|
24 |
|
25 class CPhoneMediatorFactory; |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 |
|
29 |
|
30 // CLASS DEFINITION |
|
31 /** |
|
32 * Generated EUnit test suite class. |
|
33 */ |
|
34 NONSHARABLE_CLASS( ut_mediatorfactory ) |
|
35 : public CEUnitTestSuiteClass |
|
36 { |
|
37 public: // Constructors and destructor |
|
38 |
|
39 static ut_mediatorfactory* NewL(); |
|
40 static ut_mediatorfactory* NewLC(); |
|
41 ~ut_mediatorfactory(); |
|
42 |
|
43 private: // Constructors |
|
44 |
|
45 ut_mediatorfactory(); |
|
46 void ConstructL(); |
|
47 |
|
48 private: // New methods |
|
49 |
|
50 void SetupL(); |
|
51 |
|
52 void Teardown(); |
|
53 |
|
54 void TestInitialisingCommandListenerL(); |
|
55 void TestCommandListenerNotInitL(); |
|
56 void TestMPhoneMenuAndCbaEventsPreCondCheckL(); |
|
57 void TestMPhoneEngineMessageSenderPreCondCheckL(); |
|
58 void TestEngineInfoPreCondCheckL(); |
|
59 void TestMediatorMessageFactoryCheckL(); |
|
60 void CreateMessageFailCheckL(); |
|
61 void SuccesfulMediatorMessageL(); |
|
62 void TestFetchingSenderL(); |
|
63 |
|
64 private: // Data |
|
65 |
|
66 CPhoneMediatorFactory* iFactory; |
|
67 |
|
68 EUNIT_DECLARE_TEST_TABLE; |
|
69 |
|
70 }; |
|
71 |
|
72 #endif // __UT_MEDIATORFACTORY_H__ |