equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009-2010 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 * This is a source file for esock library stub functions |
|
16 */ |
|
17 |
|
18 #include <es_sock.h> |
|
19 |
|
20 #ifdef __WINS__ |
|
21 |
|
22 // ---------------------------------------------- |
|
23 // Stub functions for esock library, used in UT |
|
24 // ---------------------------------------------- |
|
25 |
|
26 #include "wlanqtutilstestcontext.h" |
|
27 |
|
28 extern WlanQtUtilsTestContext testContext; |
|
29 |
|
30 /** |
|
31 * Returns value from test context. |
|
32 * |
|
33 * TConnPref value cannot be verified easily because the real value passed to the function is |
|
34 * TCommDbConnPref. Dynamic cast from TConnPref to TCommDbConnPref does not work because |
|
35 * TConnPref does not have virtual functions which means that type information for the |
|
36 * class hierarchy is not created by the compiler. |
|
37 */ |
|
38 void RConnection::Start(class TConnPref &, class TRequestStatus &aStatus) |
|
39 { |
|
40 User::RequestComplete(&aStatus, testContext.esock_.startRetValue_); |
|
41 } |
|
42 |
|
43 #endif // __WINS__ |