|
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 the License "Symbian Foundation License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "ut_TInterfaceClient.h" |
|
19 #include "InterfaceClient.h" |
|
20 #include <symbianunittestmacros.h> |
|
21 |
|
22 // --------------------------------------------------------------------------- |
|
23 // NewL |
|
24 // --------------------------------------------------------------------------- |
|
25 // |
|
26 UT_TInterfaceClient* UT_TInterfaceClient::NewL() |
|
27 { |
|
28 UT_TInterfaceClient* self = UT_TInterfaceClient::NewLC(); |
|
29 CleanupStack::Pop( self ); |
|
30 return self; |
|
31 } |
|
32 |
|
33 // --------------------------------------------------------------------------- |
|
34 // NewLC |
|
35 // --------------------------------------------------------------------------- |
|
36 // |
|
37 UT_TInterfaceClient* UT_TInterfaceClient::NewLC() |
|
38 { |
|
39 UT_TInterfaceClient* self = new( ELeave )UT_TInterfaceClient(); |
|
40 CleanupStack::PushL( self ); |
|
41 self->ConstructL(); |
|
42 return self; |
|
43 } |
|
44 |
|
45 // --------------------------------------------------------------------------- |
|
46 // Constructor |
|
47 // --------------------------------------------------------------------------- |
|
48 // |
|
49 UT_TInterfaceClient::UT_TInterfaceClient() |
|
50 { |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // ConstructL |
|
55 // --------------------------------------------------------------------------- |
|
56 // |
|
57 void UT_TInterfaceClient::ConstructL() |
|
58 { |
|
59 BASE_CONSTRUCT |
|
60 ADD_SUT( UT_GetByDiscoveryL ) |
|
61 ADD_SUT( UT_GetBySpecificationL ) |
|
62 ADD_SUT( UT_GetDefaultL ) |
|
63 |
|
64 // Setup and teardown functions can be changed for each test function |
|
65 // Usually this is not needed, but this is possible. |
|
66 // ADD_SUT_WITH_SETUP_AND_TEARDOWN( SetupL, UT_YouFunc, Teardown ) |
|
67 } |
|
68 |
|
69 // --------------------------------------------------------------------------- |
|
70 // Destructor |
|
71 // --------------------------------------------------------------------------- |
|
72 // |
|
73 UT_TInterfaceClient::~UT_TInterfaceClient() |
|
74 { |
|
75 } |
|
76 |
|
77 // ----------------------------------------------------------------------------- |
|
78 // SetupL |
|
79 // ----------------------------------------------------------------------------- |
|
80 // |
|
81 void UT_TInterfaceClient::SetupL() |
|
82 { |
|
83 //iTInterfaceClient = TInterfaceClient::NewL(); ?? |
|
84 } |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // Teardown |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 void UT_TInterfaceClient::Teardown() |
|
91 { |
|
92 delete iTInterfaceClient; |
|
93 iTInterfaceClient = NULL; |
|
94 } |
|
95 |
|
96 |
|
97 // ----------------------------------------------------------------------------- |
|
98 // test TInterfaceClient::GetByDiscoveryL () |
|
99 // ----------------------------------------------------------------------------- |
|
100 // |
|
101 void UT_TInterfaceClient::UT_GetByDiscoveryL() |
|
102 { |
|
103 SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady); |
|
104 } |
|
105 |
|
106 // ----------------------------------------------------------------------------- |
|
107 // test TInterfaceClient::GetBySpecificationL () |
|
108 // ----------------------------------------------------------------------------- |
|
109 // |
|
110 void UT_TInterfaceClient::UT_GetBySpecificationL() |
|
111 { |
|
112 SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady); |
|
113 } |
|
114 |
|
115 // ----------------------------------------------------------------------------- |
|
116 // test TInterfaceClient::GetDefaultL () |
|
117 // ----------------------------------------------------------------------------- |
|
118 // |
|
119 void UT_TInterfaceClient::UT_GetDefaultL() |
|
120 { |
|
121 SUT_ASSERT_LEAVE_WITH(_L("test case not implemented"), KErrNotReady); |
|
122 } |
|
123 |